#[repr(C)]
pub struct aom_image {
Show 28 fields pub fmt: aom_img_fmt_t, pub cp: aom_color_primaries_t, pub tc: aom_transfer_characteristics_t, pub mc: aom_matrix_coefficients_t, pub monochrome: c_int, pub csp: aom_chroma_sample_position_t, pub range: aom_color_range_t, pub w: c_uint, pub h: c_uint, pub bit_depth: c_uint, pub d_w: c_uint, pub d_h: c_uint, pub r_w: c_uint, pub r_h: c_uint, pub x_chroma_shift: c_uint, pub y_chroma_shift: c_uint, pub planes: [*mut c_uchar; 3], pub stride: [c_int; 3], pub sz: usize, pub bps: c_int, pub temporal_id: c_int, pub spatial_id: c_int, pub user_priv: *mut c_void, pub img_data: *mut c_uchar, pub img_data_owner: c_int, pub self_allocd: c_int, pub metadata: *mut aom_metadata_array_t, pub fb_priv: *mut c_void,
}
Expand description

Image Descriptor

Fields

fmt: aom_img_fmt_t

Image Format

cp: aom_color_primaries_t

CICP Color Primaries

tc: aom_transfer_characteristics_t

CICP Transfer Characteristics

mc: aom_matrix_coefficients_t

CICP Matrix Coefficients

monochrome: c_int

Whether image is monochrome

csp: aom_chroma_sample_position_t

chroma sample position

range: aom_color_range_t

Color Range

w: c_uint

Stored image width

h: c_uint

Stored image height

bit_depth: c_uint

Stored image bit-depth

d_w: c_uint

Displayed image width

d_h: c_uint

Displayed image height

r_w: c_uint

Intended rendering image width

r_h: c_uint

Intended rendering image height

x_chroma_shift: c_uint

subsampling order, X

y_chroma_shift: c_uint

subsampling order, Y

planes: [*mut c_uchar; 3]

pointer to the top left pixel for each plane

stride: [c_int; 3]

stride between rows for each plane

sz: usize

data size

bps: c_int

bits per sample (for packed formats)

temporal_id: c_int

Temporal layer Id of image

spatial_id: c_int

Spatial layer Id of image

user_priv: *mut c_void

The following member may be set by the application to associate data with this image.

img_data: *mut c_uchar

private

img_data_owner: c_int

private

self_allocd: c_int

private

metadata: *mut aom_metadata_array_t

Metadata payloads associated with the image.

fb_priv: *mut c_void

Frame buffer data associated with the image.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.