OpenShot Library | libopenshot
0.3.3
|
This struct holds the packet counts and end-of-file detection for an openshot::FFmpegReader. More...
#include <FFmpegReader.h>
Public Member Functions | |
int64_t | packets_decoded () |
int64_t | packets_read () |
void | reset (bool eof) |
Public Attributes | |
int64_t | audio_decoded = 0 |
bool | audio_eof = true |
int64_t | audio_read = 0 |
bool | end_of_file = true |
bool | packets_eof = true |
int64_t | video_decoded = 0 |
bool | video_eof = true |
int64_t | video_read = 0 |
This struct holds the packet counts and end-of-file detection for an openshot::FFmpegReader.
Keeping track of each packet that is read & decoded helps ensure we process each packet before EOF is determined. For example, some packets are read async and decoded later, and tracking the counts makes it easy to continue checking for a decoded packet until it's ready.
Definition at line 45 of file FFmpegReader.h.
|
inline |
Definition at line 63 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Close().
|
inline |
Definition at line 58 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Close().
|
inline |
Definition at line 68 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Open().
int64_t openshot::PacketStatus::audio_decoded = 0 |
Definition at line 50 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Close(), packets_decoded(), and reset().
bool openshot::PacketStatus::audio_eof = true |
Definition at line 54 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Open(), and reset().
int64_t openshot::PacketStatus::audio_read = 0 |
Definition at line 49 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Close(), packets_read(), and reset().
bool openshot::PacketStatus::end_of_file = true |
Definition at line 56 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Open(), and reset().
bool openshot::PacketStatus::packets_eof = true |
Definition at line 55 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Open(), and reset().
int64_t openshot::PacketStatus::video_decoded = 0 |
Definition at line 48 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Close(), packets_decoded(), and reset().
bool openshot::PacketStatus::video_eof = true |
Definition at line 53 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Open(), and reset().
int64_t openshot::PacketStatus::video_read = 0 |
Definition at line 47 of file FFmpegReader.h.
Referenced by openshot::FFmpegReader::Close(), packets_read(), and reset().