/*!\brief Current ABI version number * *\internal *IfthisfileisalteredinanywaythatchangestheABI,thisvalue *mustbebumped.Examplesinclude,butarenotlimitedto,changing *types,removingorreassigningenums,adding/removing/rearranging *fieldstostructures
*/ #define VPX_IMAGE_ABI_VERSION (5) /**<\hideinitializer*/
#define VPX_IMG_FMT_PLANAR 0x100 /**< Image is a planar format. */ #define VPX_IMG_FMT_UV_FLIP 0x200 /**< V plane precedes U in memory. */ #define VPX_IMG_FMT_HAS_ALPHA 0x400 /**< Image has an alpha channel. */ #define VPX_IMG_FMT_HIGHBITDEPTH 0x800 /**< Image uses 16bit framebuffer. */
/*!\brief List of supported color range */ typedefenum vpx_color_range {
VPX_CR_STUDIO_RANGE = 0, /**<- Y [16..235], UV [16..240] (bit depth 8) */ /**<- Y [64..940], UV [64..960] (bit depth 10) */ /**<- Y [256..3760], UV [256..3840] (bit depth 12) */
VPX_CR_FULL_RANGE = 1/**<- YUV/RGB [0..255] (bit depth 8) */ /**<- YUV/RGB [0..1023] (bit depth 10) */ /**<- YUV/RGB [0..4095] (bit depth 12) */
} vpx_color_range_t; /**< alias for enum vpx_color_range */
/**\brief Image Descriptor */ typedefstruct vpx_image {
vpx_img_fmt_t fmt; /**< Image Format */
vpx_color_space_t cs; /**< Color Space */
vpx_color_range_t range; /**< Color Range */
/* Chroma subsampling info */ unsignedint x_chroma_shift; /**< subsampling order, X */ unsignedint y_chroma_shift; /**< subsampling order, Y */
/* Image data pointers. */ #define VPX_PLANE_PACKED 0/**< To be used for all packed formats */ #define VPX_PLANE_Y 0/**< Y (Luminance) plane */ #define VPX_PLANE_U 1/**< U (Chroma) plane */ #define VPX_PLANE_V 2/**< V (Chroma) plane */ #define VPX_PLANE_ALPHA 3/**< A (Transparency) plane */ unsignedchar *planes[4]; /**< pointer to the top left pixel for each plane */ /*!Stride between rows for each plane * *\noteWithplanarformats,\cstride[VPX_PLANE_U]mustbethesameas\c *stride[VPX_PLANE_V].
*/ int stride[4];
int bps; /**< bits per sample (for packed formats) */
/*!\brief The following member may be set by the application to associate *datawiththisimage.
*/ void *user_priv;
/* The following members should be treated as private. */ unsignedchar *img_data; /**< private */ int img_data_owner; /**< private */ int self_allocd; /**< private */
void *fb_priv; /**< Frame buffer data associated with the image. */
} vpx_image_t; /**< alias for struct vpx_image */
/**\brief Representation of a rectangle on a surface */ typedefstruct vpx_image_rect { unsignedint x; /**< leftmost column */ unsignedint y; /**< topmost row */ unsignedint w; /**< width */ unsignedint h; /**< height */
} vpx_image_rect_t; /**< alias for struct vpx_image_rect */
/*!\brief Set the rectangle identifying the displayed portion of the image * *Updatesthedisplayedrectangle(akaviewport)ontheimagesurfaceto *matchthespecifiedcoordinatesandsize.Specifically,setsimg->d_w, *img->d_h,andelementsoftheimg->planes[]array. * *\param[in]imgImagedescriptor *\param[in]xleftmostcolumn *\param[in]ytopmostrow *\param[in]wwidth *\param[in]hheight * *\return0iftherequestedrectangleisvalid,nonzero(-1)otherwise.
*/ int vpx_img_set_rect(vpx_image_t *img, unsignedint x, unsignedint y, unsignedint w, unsignedint h);
/*!\brief Flip the image vertically (top for bottom) * *Adjuststheimagedescriptor'spointersandstridestomaketheimage *bereferencedupside-down. * *\param[in]imgImagedescriptor
*/ void vpx_img_flip(vpx_image_t *img);
/*!\brief Close an image descriptor * *Freesallallocatedstorageassociatedwithanimagedescriptor. * *\param[in]imgImagedescriptor
*/ void vpx_img_free(vpx_image_t *img);
#ifdef __cplusplus
} // extern "C" #endif
#endif// VPX_VPX_VPX_IMAGE_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet am 2026-08-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.