The CodecParametersView class.
More...
#include <codecparameters.h>
|
|
AVCodecParameters * | m_raw |
| | The wrapped pointer; owned by the derived class, not by this template.
|
Not-owned wrapper for AVCodecParameters. Do not keep for a long time.
◆ CodecParametersView()
| av::CodecParametersView::CodecParametersView |
( |
AVCodecParameters * | codecpar = nullptr | ) |
|
- Parameters
-
| codecpar | the parameters to view; null produces an invalid view |
- Note
- Non-owning: the parameters must outlive the view.
◆ codecId() [1/2]
| AVCodecID av::CodecParametersView::codecId |
( |
| ) |
const |
◆ codecId() [2/2]
| void av::CodecParametersView::codecId |
( |
AVCodecID | codec_id | ) |
|
- Parameters
-
| codec_id | the AV_CODEC_ID_* value |
◆ codecTag() [1/2]
| uint32_t av::CodecParametersView::codecTag |
( |
| ) |
const |
- Returns
- the tag, or zero when it is not set
◆ codecTag() [2/2]
| void av::CodecParametersView::codecTag |
( |
uint32_t | codec_tag | ) |
|
- Parameters
-
| codec_tag | the tag to store; zero clears it, which lets the muxer choose a tag for its own container |
◆ codecType() [1/2]
| AVMediaType av::CodecParametersView::codecType |
( |
| ) |
const |
- Returns
- the AVMEDIA_TYPE_* value
◆ codecType() [2/2]
| void av::CodecParametersView::codecType |
( |
AVMediaType | codec_type | ) |
|
- Parameters
-
| codec_type | the AVMEDIA_TYPE_* value |
◆ copyFrom() [1/2]
◆ copyFrom() [2/2]
- Parameters
-
| src | the context to copy from |
| ec | holder for the error code |
◆ copyTo() [1/2]
- Parameters
-
| dst | the context to fill |
| ec | holder for the error code |
◆ copyTo() [2/2]
- Parameters
-
| dst | the parameters to fill |
| ec | holder for the error code |
◆ decodingCodec()
| Codec av::CodecParametersView::decodingCodec |
( |
| ) |
const |
- Returns
- the codec descriptor, or an invalid one when no decoder exists
- Examples
- api2-remux.cpp.
◆ encodingCodec()
| Codec av::CodecParametersView::encodingCodec |
( |
| ) |
const |
- Returns
- the codec descriptor, or an invalid one when no encoder exists
◆ getAudioFrameDuration()
| int av::CodecParametersView::getAudioFrameDuration |
( |
int | frame_bytes | ) |
const |
- Parameters
-
| frame_bytes | size of the frame in bytes |
- Returns
- the duration in the stream time base, or a negative value when the parameters do not describe audio
◆ isValid()
| bool av::CodecParametersView::isValid |
( |
| ) |
const |
- Returns
- true when the underlying AVCodecParameters exists
◆ mediaType() [1/2]
| AVMediaType av::CodecParametersView::mediaType |
( |
| ) |
const |
Kept for symmetry with codecType(); FFmpeg stores one value for both.
- Returns
- the AVMEDIA_TYPE_* value
◆ mediaType() [2/2]
| void av::CodecParametersView::mediaType |
( |
AVMediaType | media_type | ) |
|
- Parameters
-
| media_type | the AVMEDIA_TYPE_* value |
The documentation for this class was generated from the following file: