|
|
| ChannelLayout ()=default |
| | Create an empty layout that owns nothing.
|
| | ChannelLayout (const ChannelLayoutView &view) |
| | Copy a view into an owning layout.
|
| | ChannelLayout (const ChannelLayout &other) |
| | Deep copy of a layout.
|
| ChannelLayout & | operator= (const ChannelLayout &other) |
| | Deep copy assignment; the previous contents are released.
|
| | ChannelLayout (ChannelLayout &&other) |
| | Move a layout.
|
| ChannelLayout & | operator= (ChannelLayout &&other) |
| | Move assignment; the previous contents are released.
|
|
| ~ChannelLayout () |
| | Release the owned description.
|
| | ChannelLayout (std::bitset< 64 > mask) |
| | Build a layout from a bit mask.
|
| | ChannelLayout (const char *str) |
| | Build a layout from its textual form.
|
| | ChannelLayout (int channels) |
| | Build the default layout for a channel count.
|
| void | release () |
| | Give up control of the owned description.
|
|
| ChannelLayoutView () noexcept |
| | Create an empty, invalid view.
|
| | ChannelLayoutView (const AVChannelLayout &layout) noexcept |
| | Wrap an FFmpeg channel layout.
|
|
| ChannelLayoutView () noexcept |
| | Create an empty, invalid view.
|
| | ChannelLayoutView (const AVChannelLayout &layout) noexcept |
| | Wrap an FFmpeg channel layout.
|
| AVChannelLayout * | raw () |
| | The underlying FFmpeg layout, mutable.
|
| const AVChannelLayout * | raw () const |
| | The underlying FFmpeg layout, read-only.
|
| int | channels () const noexcept |
| | Number of channels in the layout.
|
| uint64_t | layout () const noexcept |
| | The layout as a bit mask when it can be expressed as one.
|
| uint64_t | subset (uint64_t mask) const noexcept |
| | Intersection of the layout with a mask.
|
| bool | isValid () const noexcept |
| | Whether the view refers to a usable layout.
|
| std::string | describe () const |
| | Text description of the layout.
|
| void | describe (std::string &desc) const |
| | Text description of the layout into an existing string.
|
| int | index (AVChannel channel) const |
| | Position of a speaker in the layout.
|
| int | index (const char *name) const |
| | Position of a speaker in the layout, by name.
|
| AVChannel | channel (unsigned int index) const |
| | Speaker at a position.
|
| AVChannel | channel (const char *name) const |
| | Speaker by name.
|
| bool | operator== (const ChannelLayoutView &other) const noexcept |
| | Compare two layouts.
|
| ChannelLayout | clone () const |
| | Deep copy of the layout.
|
Holds the description allocated by FFmpeg and releases it on destruction; copying duplicates it, moving transfers it. release() exists for the case where the description is handed over to an FFmpeg structure that takes ownership.