150 const uint8_t* buffer);
178 const uint8_t* y_plane,
180 const uint8_t* u_plane,
182 const uint8_t* v_plane,
198 const uint8_t* buffer,
214 const uint8_t* buffer,
233 const uint8_t** planes,
253 const uint8_t** planes,
276 const uint8_t* buffer,
321 const uint8_t* y_plane,
323 const uint8_t* u_plane,
325 const uint8_t* v_plane,
343 const uint8_t* y_plane,
345 const uint8_t* uv_plane,
363 const uint8_t* y_plane,
365 const uint8_t* uv_plane,
374OTC_DECL(const uint8_t*)
458OTC_DECL(const uint8_t*)
int otc_bool
Definition base.h:167
int otc_status
Definition base.h:262
Definition video_frame.h:72
void(* release)(void *user_data)
Definition video_frame.h:99
void * user_data
Definition video_frame.h:104
void * reserved
Definition video_frame.h:110
int(* get_plane_stride)(void *user_data, enum otc_video_frame_plane plane)
Definition video_frame.h:91
otc_video_frame * otc_video_frame_new_from_planes(enum otc_video_frame_format format, int width, int height, const uint8_t **planes, int *strides)
otc_video_frame * otc_video_frame_new(enum otc_video_frame_format format, int width, int height, const uint8_t *buffer)
otc_video_frame * otc_video_frame_new_NV21_wrapper(int width, int height, const uint8_t *y_plane, int y_stride, const uint8_t *uv_plane, int uv_stride)
otc_video_frame * otc_video_frame_new_compressed(int width, int height, const uint8_t *buffer, size_t size)
void otc_video_frame_set_format(otc_video_frame *frame, enum otc_video_frame_format format)
otc_video_frame * otc_video_frame_new_planar_memory_wrapper(enum otc_video_frame_format format, int width, int height, otc_bool is_shallow_copyable, struct otc_video_frame_planar_memory_callbacks *callbacks)
otc_video_frame * otc_video_frame_new_I420(int width, int height, const uint8_t *y_plane, int y_stride, const uint8_t *u_plane, int u_stride, const uint8_t *v_plane, int v_stride)
struct otc_video_frame otc_video_frame
Definition video_frame.h:21
int otc_video_frame_get_plane_width(const otc_video_frame *frame, enum otc_video_frame_plane plane)
otc_video_frame * otc_video_frame_new_NV12_wrapper(int width, int height, const uint8_t *y_plane, int y_stride, const uint8_t *uv_plane, int uv_stride)
size_t otc_video_frame_get_plane_size(const otc_video_frame *frame, enum otc_video_frame_plane plane)
enum otc_video_frame_format otc_video_frame_get_format(const otc_video_frame *frame)
otc_video_frame * otc_video_frame_new_MJPEG(int width, int height, const uint8_t *buffer, size_t size)
otc_video_frame_format
Definition video_frame.h:27
@ OTC_VIDEO_FRAME_FORMAT_RGB24
Definition video_frame.h:40
@ OTC_VIDEO_FRAME_FORMAT_MAX
Definition video_frame.h:47
@ OTC_VIDEO_FRAME_FORMAT_MJPEG
Definition video_frame.h:43
@ OTC_VIDEO_FRAME_FORMAT_COMPRESSED
Definition video_frame.h:49
@ OTC_VIDEO_FRAME_FORMAT_ABGR32
Definition video_frame.h:41
@ OTC_VIDEO_FRAME_FORMAT_NV12
Definition video_frame.h:32
@ OTC_VIDEO_FRAME_FORMAT_ARGB32
Definition video_frame.h:36
@ OTC_VIDEO_FRAME_FORMAT_UYVY
Definition video_frame.h:35
@ OTC_VIDEO_FRAME_FORMAT_BGRA32
Definition video_frame.h:38
@ OTC_VIDEO_FRAME_FORMAT_UNKNOWN
Definition video_frame.h:28
@ OTC_VIDEO_FRAME_FORMAT_NV21
Definition video_frame.h:33
@ OTC_VIDEO_FRAME_FORMAT_YUY2
Definition video_frame.h:34
@ OTC_VIDEO_FRAME_FORMAT_RGBA32
Definition video_frame.h:45
@ OTC_VIDEO_FRAME_FORMAT_YUV420P
Definition video_frame.h:30
otc_video_frame * otc_video_frame_new_contiguous_memory_wrapper(enum otc_video_frame_format format, int width, int height, otc_bool is_shallow_copyable, const uint8_t *buffer, size_t size, otc_video_frame_memory_release_callback callback, void *arg)
otc_video_frame * otc_video_frame_new_I420_wrapper(int width, int height, const uint8_t *y_plane, int y_stride, const uint8_t *u_plane, int u_stride, const uint8_t *v_plane, int v_stride)
otc_video_frame * otc_video_frame_copy(const otc_video_frame *frame)
otc_status otc_video_frame_convert_inplace(enum otc_video_frame_format format, uint8_t **planes, const int *strides, const otc_video_frame *input_frame)
size_t otc_video_frame_get_number_of_planes(const otc_video_frame *frame)
otc_video_frame * otc_video_frame_new_I420_from_planes_with_format(enum otc_video_frame_format input_format, int width, int height, const uint8_t **planes, int *strides)
otc_video_frame_plane
Definition video_frame.h:55
@ OTC_VIDEO_FRAME_PLANE_PACKED
Definition video_frame.h:60
@ OTC_VIDEO_FRAME_PLANE_UV_INTERLEAVED
Definition video_frame.h:62
@ OTC_VIDEO_FRAME_PLANE_V
Definition video_frame.h:58
@ OTC_VIDEO_FRAME_PLANE_VU_INTERLEAVED
Definition video_frame.h:64
@ OTC_VIDEO_FRAME_PLANE_Y
Definition video_frame.h:56
@ OTC_VIDEO_FRAME_PLANE_U
Definition video_frame.h:57
const uint8_t * otc_video_frame_get_buffer(const otc_video_frame *frame)
const uint8_t * otc_video_frame_get_plane_binary_data(const otc_video_frame *frame, enum otc_video_frame_plane plane)
void(* otc_video_frame_memory_release_callback)(const uint8_t *buffer, void *arg)
Definition video_frame.h:121
int otc_video_frame_get_plane_stride(const otc_video_frame *frame, enum otc_video_frame_plane plane)
int otc_video_frame_get_plane_height(const otc_video_frame *frame, enum otc_video_frame_plane plane)
otc_video_frame * otc_video_frame_convert(enum otc_video_frame_format format, const otc_video_frame *frame)
otc_video_frame * otc_video_frame_mutable_copy(const otc_video_frame *frame)
void otc_video_frame_set_timestamp(otc_video_frame *frame, int64_t timestamp)
void(* video_transform_callback)(void *user_data, struct otc_video_frame *frame)
The callback that will perform the custom transformation.
Definition video_frame.h:130