Skip to main content

CDCIDescriptor

Struct CDCIDescriptor 

Source
pub struct CDCIDescriptor {
Show 37 fields pub instance_id: Option<String>, pub stored_width: Option<u32>, pub stored_height: Option<u32>, pub display_width: Option<u32>, pub display_height: Option<u32>, pub active_width: Option<u32>, pub active_height: Option<u32>, pub sample_rate: Option<EditRate>, pub image_aspect_ratio: Option<String>, pub color_primaries: Option<ColorPrimaries>, pub transfer_characteristic: Option<TransferCharacteristic>, pub coding_equations: Option<CodingEquations>, pub picture_compression: Option<VideoCodec>, pub component_depth: Option<u32>, pub frame_layout: Option<String>, pub display_f2_offset: Option<i32>, pub horizontal_subsampling: Option<u32>, pub vertical_subsampling: Option<u32>, pub color_siting: Option<u32>, pub black_ref_level: Option<u32>, pub white_ref_level: Option<u32>, pub color_range: Option<u32>, pub stored_f2_offset: Option<i32>, pub sampled_width: Option<u32>, pub sampled_height: Option<u32>, pub sampled_x_offset: Option<u32>, pub sampled_y_offset: Option<u32>, pub alpha_transparency: Option<String>, pub image_alignment_offset: Option<u32>, pub image_start_offset: Option<u32>, pub image_end_offset: Option<u32>, pub field_dominance: Option<u32>, pub reversed_byte_order: Option<String>, pub padding_bits: Option<i32>, pub alpha_sample_depth: Option<u32>, pub linked_track_id: Option<u32>, pub sub_descriptors: Option<VideoSubDescriptors>,
}
Expand description

CDCI video descriptor (YCbCr content)

Fields§

§instance_id: Option<String>§stored_width: Option<u32>§stored_height: Option<u32>§display_width: Option<u32>§display_height: Option<u32>§active_width: Option<u32>§active_height: Option<u32>§sample_rate: Option<EditRate>§image_aspect_ratio: Option<String>§color_primaries: Option<ColorPrimaries>§transfer_characteristic: Option<TransferCharacteristic>§coding_equations: Option<CodingEquations>§picture_compression: Option<VideoCodec>§component_depth: Option<u32>§frame_layout: Option<String>

Generic Picture Essence Descriptor: Frame Layout “FullFrame” (00h, progressive) or “SeparateFields” (01h, interlaced)

§display_f2_offset: Option<i32>

Generic Picture Essence Descriptor: DisplayF2Offset

§horizontal_subsampling: Option<u32>

CDCI Descriptor: Horizontal Subsampling (Table 12) 1 = 4:4:4, 2 = 4:2:2

§vertical_subsampling: Option<u32>

CDCI Descriptor: Vertical Subsampling (Table 12) Shall be 1

§color_siting: Option<u32>

CDCI Descriptor: Color Siting (Table 12) Shall be 0 (CoSiting) but some encoders write a label string (e.g. “CoSiting”).

§black_ref_level: Option<u32>

CDCI Descriptor: Black Ref Level (Table 13)

§white_ref_level: Option<u32>

CDCI Descriptor: White Ref Level (Table 13)

§color_range: Option<u32>

CDCI Descriptor: Color Range (Table 13)

§stored_f2_offset: Option<i32>

Table 8: StoredF2Offset — shall not be present

§sampled_width: Option<u32>

Table 8: SampledWidth — shall not be present or shall be equal to StoredWidth

§sampled_height: Option<u32>

Table 8: SampledHeight — shall not be present or shall be equal to StoredHeight

§sampled_x_offset: Option<u32>

Table 8: SampledXOffset — shall not be present or shall be 0

§sampled_y_offset: Option<u32>

Table 8: SampledYOffset — shall not be present or shall be 0

§alpha_transparency: Option<String>

Table 8: AlphaTransparency — shall not be present

§image_alignment_offset: Option<u32>

Table 8: ImageAlignmentOffset — shall not be present

§image_start_offset: Option<u32>

Table 8: ImageStartOffset — shall not be present

§image_end_offset: Option<u32>

Table 8: ImageEndOffset — shall not be present

§field_dominance: Option<u32>

Table 8: FieldDominance — shall be present if interlaced, shall not be present if progressive

§reversed_byte_order: Option<String>

Table 12: ReversedByteOrder — shall not be present

§padding_bits: Option<i32>

Table 12: PaddingBits — shall not be present

§alpha_sample_depth: Option<u32>

Table 12: AlphaSampleDepth — shall not be present

§linked_track_id: Option<u32>§sub_descriptors: Option<VideoSubDescriptors>

Trait Implementations§

Source§

impl Clone for CDCIDescriptor

Source§

fn clone(&self) -> CDCIDescriptor

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CDCIDescriptor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CDCIDescriptor

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for CDCIDescriptor

Source§

fn eq(&self, other: &CDCIDescriptor) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CDCIDescriptor

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CDCIDescriptor

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.