|
StormByte C++ Library: Multimedia module 0.0.9999
StormByte-Multimedia is a StormByte library module for parsing configuration files
|
Deep-copying RAII wrapper for AVCodecParameters. More...
#include <StormByte/multimedia/ffmpeg/AVCodecParameters.hxx>


Public Member Functions | |
| AVCodecParameters (::AVCodecParameters *par) noexcept | |
Allocates and optionally copies from par. | |
| AVCodecParameters (const AVCodecParameters &other) noexcept | |
| Copy constructor (deep copy). | |
| AVCodecParameters (AVCodecParameters &&other) noexcept=default | |
| Move constructor. | |
| ~AVCodecParameters () noexcept override | |
| Destructor. | |
| AVCodecParameters & | operator= (const AVCodecParameters &other) noexcept |
| Copy assignment (deep copy). | |
| AVCodecParameters & | operator= (AVCodecParameters &&other) noexcept=default |
| Move assignment. | |
| int | CodecId () const noexcept |
| FFmpeg codec id. | |
| void | CodecId (int id) noexcept |
| Sets the FFmpeg codec id. | |
| std::int64_t | BitRate () const noexcept |
| Stream bitrate in bits per second. | |
| void | BitRate (std::int64_t bit_rate) noexcept |
| Sets stream bitrate in bits per second. | |
| int | Width () const noexcept |
| Frame width in pixels. | |
| void | Width (int width) noexcept |
| Sets frame width. | |
| int | Height () const noexcept |
| Frame height in pixels. | |
| void | Height (int height) noexcept |
| Sets frame height. | |
| AVRational | SampleAspectRatio () const noexcept |
Pixel aspect ratio (sample_aspect_ratio). | |
| void | SampleAspectRatio (AVRational sar) noexcept |
| Sets pixel aspect ratio. | |
| int | Format () const noexcept |
| Pixel or sample format. | |
| void | Format (int format) noexcept |
| Sets pixel or sample format. | |
| int | ColorRange () const noexcept |
| Color range. | |
| void | ColorRange (int range) noexcept |
| Sets color range. | |
| int | ColorSpace () const noexcept |
| Matrix coefficients. | |
| void | ColorSpace (int space) noexcept |
| Sets matrix coefficients. | |
| int | ColorPrimaries () const noexcept |
| Color primaries. | |
| void | ColorPrimaries (int primaries) noexcept |
| Sets color primaries. | |
| int | ColorTransfer () const noexcept |
| Transfer characteristics. | |
| void | ColorTransfer (int transfer) noexcept |
| Sets transfer characteristics. | |
| int | SampleRate () const noexcept |
| Audio sample rate in Hz. | |
| void | SampleRate (int rate) noexcept |
| Sets audio sample rate. | |
| int | Channels () const noexcept |
| Audio channel count. | |
| int | Profile () const noexcept |
| Codec profile id. | |
| void | Profile (int profile) noexcept |
| Sets codec profile id. | |
| AVChannelLayout | ChannelLayout () const noexcept |
| Channel layout owned by this wrapper. | |
| void | DefaultChannelLayout (int channels) noexcept |
Replaces the layout with FFmpeg's default for channels. | |
| operator bool () const noexcept | |
| Whether a parameters struct is owned. | |
| bool | CopyChannelLayout (const AVChannelLayout &layout) noexcept |
| Replaces the channel layout. | |
| bool | Export (::AVCodecParameters *dest) const noexcept |
Copies this into dest (avcodec_parameters_copy). | |
| void | WriteHdr10 (const StormByte::Multimedia::Property::HDR10 &hdr10) noexcept |
| Writes mastering display and content light onto coded side data. | |
| int | CodecType () const noexcept |
| Media type. | |
| void | CodecType (int type) noexcept |
| Sets media type. | |
Public Member Functions inherited from StormByte::Multimedia::FFmpeg::AVPointer<::AVCodecParameters > | |
| constexpr | AVPointer () noexcept=delete |
| Default constructor (deleted). | |
| constexpr | AVPointer (const AVPointer &) noexcept=delete |
| Copy constructor (deleted). | |
| constexpr | AVPointer (AVPointer &&other) noexcept |
| Move constructor. | |
| virtual | ~AVPointer () noexcept=default |
| Destructor. | |
| constexpr AVPointer & | operator= (const AVPointer &) noexcept=delete |
| Copy assignment (deleted). | |
| constexpr AVPointer & | operator= (AVPointer &&other) noexcept |
| Move assignment. | |
Friends | |
| class | AVBSF |
| class | AVDecoder |
| class | AVEncoder |
| class | AVFormatContext |
Additional Inherited Members | |
Protected Member Functions inherited from StormByte::Multimedia::FFmpeg::AVPointer<::AVCodecParameters > | |
| constexpr | AVPointer (std::decay_t< ::AVCodecParameters > *ptr) noexcept |
Adopts ptr. | |
| constexpr const std::decay_t< ::AVCodecParameters > * | Get () const noexcept |
| Const view of the raw FFmpeg pointer. | |
| constexpr std::decay_t< ::AVCodecParameters > * | Get () noexcept |
| Mutable view of the raw FFmpeg pointer. | |
| constexpr std::decay_t< ::AVCodecParameters > * | Detach () noexcept |
| Yields the raw pointer and leaves this wrapper empty. | |
Protected Attributes inherited from StormByte::Multimedia::FFmpeg::AVPointer<::AVCodecParameters > | |
| std::decay_t< ::AVCodecParameters > * | m_ptr |
| Owned FFmpeg pointer. | |
Deep-copying RAII wrapper for AVCodecParameters.
|
explicitnoexcept |
Allocates and optionally copies from par.
| par | Source parameters (may be null). |
|
noexcept |
Copy constructor (deep copy).
| other | Source parameters. |
|
defaultnoexcept |
Move constructor.
| other | Source parameters. |
|
overridenoexcept |
Destructor.
|
noexcept |
Stream bitrate in bits per second.
|
noexcept |
Sets stream bitrate in bits per second.
| bit_rate | Bitrate. 0 = unknown. |
|
noexcept |
Channel layout owned by this wrapper.
|
noexcept |
Audio channel count.
|
noexcept |
FFmpeg codec id.
AVCodecID as int, or AV_CODEC_ID_NONE.
|
noexcept |
Sets the FFmpeg codec id.
| id | AVCodecID as int. |
|
noexcept |
Media type.
AVMediaType as int.
|
noexcept |
Sets media type.
| type | AVMediaType as int. |
|
noexcept |
Color primaries.
AVColorPrimaries as int.
|
noexcept |
Sets color primaries.
| primaries | AVColorPrimaries as int. |
|
noexcept |
Color range.
AVColorRange as int.
|
noexcept |
Sets color range.
| range | AVColorRange as int. |
|
noexcept |
Matrix coefficients.
AVColorSpace as int.
|
noexcept |
Sets matrix coefficients.
| space | AVColorSpace as int. |
|
noexcept |
Transfer characteristics.
AVColorTransferCharacteristic as int.
|
noexcept |
Sets transfer characteristics.
| transfer | AVColorTransferCharacteristic as int. |
|
noexcept |
Replaces the channel layout.
| layout | Source layout. |
|
noexcept |
Replaces the layout with FFmpeg's default for channels.
| channels | Channel count. |
|
noexcept |
Copies this into dest (avcodec_parameters_copy).
| dest | Already allocated codecpar. |
|
noexcept |
Pixel or sample format.
AV_PIX_FMT_NONE.
|
noexcept |
Sets pixel or sample format.
| format | Format as int. |
|
noexcept |
Frame height in pixels.
|
noexcept |
Sets frame height.
| height | Height in pixels. |
|
explicitnoexcept |
Whether a parameters struct is owned.
|
defaultnoexcept |
Move assignment.
| other | Source parameters. |
|
noexcept |
Copy assignment (deep copy).
| other | Source parameters. |
|
noexcept |
Codec profile id.
AV_PROFILE_UNKNOWN.
|
noexcept |
Sets codec profile id.
| profile | Profile. |
|
noexcept |
Pixel aspect ratio (sample_aspect_ratio).
{num, den}, or {0, 1} if unknown.
|
noexcept |
Sets pixel aspect ratio.
| sar | {num, den} like libav. |
|
noexcept |
Audio sample rate in Hz.
|
noexcept |
Sets audio sample rate.
| rate | Sample rate in Hz. |
|
noexcept |
Frame width in pixels.
|
noexcept |
Sets frame width.
| width | Width in pixels. |
|
noexcept |
Writes mastering display and content light onto coded side data.
| hdr10 | High-level HDR10 bag. |
|
friend |
|
friend |
|
friend |
|
friend |