xref: /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/rga/RK356X/include/im2d_expand.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright (C) 2022 Rockchip Electronics Co., Ltd.
3  * Authors:
4  *  Cerf Yu <cerf.yu@rock-chips.com>
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #ifndef _im2d_expand_h_
19 #define _im2d_expand_h_
20 
21 #ifdef __cplusplus
22 
23 #include "im2d_type.h"
24 
25 // #if ANDROID
26 
27 // #include <ui/GraphicBuffer.h>
28 
29 // using namespace android;
30 
31 // IM_API rga_buffer_handle_t importbuffer_GraphicBuffer_handle(buffer_handle_t hnd);
32 // IM_API rga_buffer_handle_t importbuffer_GraphicBuffer(sp<GraphicBuffer> buf);
33 
34 // IM_API rga_buffer_t wrapbuffer_handle(buffer_handle_t hnd);
35 // IM_API rga_buffer_t wrapbuffer_GraphicBuffer(sp<GraphicBuffer> buf);
36 
37 // #if USE_AHARDWAREBUFFER
38 // #include <android/hardware_buffer.h>
39 // IM_API rga_buffer_handle_t importbuffer_AHardwareBuffer(AHardwareBuffer *buf);
40 // IM_API rga_buffer_t wrapbuffer_AHardwareBuffer(AHardwareBuffer *buf);
41 
42 // #endif /* #if USE_AHARDWAREBUFFER */
43 // #endif /* #if ANDROID */
44 
45 #endif /* #ifdef __cplusplus */
46 
47 #endif
48