31 #define VPX_IMAGE_ABI_VERSION (1)
34 #define VPX_IMG_FMT_PLANAR 0x100
35 #define VPX_IMG_FMT_UV_FLIP 0x200
36 #define VPX_IMG_FMT_HAS_ALPHA 0x400
37 #define VPX_IMG_FMT_HIGHBITDEPTH 0x800
41 typedef enum vpx_img_fmt {
65 #if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT
66 #define IMG_FMT_PLANAR VPX_IMG_FMT_PLANAR
67 #define IMG_FMT_UV_FLIP VPX_IMG_FMT_UV_FLIP
68 #define IMG_FMT_HAS_ALPHA VPX_IMG_FMT_HAS_ALPHA
73 #define img_fmt vpx_img_fmt
77 #define img_fmt_t vpx_img_fmt_t
79 #define IMG_FMT_NONE VPX_IMG_FMT_NONE
80 #define IMG_FMT_RGB24 VPX_IMG_FMT_RGB24
81 #define IMG_FMT_RGB32 VPX_IMG_FMT_RGB32
82 #define IMG_FMT_RGB565 VPX_IMG_FMT_RGB565
83 #define IMG_FMT_RGB555 VPX_IMG_FMT_RGB555
84 #define IMG_FMT_UYVY VPX_IMG_FMT_UYVY
85 #define IMG_FMT_YUY2 VPX_IMG_FMT_YUY2
86 #define IMG_FMT_YVYU VPX_IMG_FMT_YVYU
87 #define IMG_FMT_BGR24 VPX_IMG_FMT_BGR24
88 #define IMG_FMT_RGB32_LE VPX_IMG_FMT_RGB32_LE
89 #define IMG_FMT_ARGB VPX_IMG_FMT_ARGB
90 #define IMG_FMT_ARGB_LE VPX_IMG_FMT_ARGB_LE
91 #define IMG_FMT_RGB565_LE VPX_IMG_FMT_RGB565_LE
92 #define IMG_FMT_RGB555_LE VPX_IMG_FMT_RGB555_LE
93 #define IMG_FMT_YV12 VPX_IMG_FMT_YV12
94 #define IMG_FMT_I420 VPX_IMG_FMT_I420
95 #define IMG_FMT_VPXYV12 VPX_IMG_FMT_VPXYV12
96 #define IMG_FMT_VPXI420 VPX_IMG_FMT_VPXI420
116 #define VPX_PLANE_PACKED 0
117 #define VPX_PLANE_Y 0
118 #define VPX_PLANE_U 1
119 #define VPX_PLANE_V 2
120 #define VPX_PLANE_ALPHA 3
121 #if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT
122 #define PLANE_PACKED VPX_PLANE_PACKED
123 #define PLANE_Y VPX_PLANE_Y
124 #define PLANE_U VPX_PLANE_U
125 #define PLANE_V VPX_PLANE_V
126 #define PLANE_ALPHA VPX_PLANE_ALPHA
201 unsigned char *img_data);
Definition: vpx_image.h:47
Image Descriptor.
Definition: vpx_image.h:100
Definition: vpx_image.h:62
Definition: vpx_image.h:59
unsigned int x
Definition: vpx_image.h:147
Definition: vpx_image.h:56
int self_allocd
Definition: vpx_image.h:142
#define VPX_IMG_FMT_PLANAR
Definition: vpx_image.h:34
#define VPX_IMG_FMT_UV_FLIP
Definition: vpx_image.h:35
int img_data_owner
Definition: vpx_image.h:141
Definition: vpx_image.h:46
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.
int bps
Definition: vpx_image.h:131
unsigned int y_chroma_shift
Definition: vpx_image.h:113
unsigned int x_chroma_shift
Definition: vpx_image.h:112
Definition: vpx_image.h:54
unsigned int y
Definition: vpx_image.h:148
Definition: vpx_image.h:55
Representation of a rectangle on a surface.
Definition: vpx_image.h:146
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.
Definition: vpx_image.h:57
unsigned int h
Definition: vpx_image.h:150
unsigned int d_w
Definition: vpx_image.h:108
Definition: vpx_image.h:52
enum vpx_img_fmt vpx_img_fmt_t
List of supported image formats.
int stride[4]
Definition: vpx_image.h:129
Definition: vpx_image.h:48
void vpx_img_free(vpx_image_t *img)
Close an image descriptor.
vpx_img_fmt_t fmt
Definition: vpx_image.h:101
Definition: vpx_image.h:60
unsigned char * planes[4]
Definition: vpx_image.h:128
unsigned char * img_data
Definition: vpx_image.h:140
void vpx_img_flip(vpx_image_t *img)
Flip the image vertically (top for bottom)
Definition: vpx_image.h:44
unsigned int h
Definition: vpx_image.h:105
Definition: vpx_image.h:58
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.
unsigned int w
Definition: vpx_image.h:149
Definition: vpx_image.h:61
struct vpx_image vpx_image_t
Image Descriptor.
struct vpx_image_rect vpx_image_rect_t
Representation of a rectangle on a surface.
Definition: vpx_image.h:50
Definition: vpx_image.h:49
#define VPX_IMG_FMT_HAS_ALPHA
Definition: vpx_image.h:36
void * user_priv
Definition: vpx_image.h:136
unsigned int d_h
Definition: vpx_image.h:109
Definition: vpx_image.h:53
Definition: vpx_image.h:51
unsigned int w
Definition: vpx_image.h:104
Definition: vpx_image.h:45
Definition: vpx_image.h:43