|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _im2d_expand_h_ |
|
#define _im2d_expand_h_ |
|
|
|
#ifdef __cplusplus |
|
|
|
#include "im2d_type.h" |
|
|
|
#if ANDROID |
|
|
|
#include <ui/GraphicBuffer.h> |
|
|
|
using namespace android; |
|
|
|
IM_API rga_buffer_handle_t importbuffer_GraphicBuffer_handle(buffer_handle_t hnd); |
|
IM_API rga_buffer_handle_t importbuffer_GraphicBuffer(sp<GraphicBuffer> buf); |
|
|
|
IM_API rga_buffer_t wrapbuffer_handle(buffer_handle_t hnd); |
|
IM_API rga_buffer_t wrapbuffer_GraphicBuffer(sp<GraphicBuffer> buf); |
|
|
|
#if USE_AHARDWAREBUFFER |
|
#include <android/hardware_buffer.h> |
|
IM_API rga_buffer_handle_t importbuffer_AHardwareBuffer(AHardwareBuffer *buf); |
|
IM_API rga_buffer_t wrapbuffer_AHardwareBuffer(AHardwareBuffer *buf); |
|
|
|
#endif |
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|