21 #define OTC_VIDEO_FRAME_METADATA_MAX_SIZE 32 128 const uint8_t *buffer);
154 const uint8_t *y_plane,
156 const uint8_t *u_plane,
158 const uint8_t *v_plane,
172 const uint8_t *buffer,
186 const uint8_t *buffer,
202 const uint8_t **planes,
218 const uint8_t **planes,
238 const uint8_t *buffer,
257 int width,
int height,
276 const uint8_t *y_plane,
278 const uint8_t *u_plane,
280 const uint8_t *v_plane,
296 const uint8_t *y_plane,
298 const uint8_t *uv_plane,
314 const uint8_t *y_plane,
316 const uint8_t *uv_plane,
545 #endif // VIDEO_FRAME_H Definition: video_frame.h:36
Definition: video_frame.h:46
int otc_status
Definition: base.h:114
Definition: video_frame.h:58
struct otc_video_frame otc_video_frame
Definition: video_frame.h:25
int64_t otc_video_frame_get_timestamp(const otc_video_frame *frame)
int otc_video_frame_get_width(const otc_video_frame *frame)
const uint8_t * otc_video_frame_get_buffer(const otc_video_frame *frame)
otc_video_frame_format
Definition: video_frame.h:31
Definition: video_frame.h:38
void * user_data
Definition: video_frame.h:96
size_t otc_video_frame_get_buffer_size(const otc_video_frame *frame)
size_t otc_video_frame_get_number_of_planes(const otc_video_frame *frame)
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_plane
Definition: video_frame.h:51
enum otc_video_frame_format otc_video_frame_get_format(const otc_video_frame *frame)
Definition: video_frame.h:40
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)
otc_bool otc_video_frame_is_contiguous(const otc_video_frame *frame)
Definition: video_frame.h:57
otc_video_frame * otc_video_frame_mutable_copy(const otc_video_frame *frame)
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_status otc_video_frame_delete(otc_video_frame *frame)
Definition: video_frame.h:65
otc_video_frame * otc_video_frame_new(enum otc_video_frame_format format, int width, int height, const uint8_t *buffer)
Definition: video_frame.h:39
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_MJPEG(int width, int height, const uint8_t *buffer, size_t size)
Definition: video_frame.h:53
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_status otc_video_frame_convert_inplace(enum otc_video_frame_format format, uint8_t **planes, const int *strides, const otc_video_frame *input_frame)
int(* get_plane_stride)(void *user_data, enum otc_video_frame_plane plane)
Definition: video_frame.h:83
int otc_video_frame_get_height(const otc_video_frame *frame)
void * reserved
Definition: video_frame.h:102
Definition: video_frame.h:35
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)
void otc_video_frame_set_format(otc_video_frame *frame, enum otc_video_frame_format format)
Definition: video_frame.h:42
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)
otc_video_frame * otc_video_frame_convert(enum otc_video_frame_format format, const otc_video_frame *frame)
otc_video_frame * otc_video_frame_copy(const otc_video_frame *frame)
Definition: video_frame.h:56
Definition: video_frame.h:32
void(* otc_video_frame_memory_release_callback)(const uint8_t *buffer, void *arg)
Definition: video_frame.h:113
int otc_video_frame_get_plane_height(const otc_video_frame *frame, enum otc_video_frame_plane plane)
Definition: video_frame.h:41
Definition: video_frame.h:44
Definition: video_frame.h:37
const uint8_t * otc_video_frame_get_metadata(const otc_video_frame *frame, size_t *size)
int otc_bool
Definition: base.h:100
Definition: video_frame.h:54
otc_video_frame * otc_video_frame_new_compressed(int width, int height, const uint8_t *buffer, size_t size)
Definition: video_frame.h:33
otc_bool otc_video_frame_is_packed(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)
int otc_video_frame_get_plane_stride(const otc_video_frame *frame, enum otc_video_frame_plane plane)
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)
Definition: video_frame.h:52
void otc_video_frame_set_timestamp(otc_video_frame *frame, int64_t timestamp)
void(* release)(void *user_data)
Definition: video_frame.h:91
Definition: video_frame.h:34
Definition: video_frame.h:43
otc_status otc_video_frame_set_metadata(otc_video_frame *frame, const uint8_t *data, size_t size)
int otc_video_frame_get_plane_width(const otc_video_frame *frame, enum otc_video_frame_plane plane)