15#ifndef VPX_VPX_IMAGE_H_
16#define VPX_VPX_IMAGE_H_
30#define VPX_IMAGE_ABI_VERSION (4)
32#define VPX_IMG_FMT_PLANAR 0x100
33#define VPX_IMG_FMT_UV_FLIP 0x200
34#define VPX_IMG_FMT_HAS_ALPHA 0x400
35#define VPX_IMG_FMT_HIGHBITDEPTH 0x800
111#define VPX_PLANE_PACKED 0
115#define VPX_PLANE_ALPHA 3
161 unsigned int d_w,
unsigned int d_h,
184 unsigned int d_h,
unsigned int align,
185 unsigned char *img_data);
201 unsigned int w,
unsigned int h);
Representation of a rectangle on a surface.
Definition: vpx_image.h:135
unsigned int w
Definition: vpx_image.h:138
unsigned int y
Definition: vpx_image.h:137
unsigned int x
Definition: vpx_image.h:136
unsigned int h
Definition: vpx_image.h:139
Image Descriptor.
Definition: vpx_image.h:88
vpx_img_fmt_t fmt
Definition: vpx_image.h:89
unsigned int y_chroma_shift
Definition: vpx_image.h:108
unsigned int r_w
Definition: vpx_image.h:103
void * user_priv
The following member may be set by the application to associate data with this image.
Definition: vpx_image.h:124
unsigned int d_h
Definition: vpx_image.h:100
int self_allocd
Definition: vpx_image.h:129
unsigned char * img_data
Definition: vpx_image.h:127
void * fb_priv
Definition: vpx_image.h:131
int img_data_owner
Definition: vpx_image.h:128
int bps
Definition: vpx_image.h:119
unsigned int d_w
Definition: vpx_image.h:99
vpx_color_space_t cs
Definition: vpx_image.h:90
unsigned int h
Definition: vpx_image.h:95
unsigned int bit_depth
Definition: vpx_image.h:96
unsigned char * planes[4]
Definition: vpx_image.h:116
unsigned int w
Definition: vpx_image.h:94
int stride[4]
Definition: vpx_image.h:117
unsigned int r_h
Definition: vpx_image.h:104
vpx_color_range_t range
Definition: vpx_image.h:91
unsigned int x_chroma_shift
Definition: vpx_image.h:107
void vpx_img_flip(vpx_image_t *img)
Flip the image vertically (top for bottom)
vpx_color_space
List of supported color spaces.
Definition: vpx_image.h:70
@ VPX_CS_BT_709
Definition: vpx_image.h:73
@ VPX_CS_SRGB
Definition: vpx_image.h:78
@ VPX_CS_BT_601
Definition: vpx_image.h:72
@ VPX_CS_BT_2020
Definition: vpx_image.h:76
@ VPX_CS_SMPTE_170
Definition: vpx_image.h:74
@ VPX_CS_UNKNOWN
Definition: vpx_image.h:71
@ VPX_CS_SMPTE_240
Definition: vpx_image.h:75
@ VPX_CS_RESERVED
Definition: vpx_image.h:77
vpx_image_t * vpx_img_alloc(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w, unsigned int d_h, unsigned int align)
Open a descriptor, allocating storage for the underlying image.
vpx_image_t * vpx_img_wrap(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w, unsigned int d_h, unsigned int align, unsigned char *img_data)
Open a descriptor, using existing storage for the underlying image.
#define VPX_IMG_FMT_HIGHBITDEPTH
Definition: vpx_image.h:35
#define VPX_IMG_FMT_UV_FLIP
Definition: vpx_image.h:33
vpx_img_fmt
List of supported image formats.
Definition: vpx_image.h:38
@ VPX_IMG_FMT_RGB565
Definition: vpx_image.h:42
@ VPX_IMG_FMT_I42216
Definition: vpx_image.h:64
@ VPX_IMG_FMT_RGB32_LE
Definition: vpx_image.h:48
@ VPX_IMG_FMT_I44016
Definition: vpx_image.h:66
@ VPX_IMG_FMT_VPXI420
Definition: vpx_image.h:58
@ VPX_IMG_FMT_YUY2
Definition: vpx_image.h:45
@ VPX_IMG_FMT_BGR24
Definition: vpx_image.h:47
@ VPX_IMG_FMT_ARGB
Definition: vpx_image.h:49
@ VPX_IMG_FMT_VPXYV12
Definition: vpx_image.h:56
@ VPX_IMG_FMT_YVYU
Definition: vpx_image.h:46
@ VPX_IMG_FMT_RGB32
Definition: vpx_image.h:41
@ VPX_IMG_FMT_YV12
Definition: vpx_image.h:53
@ VPX_IMG_FMT_RGB24
Definition: vpx_image.h:40
@ VPX_IMG_FMT_RGB555
Definition: vpx_image.h:43
@ VPX_IMG_FMT_ARGB_LE
Definition: vpx_image.h:50
@ VPX_IMG_FMT_I42016
Definition: vpx_image.h:63
@ VPX_IMG_FMT_444A
Definition: vpx_image.h:62
@ VPX_IMG_FMT_UYVY
Definition: vpx_image.h:44
@ VPX_IMG_FMT_I444
Definition: vpx_image.h:60
@ VPX_IMG_FMT_I440
Definition: vpx_image.h:61
@ VPX_IMG_FMT_RGB555_LE
Definition: vpx_image.h:52
@ VPX_IMG_FMT_RGB565_LE
Definition: vpx_image.h:51
@ VPX_IMG_FMT_I44416
Definition: vpx_image.h:65
@ VPX_IMG_FMT_I420
Definition: vpx_image.h:55
@ VPX_IMG_FMT_I422
Definition: vpx_image.h:59
enum vpx_color_space vpx_color_space_t
List of supported color spaces.
vpx_color_range
List of supported color range.
Definition: vpx_image.h:82
@ VPX_CR_STUDIO_RANGE
Definition: vpx_image.h:83
@ VPX_CR_FULL_RANGE
Definition: vpx_image.h:84
int vpx_img_set_rect(vpx_image_t *img, unsigned int x, unsigned int y, unsigned int w, unsigned int h)
Set the rectangle identifying the displayed portion of the image.
#define VPX_IMG_FMT_PLANAR
Definition: vpx_image.h:32
struct vpx_image_rect vpx_image_rect_t
Representation of a rectangle on a surface.
enum vpx_img_fmt vpx_img_fmt_t
List of supported image formats.
#define VPX_IMG_FMT_HAS_ALPHA
Definition: vpx_image.h:34
struct vpx_image vpx_image_t
Image Descriptor.
void vpx_img_free(vpx_image_t *img)
Close an image descriptor.
enum vpx_color_range vpx_color_range_t
List of supported color range.