RAII AVChannelLayout (av_channel_layout_copy / uninit).
More...
#include <StormByte/multimedia/ffmpeg/AVChannelLayout.hxx>
RAII AVChannelLayout (av_channel_layout_copy / uninit).
Named like the C struct so AVChannelLayout stereo(2) reads as av_channel_layout_default(&stereo, 2). The C type is AVChannelLayout.
◆ AVChannelLayout() [1/4]
| StormByte::Multimedia::FFmpeg::AVChannelLayout::AVChannelLayout |
( |
| ) |
|
|
noexcept |
◆ AVChannelLayout() [2/4]
| StormByte::Multimedia::FFmpeg::AVChannelLayout::AVChannelLayout |
( |
int |
channels | ) |
|
|
explicitnoexcept |
Default layout for channels (av_channel_layout_default).
- Parameters
-
◆ AVChannelLayout() [3/4]
| StormByte::Multimedia::FFmpeg::AVChannelLayout::AVChannelLayout |
( |
const AVChannelLayout & |
other | ) |
|
|
noexcept |
Deep copy (av_channel_layout_copy).
- Parameters
-
◆ AVChannelLayout() [4/4]
| StormByte::Multimedia::FFmpeg::AVChannelLayout::AVChannelLayout |
( |
AVChannelLayout && |
other | ) |
|
|
noexcept |
Move constructor.
other is left empty.
- Parameters
-
◆ ~AVChannelLayout()
| StormByte::Multimedia::FFmpeg::AVChannelLayout::~AVChannelLayout |
( |
| ) |
|
|
noexcept |
Destructor.
av_channel_layout_uninit + free.
◆ Default()
| static AVChannelLayout StormByte::Multimedia::FFmpeg::AVChannelLayout::Default |
( |
int |
channels | ) |
|
|
staticnoexcept |
Default layout for channels.
- Parameters
-
- Returns
- Layout, or empty on failure.
◆ Mask()
| std::uint64_t StormByte::Multimedia::FFmpeg::AVChannelLayout::Mask |
( |
| ) |
const |
|
noexcept |
Native bitmask (u.mask) when order is native.
- Returns
- Mask, or 0.
◆ NbChannels()
| int StormByte::Multimedia::FFmpeg::AVChannelLayout::NbChannels |
( |
| ) |
const |
|
noexcept |
Channel count (nb_channels).
- Returns
- Count, or 0.
◆ operator bool()
| StormByte::Multimedia::FFmpeg::AVChannelLayout::operator bool |
( |
| ) |
const |
|
explicitnoexcept |
Whether a layout is stored.
- Returns
- true after a successful Default / copy.
◆ operator!=()
| bool StormByte::Multimedia::FFmpeg::AVChannelLayout::operator!= |
( |
const AVChannelLayout & |
other | ) |
const |
|
noexcept |
Inequality.
- Parameters
-
- Returns
- true if not equal.
◆ operator=() [1/2]
Move assignment.
other is left empty.
- Parameters
-
- Returns
- *this.
◆ operator=() [2/2]
Deep copy assignment.
- Parameters
-
- Returns
- *this.
◆ operator==()
| bool StormByte::Multimedia::FFmpeg::AVChannelLayout::operator== |
( |
const AVChannelLayout & |
other | ) |
const |
|
noexcept |
av_channel_layout_compare == 0.
- Parameters
-
- Returns
- true if equal.
◆ Order()
| int StormByte::Multimedia::FFmpeg::AVChannelLayout::Order |
( |
| ) |
const |
|
noexcept |
AVChannelOrder as int.
- Returns
- Order, or 0.
◆ AVCodecParameters
◆ AVDecoder
◆ AVEncoder
◆ AVFrame
◆ Convert
◆ Swr
The documentation for this class was generated from the following file: