DataBlockRef

Struct DataBlockRef 

Source
pub struct DataBlockRef(/* private fields */);
Expand description

CTA data block, defined in section 7.4.

Implementations§

Source§

impl DataBlockRef

Source

pub fn tag(&self) -> DataBlockTag

Get the tag of the CTA data block.

Source

pub fn sads(&self) -> impl Iterator<Item = Sad>

👎Deprecated since 0.3.0: use DataBlockRef::audio() instead

Get an array of short audio descriptors from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_AUDIO.

Source

pub fn audio(&self) -> Option<AudioBlockRef>

Available on crate feature v0_3 only.

Get the audio from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_AUDIO.

Source

pub fn speaker_alloc(&self) -> Option<SpeakerAllocBlock>

Get the speaker allocation from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_SPEAKER_ALLOC.

Source

pub fn video_cap(&self) -> Option<VideoCapBlock>

Get the video capabilities from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_VIDEO_CAP.

Source

pub fn vesa_dddb(&self) -> Option<VesaDddb>

👎Deprecated since 0.3.0: use DataBlockRef::vesa_display_device() instead

Get the VESA Display Device Data Block (DDDB) from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_VESA_DISPLAY_DEVICE.

Source

pub fn vesa_display_device(&self) -> Option<VesaDisplayDeviceBlock>

Available on crate feature v0_3 only.

Get the VESA Display Device Data Block (DDDB) from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_VESA_DISPLAY_DEVICE.

Source

pub fn colorimetry(&self) -> Option<ColorimetryBlock>

Get the colorimetry data from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_COLORIMETRY.

Source

pub fn hdr_static_metadata(&self) -> Option<HdrStaticMetadataBlock>

Get the HDR static metadata from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_HDR_STATIC_METADATA.

Source

pub fn hdr_dynamic_metadata(&self) -> Option<HdrDynamicMetadataBlock>

Get the HDR dynamic metadata from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_HDR_DYNAMIC_METADATA.

Source

pub fn svds(&self) -> impl Iterator<Item = Svd>

👎Deprecated since 0.3.0: use DataBlockRef::video() instead

Get an array of short video descriptors from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_VIDEO.

Source

pub fn video(&self) -> Option<VideoBlockRef>

Available on crate feature v0_3 only.

Get the video from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_VIDEO.

Source

pub fn ycbcr420_svds(&self) -> impl Iterator<Item = Svd>

👎Deprecated since 0.3.0: use DataBlockRef::ycbcr420_video() instead

Get an array of short video descriptors which only allow YCbCr 4:2:0 sampling mode from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_YCBCR420.

Source

pub fn ycbcr420_video(&self) -> Option<Ycbcr420VideoBlockRef>

Available on crate feature v0_3 only.

Get the YCbCr video from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_YCBCR420.

Source

pub fn vesa_transfer_characteristics( &self, ) -> Option<VesaTransferCharacteristics>

Get the Display Transfer Characteristic from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_VESA_DISPLAY_TRANSFER_CHARACTERISTIC.

Upstream is not aware of any EDID blob containing a Display Transfer Characteristic data block. If such a blob is found, please share it with upstream!

Source

pub fn ycbcr420_cap_map(&self) -> Option<Ycbcr420CapMapRef>

Get the YCbCr 4:2:0 Capability Map from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_YCBCR420_CAP_MAP.

Source

pub fn infoframe(&self) -> Option<InfoframeBlockRef>

Get the InfoFrame information from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_INFOFRAME.

Source

pub fn hdmi_audio(&self) -> Option<HdmiAudioBlockRef>

Available on crate features v0_2 or v0_3 only.

Get the HDMI Audio information from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_HDMI_AUDIO.

Source

pub fn room_configuration(&self) -> Option<RoomConfiguration>

Available on crate features v0_2 or v0_3 only.

Get the Room Configuration from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_ROOM_CONFIG.

Source

pub fn speaker_locations(&self) -> impl Iterator<Item = SpeakerLocations>

Available on crate features v0_2 or v0_3 only.

Get an array of Speaker Locations.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_SPEAKER_LOCATION.

Source

pub fn did_type_vii_timing(&self) -> Option<TypeIIIVIITiming>

Available on crate features v0_2 or v0_3 only.

Get the DisplayID Type VII Video Timing from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_DISPLAYID_VIDEO_TIMING_VII.

Source

pub fn svrs(&self) -> impl Iterator<Item = Svr>

👎Deprecated since 0.3.0: use DataBlockRef::video_format_pref() instead
Available on crate features v0_2 or v0_3 only.

Get an array of Short Video References (SVRs) from a CTA data block. The first SVR refers to the most-preferred Video Format, while the next SVRs are listed in order of decreasing preference.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_VIDEO_FORMAT_PREF.

Source

pub fn video_format_pref(&self) -> Option<VideoFormatPrefBlockRef>

Available on crate feature v0_3 only.

Get the Video Format Preference information from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_VIDEO_FORMAT_PREF.

Source

pub fn hdr10plus(&self) -> Option<HDR10PlusBlock>

Available on crate feature v0_3 only.

Get the HDR10+ information from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_HDR10PLUS.

Source

pub fn dolby_video(&self) -> Option<DolbyVideoBlock>

Available on crate feature v0_3 only.

Get the Dolby Vision information from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_DOLBY_VIDEO.

Source

pub fn vendor_hdmi(&self) -> Option<VendorHdmiBlockRef>

Available on crate feature v0_3 only.

Get the vendor-specific HDMI information from a CTA data block.

Note, the HDMI and HDMI Forum vendor-specific data blocks are different.

Returns None if the data block tag is not\n DI_CTA_DATA_BLOCK_VENDOR_HDMI.

Source

pub fn vendor_hdmi_forum(&self) -> Option<VendorHdmiForumBlock>

Available on crate feature v0_3 only.

Get the vendor-specific HDMI Forum information from a CTA data block.

Note, the HDMI and HDMI Forum vendor-specific data blocks are different.

Returns None if the data block tag is not\n DI_CTA_DATA_BLOCK_VENDOR_HDMI_FORUM.

Source

pub fn hdmi_sink_cap(&self) -> Option<HdmiForumSinkCap>

Available on crate feature v0_3 only.

Get the HDMI Forum Sink Capability (HF-SCDB) from a CTA data block.

Returns None if the data block tag is not DI_CTA_DATA_BLOCK_HDMI_SINK_CAP.

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> 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, 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.