cef_channel_layout_t

Enum cef_channel_layout_t 

Source
#[non_exhaustive]
#[repr(u32)]
pub enum cef_channel_layout_t {
Show 37 variants CEF_CHANNEL_LAYOUT_NONE = 0, CEF_CHANNEL_LAYOUT_UNSUPPORTED = 1, CEF_CHANNEL_LAYOUT_MONO = 2, CEF_CHANNEL_LAYOUT_STEREO = 3, CEF_CHANNEL_LAYOUT_2_1 = 4, CEF_CHANNEL_LAYOUT_SURROUND = 5, CEF_CHANNEL_LAYOUT_4_0 = 6, CEF_CHANNEL_LAYOUT_2_2 = 7, CEF_CHANNEL_LAYOUT_QUAD = 8, CEF_CHANNEL_LAYOUT_5_0 = 9, CEF_CHANNEL_LAYOUT_5_1 = 10, CEF_CHANNEL_LAYOUT_5_0_BACK = 11, CEF_CHANNEL_LAYOUT_5_1_BACK = 12, CEF_CHANNEL_LAYOUT_7_0 = 13, CEF_CHANNEL_LAYOUT_7_1 = 14, CEF_CHANNEL_LAYOUT_7_1_WIDE = 15, CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX = 16, CEF_CHANNEL_LAYOUT_2POINT1 = 17, CEF_CHANNEL_LAYOUT_3_1 = 18, CEF_CHANNEL_LAYOUT_4_1 = 19, CEF_CHANNEL_LAYOUT_6_0 = 20, CEF_CHANNEL_LAYOUT_6_0_FRONT = 21, CEF_CHANNEL_LAYOUT_HEXAGONAL = 22, CEF_CHANNEL_LAYOUT_6_1 = 23, CEF_CHANNEL_LAYOUT_6_1_BACK = 24, CEF_CHANNEL_LAYOUT_6_1_FRONT = 25, CEF_CHANNEL_LAYOUT_7_0_FRONT = 26, CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK = 27, CEF_CHANNEL_LAYOUT_OCTAGONAL = 28, CEF_CHANNEL_LAYOUT_DISCRETE = 29, CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC = 30, CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE = 31, CEF_CHANNEL_LAYOUT_BITSTREAM = 32, CEF_CHANNEL_LAYOUT_5_1_4_DOWNMIX = 33, CEF_CHANNEL_LAYOUT_1_1 = 34, CEF_CHANNEL_LAYOUT_3_1_BACK = 35, CEF_CHANNEL_NUM_VALUES = 36,
}
Expand description

Enumerates the various representations of the ordering of audio channels. Must be kept synchronized with media::ChannelLayout from Chromium. See media\base\channel_layout.h

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

CEF_CHANNEL_LAYOUT_NONE = 0

§

CEF_CHANNEL_LAYOUT_UNSUPPORTED = 1

§

CEF_CHANNEL_LAYOUT_MONO = 2

Front C

§

CEF_CHANNEL_LAYOUT_STEREO = 3

Front L, Front R

§

CEF_CHANNEL_LAYOUT_2_1 = 4

Front L, Front R, Back C

§

CEF_CHANNEL_LAYOUT_SURROUND = 5

Front L, Front R, Front C

§

CEF_CHANNEL_LAYOUT_4_0 = 6

Front L, Front R, Front C, Back C

§

CEF_CHANNEL_LAYOUT_2_2 = 7

Front L, Front R, Side L, Side R

§

CEF_CHANNEL_LAYOUT_QUAD = 8

Front L, Front R, Back L, Back R

§

CEF_CHANNEL_LAYOUT_5_0 = 9

Front L, Front R, Front C, Side L, Side R

§

CEF_CHANNEL_LAYOUT_5_1 = 10

Front L, Front R, Front C, LFE, Side L, Side R

§

CEF_CHANNEL_LAYOUT_5_0_BACK = 11

Front L, Front R, Front C, Back L, Back R

§

