|
StormByte C++ Library: Multimedia module 0.0.9999
StormByte-Multimedia is a StormByte library module for parsing configuration files
|
RAII owner of a libav AVPacket. More...
#include <StormByte/multimedia/ffmpeg/AVPacket.hxx>


Public Member Functions | |
| AVPacket () noexcept | |
| Allocates an empty packet. | |
| AVPacket (AVPacket &&other) noexcept=default | |
| Move constructor. | |
| ~AVPacket () noexcept override | |
| Destructor. | |
| AVPacket & | operator= (AVPacket &&other) noexcept=default |
| Move assignment. | |
| FFmpeg::AVPacket | Ref () const noexcept |
| New packet referencing the same data (av_packet_ref). | |
| void | Unref () noexcept |
| Unreferences packet data (av_packet_unref). | |
| bool | Load (const std::uint8_t *data, int size, int stream_index, bool key_frame) noexcept |
| Replaces payload for avcodec_send_packet. | |
| void | Timestamps (std::int64_t pts, std::int64_t dts, std::int64_t duration) noexcept |
| Sets timestamps in stream time base. | |
| int | StreamIndex () const noexcept |
| Packet stream index. | |
| std::int64_t | Pts () const noexcept |
| Presentation timestamp in stream time base. | |
| std::int64_t | Dts () const noexcept |
| Decode timestamp in stream time base. | |
| std::int64_t | Duration () const noexcept |
| Packet duration in stream time base. | |
| int | Flags () const noexcept |
| Packet flags (AV_PKT_FLAG_*). | |
| const std::uint8_t * | Data () const noexcept |
| Compressed payload pointer. | |
| int | Size () const noexcept |
| Compressed payload size in bytes. | |
| operator bool () const noexcept | |
| Whether a packet struct is owned. | |
| int | SideDataCount () const noexcept |
| Number of side-data entries. | |
| int | SideDataType (int index) const noexcept |
Side-data type at index. | |
| const std::uint8_t * | SideData (int index, int &size) const noexcept |
Side-data payload at index. | |
| void | Reset (::AVPacket *raw) noexcept |
Adopts raw. | |
Public Member Functions inherited from StormByte::Multimedia::FFmpeg::AVPointer<::AVPacket > | |
| 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 |
| class | StormByte::Multimedia::Backend::Pipeline::Packet |
| class | StormByte::Multimedia::Pipeline::Filter::FFmpeg |
Additional Inherited Members | |
Protected Member Functions inherited from StormByte::Multimedia::FFmpeg::AVPointer<::AVPacket > | |
| constexpr | AVPointer (std::decay_t< ::AVPacket > *ptr) noexcept |
Adopts ptr. | |
| constexpr const std::decay_t< ::AVPacket > * | Get () const noexcept |
| Const view of the raw FFmpeg pointer. | |
| constexpr std::decay_t< ::AVPacket > * | Get () noexcept |
| Mutable view of the raw FFmpeg pointer. | |
| constexpr std::decay_t< ::AVPacket > * | Detach () noexcept |
| Yields the raw pointer and leaves this wrapper empty. | |
Protected Attributes inherited from StormByte::Multimedia::FFmpeg::AVPointer<::AVPacket > | |
| std::decay_t< ::AVPacket > * | m_ptr |
| Owned FFmpeg pointer. | |
RAII owner of a libav AVPacket.
|
noexcept |
Allocates an empty packet.
|
defaultnoexcept |
Move constructor.
Transfers the libav pointer.
| other | Source packet; left empty. |
|
overridenoexcept |
Destructor.
Unreferences buffers and frees the struct.
|
noexcept |
Compressed payload pointer.
|
noexcept |
Decode timestamp in stream time base.
|
noexcept |
Packet duration in stream time base.
|
noexcept |
Packet flags (AV_PKT_FLAG_*).
|
noexcept |
Replaces payload for avcodec_send_packet.
| data | Compressed bytes. |
| size | Byte count. |
| stream_index | Stream index. |
| key_frame | Sets AV_PKT_FLAG_KEY when true. |
|
explicitnoexcept |
Whether a packet struct is owned.
Move assignment.
Frees *this, then takes other.
| other | Source packet; left empty. |
|
noexcept |
Presentation timestamp in stream time base.
|
noexcept |
New packet referencing the same data (av_packet_ref).
|
noexcept |
Adopts raw.
Previous packet is freed.
| raw | libav packet, or nullptr. |
|
noexcept |
Side-data payload at index.
| index | Entry index. |
| size | Set to payload size on success. |
|
noexcept |
Number of side-data entries.
|
noexcept |
Side-data type at index.
| index | Entry index. |
AVPacketSideDataType as int, or -1.
|
noexcept |
Compressed payload size in bytes.
|
noexcept |
Packet stream index.
|
noexcept |
Sets timestamps in stream time base.
| pts | Presentation timestamp, or AV_NOPTS_VALUE. |
| dts | Decode timestamp, or AV_NOPTS_VALUE. |
| duration | Duration ticks, or 0. |
|
noexcept |
Unreferences packet data (av_packet_unref).
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |