#[repr(C)]pub struct WebPPicture {Show 30 fields
pub use_argb: c_int,
pub colorspace: WebPEncCSP,
pub width: c_int,
pub height: c_int,
pub y: *mut u8,
pub u: *mut u8,
pub v: *mut u8,
pub y_stride: c_int,
pub uv_stride: c_int,
pub a: *mut u8,
pub a_stride: c_int,
pub pad1: [u32; 2],
pub argb: *mut u32,
pub argb_stride: c_int,
pub pad2: [u32; 3],
pub writer: Option<WebPWriterFunction>,
pub custom_ptr: *mut c_void,
pub extra_info_type: c_int,
pub extra_info: *mut u8,
pub stats: *mut WebPAuxStats,
pub error_code: WebPEncodingError,
pub progress_hook: Option<WebPProgressHook>,
pub user_data: *mut c_void,
pub pad3: [u32; 3],
pub pad4: *mut u8,
pub pad5: *mut u8,
pub pad6: [u32; 8],
pub memory_: *mut c_void,
pub memory_argb_: *mut c_void,
pub pad7: [*mut c_void; 2],
}Expand description
Main exchange structure (C layout).
Fields§
§use_argb: c_intMain flag for encoder selecting between ARGB or YUV input.
colorspace: WebPEncCSPColorspace: should be YUV420 for now (Y'CbCr).
width: c_intWidth (less or equal to WEBP_MAX_DIMENSION).
height: c_intHeight (less or equal to WEBP_MAX_DIMENSION).
y: *mut u8Luma plane.
u: *mut u8Chroma U plane.
v: *mut u8Chroma V plane.
y_stride: c_intLuma stride.
uv_stride: c_intChroma stride.
a: *mut u8Alpha plane.
a_stride: c_intStride of the alpha plane.
pad1: [u32; 2]Padding for later use.
argb: *mut u32ARGB (32 bit) plane.
argb_stride: c_intStride in pixels, not bytes.
pad2: [u32; 3]Padding for later use.
writer: Option<WebPWriterFunction>Byte-emission hook; can be NULL.
custom_ptr: *mut c_voidCan be used by the writer.
extra_info_type: c_int1: intra type, 2: segment, 3: quant, …
extra_info: *mut u8If not NULL, an array of one byte per macroblock.
stats: *mut WebPAuxStatsPointer to side statistics (updated only if not NULL).
error_code: WebPEncodingErrorError code for the latest error encountered during encoding.
progress_hook: Option<WebPProgressHook>If not NULL, report progress during encoding.
user_data: *mut c_voidFree to be set to any value and used during callbacks.
pad3: [u32; 3]Padding for later use.
pad4: *mut u8Unused for now.
pad5: *mut u8Unused for now.
pad6: [u32; 8]Padding for later use.
memory_: *mut c_voidRow chunk of memory for the YUVA planes.
memory_argb_: *mut c_voidAnd for the ARGB plane.
pad7: [*mut c_void; 2]Padding for later use.