android13/external/uvc-gadget/include/uvc-rga.h

43 lines
911 B
C
Executable File

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* uvc-gadget rga process API
*
* Copyright (C) 2022 Rockchip Electronics Co., Ltd.
*
* Author: Bin Yang <yangbin@rock-chips.com>
*/
#ifndef __UVC_RGA_H__
#define __UVC_RGA_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef WITH_RKRGA
void *uvc_rga_buffer_create(int fd, struct v4l2_pix_format *fmt);
int uvc_rga_buffer_destroy(void *data);
int uvc_rga_buffer_process(void *src, struct v4l2_pix_format *src_fmt,
void *dest, struct v4l2_pix_format *dest_fmt);
#else
static inline void *uvc_rga_buffer_create(int fd, struct v4l2_pix_format *fmt)
{
return NULL;
}
static inline int uvc_rga_buffer_destroy(void *data)
{
return 0;
}
static inline int uvc_rga_buffer_process(void *src, struct v4l2_pix_format *src_fmt,
void *dest, struct v4l2_pix_format *dest_fmt)
{
return 0;
}
#endif
#ifdef __cplusplus
}
#endif
#endif /* __UVC_RGA_H__ */