|
Shaka Player Embedded
|
#include <frames.h>
Classes | |
| class | Impl |
Public Member Functions | |
| DecodedFrame (std::shared_ptr< const StreamInfo > stream_info, double pts, double dts, double duration, variant< PixelFormat, SampleFormat > format, size_t sample_count, const std::vector< const uint8_t *> &data, const std::vector< size_t > &linesize) | |
| ~DecodedFrame () override | |
| size_t | EstimateSize () const override |
Public Member Functions inherited from shaka::media::BaseFrame | |
| BaseFrame (std::shared_ptr< const StreamInfo > stream_info, double pts, double dts, double duration, bool is_key_frame) | |
| virtual | ~BaseFrame () |
| BaseFrame (const BaseFrame &)=delete | |
| BaseFrame & | operator= (const BaseFrame &)=delete |
| BaseFrame (BaseFrame &&)=delete | |
| BaseFrame & | operator= (BaseFrame &&)=delete |
Public Attributes | |
| const size_t | sample_count |
| const std::vector< const uint8_t * > | data |
| const std::vector< size_t > | linesize |
| const variant< PixelFormat, SampleFormat > | format |
Public Attributes inherited from shaka::media::BaseFrame | |
| const std::shared_ptr< const StreamInfo > | stream_info |
| const double | pts |
| const double | dts |
| const double | duration |
| const bool | is_key_frame |
| shaka::media::DecodedFrame::DecodedFrame | ( | std::shared_ptr< const StreamInfo > | stream_info, |
| double | pts, | ||
| double | dts, | ||
| double | duration, | ||
| variant< PixelFormat, SampleFormat > | format, | ||
| size_t | sample_count, | ||
| const std::vector< const uint8_t *> & | data, | ||
| const std::vector< size_t > & | linesize | ||
| ) |
|
overridevirtual |
Estimates the size of this frame. This can be used to restrict the number of frames stored or to monitor/debug memory usage. This should only be used as an estimate and may not accurately measure the size.
Reimplemented from shaka::media::BaseFrame.
Reimplemented in shaka::media::ffmpeg::FFmpegDecodedFrame.
| const std::vector<const uint8_t*> shaka::media::DecodedFrame::data |
The raw frame data for this frame. The exact format of the data depends on the format. See PixelFormat/SampleFormat for the specific formats.
For hardware formats, this contains a single element pointing to the hardware frame.
For packed formats, this contains a single element containing the packed data.
For planar formats, this contains one element for each plane.
| const variant<PixelFormat, SampleFormat> shaka::media::DecodedFrame::format |
| const std::vector<size_t> shaka::media::DecodedFrame::linesize |
Contains the line sizes. Each element holds the line size value for the associated plane in data.
For audio, this holds the number of bytes in the plane; for video, this holds the number of bytes in a row of the image. Depending on the format, there may or may not be the same number of rows as the height.
| const size_t shaka::media::DecodedFrame::sample_count |
1.8.13