CEF_CHANNEL_LAYOUT_5_1_BACK = 12

Front L, Front R, Front C, LFE, Back L, Back R

§

CEF_CHANNEL_LAYOUT_7_0 = 13

Front L, Front R, Front C, Back L, Back R, Side L, Side R

§

CEF_CHANNEL_LAYOUT_7_1 = 14

Front L, Front R, Front C, LFE, Back L, Back R, Side L, Side R

§

CEF_CHANNEL_LAYOUT_7_1_WIDE = 15

Front L, Front R, Front C, LFE, Front LofC, Front RofC, Side L, Side R

§

CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX = 16

Front L, Front R

§

CEF_CHANNEL_LAYOUT_2POINT1 = 17

Front L, Front R, LFE

§

CEF_CHANNEL_LAYOUT_3_1 = 18

Front L, Front R, Front C, LFE

§

CEF_CHANNEL_LAYOUT_4_1 = 19

Front L, Front R, Front C, LFE, Back C

§

CEF_CHANNEL_LAYOUT_6_0 = 20

Front L, Front R, Front C, Back C, Side L, Side R

§

CEF_CHANNEL_LAYOUT_6_0_FRONT = 21

Front L, Front R, Front LofC, Front RofC, Side L, Side R

§

CEF_CHANNEL_LAYOUT_HEXAGONAL = 22

Front L, Front R, Front C, Back L, Back R, Back C

§

CEF_CHANNEL_LAYOUT_6_1 = 23

Front L, Front R, Front C, LFE, Back C, Side L, Side R

§

CEF_CHANNEL_LAYOUT_6_1_BACK = 24

Front L, Front R, Front C, LFE, Back L, Back R, Back C

§

CEF_CHANNEL_LAYOUT_6_1_FRONT = 25

Front L, Front R, LFE, Front LofC, Front RofC, Side L, Side R

§

CEF_CHANNEL_LAYOUT_7_0_FRONT = 26

Front L, Front R, Front C, Front LofC, Front RofC, Side L, Side R

§

CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK = 27

Front L, Front R, Front C, LFE, Back L, Back R, Front LofC, Front RofC

§

CEF_CHANNEL_LAYOUT_OCTAGONAL = 28

Front L, Front R, Front C, Back L, Back R, Back C, Side L, Side R

§

CEF_CHANNEL_LAYOUT_DISCRETE = 29

Channels are not explicitly mapped to speakers.

§

CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC = 30

Deprecated, but keeping the enum value for UMA consistency. Front L, Front R, Front C. Front C contains the keyboard mic audio. This layout is only intended for input for WebRTC. The Front C channel is stripped away in the WebRTC audio input pipeline and never seen outside of that.

§

CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE = 31

Front L, Front R, LFE, Side L, Side R

§

CEF_CHANNEL_LAYOUT_BITSTREAM = 32

Actual channel layout is specified in the bitstream and the actual channel count is unknown at Chromium media pipeline level (useful for audio pass-through mode).

§

CEF_CHANNEL_LAYOUT_5_1_4_DOWNMIX = 33

Front L, Front R, Front C, LFE, Side L, Side R, Front Height L, Front Height R, Rear Height L, Rear Height R Will be represented as six channels (5.1) due to eight channel limit kMaxConcurrentChannels

§

CEF_CHANNEL_LAYOUT_1_1 = 34

Front C, LFE

§

CEF_CHANNEL_LAYOUT_3_1_BACK = 35

Front L, Front R, LFE, Back C

§

CEF_CHANNEL_NUM_VALUES = 36

Front L, Front R, LFE, Back C

Trait Implementations§

Source§

impl Clone for cef_channel_layout_t

Source§

fn clone(&self) -> cef_channel_layout_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for cef_channel_layout_t

Source§

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

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

impl Hash for cef_channel_layout_t

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for cef_channel_layout_t

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 Copy for cef_channel_layout_t

Source§

impl Eq for cef_channel_layout_t

Source§

impl StructuralPartialEq for cef_channel_layout_t

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