16 #ifndef VPX_VPX_IMAGE_H_
17 #define VPX_VPX_IMAGE_H_
31 #define VPX_IMAGE_ABI_VERSION (4)
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
111 #define VPX_PLANE_PACKED 0
112 #define VPX_PLANE_Y 0
113 #define VPX_PLANE_U 1
114 #define VPX_PLANE_V 2
115 #define VPX_PLANE_ALPHA 3
191 unsigned char *img_data);
235 #endif // VPX_VPX_IMAGE_H_
void vpx_img_free(vpx_image_t *img)
Close an image descriptor.
vpx_color_space
List of supported color spaces.
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.
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.
void vpx_img_flip(vpx_image_t *img)
Flip the image vertically (top for bottom)
enum vpx_color_space vpx_color_space_t
List of supported color spaces.
enum vpx_color_range vpx_color_range_t
List of supported color range.
#define VPX_IMG_FMT_PLANAR
unsigned int y_chroma_shift
unsigned int x_chroma_shift
Representation of a rectangle on a surface.
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 char * planes[4]
#define VPX_IMG_FMT_HAS_ALPHA
struct vpx_image_rect vpx_image_rect_t
Representation of a rectangle on a surface.
struct vpx_image vpx_image_t
Image Descriptor.
vpx_color_range
List of supported color range.
vpx_img_fmt
List of supported image formats.
#define VPX_IMG_FMT_HIGHBITDEPTH
enum vpx_img_fmt vpx_img_fmt_t
List of supported image formats.
#define VPX_IMG_FMT_UV_FLIP