Non-owning view of an AVStream (owned by AVFormatContext).
More...
#include <StormByte/multimedia/ffmpeg/AVStream.hxx>
Non-owning view of an AVStream (owned by AVFormatContext).
◆ AVStream() [1/3]
| StormByte::Multimedia::FFmpeg::AVStream::AVStream |
( |
::AVStream * |
stream | ) |
|
|
explicitnoexcept |
Binds a raw stream pointer (not owned).
- Parameters
-
| stream | Raw stream pointer. |
◆ AVStream() [2/3]
| StormByte::Multimedia::FFmpeg::AVStream::AVStream |
( |
const AVStream & |
| ) |
|
|
delete |
Copy constructor (deleted).
◆ AVStream() [3/3]
| StormByte::Multimedia::FFmpeg::AVStream::AVStream |
( |
AVStream && |
other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
◆ ~AVStream()
| StormByte::Multimedia::FFmpeg::AVStream::~AVStream |
( |
| ) |
|
|
defaultnoexcept |
◆ CodecParameters()
Copy of codec parameters.
- Returns
- Parameters wrapper.
◆ Disposition()
| int StormByte::Multimedia::FFmpeg::AVStream::Disposition |
( |
| ) |
const |
|
noexcept |
Raw FFmpeg disposition bits.
- Returns
AV_DISPOSITION_* mask, or 0.
◆ Duration()
| std::optional< std::chrono::nanoseconds > StormByte::Multimedia::FFmpeg::AVStream::Duration |
( |
| ) |
const |
|
noexcept |
Stream duration in nanoseconds.
- Returns
- Duration, or empty if unknown.
◆ FrameRate()
| double StormByte::Multimedia::FFmpeg::AVStream::FrameRate |
( |
| ) |
const |
|
noexcept |
Estimated FPS (avg or r_frame_rate).
- Returns
- FPS, or 0.
◆ FrameRateRational()
| AVRational StormByte::Multimedia::FFmpeg::AVStream::FrameRateRational |
( |
| ) |
const |
|
noexcept |
Estimated FPS as a rational (avg_frame_rate, else r_frame_rate).
- Returns
{num, den} with den > 0. {0, 1} if unknown.
◆ Index()
| int StormByte::Multimedia::FFmpeg::AVStream::Index |
( |
| ) |
const |
|
noexcept |
Stream index.
- Returns
- Index, or -1.
◆ operator<()
| bool StormByte::Multimedia::FFmpeg::AVStream::operator< |
( |
const AVStream & |
other | ) |
const |
|
noexcept |
Orders by stream index (for std::set).
- Parameters
-
- Returns
- true if this index is less.
◆ operator=() [1/2]
| AVStream & StormByte::Multimedia::FFmpeg::AVStream::operator= |
( |
AVStream && |
other | ) |
|
|
defaultnoexcept |
Move assignment.
- Parameters
-
- Returns
- *this.
◆ operator=() [2/2]
| AVStream & StormByte::Multimedia::FFmpeg::AVStream::operator= |
( |
const AVStream & |
| ) |
|
|
delete |
Copy assignment (deleted).
- Returns
- *this.
◆ Raw()
| ::AVStream * StormByte::Multimedia::FFmpeg::AVStream::Raw |
( |
| ) |
const |
|
noexcept |
Raw FFmpeg stream (non-owning).
- Returns
- Pointer, or nullptr.
◆ SampleAspectRatio()
| AVRational StormByte::Multimedia::FFmpeg::AVStream::SampleAspectRatio |
( |
| ) |
const |
|
noexcept |
Pixel aspect ratio (codecpar, else stream sample_aspect_ratio).
- Returns
{num, den} with den > 0. {0, 1} if unknown.
◆ Tag()
| const char * StormByte::Multimedia::FFmpeg::AVStream::Tag |
( |
const char * |
key | ) |
const |
|
noexcept |
Looks up a stream metadata tag.
- Parameters
-
- Returns
- Value, or nullptr if missing.
◆ TimeBase()
| AVRational StormByte::Multimedia::FFmpeg::AVStream::TimeBase |
( |
| ) |
const |
|
noexcept |
Stream time base.
- Returns
- Time base.
◆ Type()
| int StormByte::Multimedia::FFmpeg::AVStream::Type |
( |
| ) |
const |
|
noexcept |
Stream media type.
- Returns
- AVMediaType as int.
The documentation for this class was generated from the following file: