Shaka Player Embedded
Public Member Functions | Static Public Member Functions | List of all members
shaka::media::ffmpeg::FFmpegDecodedFrame Class Referencefinal

#include <ffmpeg_decoded_frame.h>

Inheritance diagram for shaka::media::ffmpeg::FFmpegDecodedFrame:
shaka::media::DecodedFrame shaka::media::BaseFrame

Public Member Functions

 ~FFmpegDecodedFrame () override
 
size_t EstimateSize () const override
 
AVFrame * raw_frame () const
 
- Public Member Functions inherited from 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)
 
 ~DecodedFrame () 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
 
BaseFrameoperator= (const BaseFrame &)=delete
 
 BaseFrame (BaseFrame &&)=delete
 
BaseFrameoperator= (BaseFrame &&)=delete
 

Static Public Member Functions

static FFmpegDecodedFrameCreateFrame (std::shared_ptr< const StreamInfo > stream, AVFrame *frame, double time, double duration)
 

Additional Inherited Members

- Public Attributes inherited from shaka::media::DecodedFrame
const size_t sample_count
 
const std::vector< const uint8_t * > data
 
const std::vector< size_t > linesize
 
const variant< PixelFormat, SampleFormatformat
 
- Public Attributes inherited from shaka::media::BaseFrame
const std::shared_ptr< const StreamInfostream_info
 
const double pts
 
const double dts
 
const double duration
 
const bool is_key_frame
 

Detailed Description

This defines a single decoded media frame.

Definition at line 35 of file ffmpeg_decoded_frame.h.

Constructor & Destructor Documentation

§ ~FFmpegDecodedFrame()

shaka::media::ffmpeg::FFmpegDecodedFrame::~FFmpegDecodedFrame ( )
override

Definition at line 114 of file ffmpeg_decoded_frame.cc.

Member Function Documentation

§ CreateFrame()

FFmpegDecodedFrame * shaka::media::ffmpeg::FFmpegDecodedFrame::CreateFrame ( std::shared_ptr< const StreamInfo stream,
AVFrame *  frame,
double  time,
double  duration 
)
static

Definition at line 120 of file ffmpeg_decoded_frame.cc.

§ EstimateSize()

size_t shaka::media::ffmpeg::FFmpegDecodedFrame::EstimateSize ( ) const
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.

Returns
The estimated size of the frame, in bytes.

Reimplemented from shaka::media::DecodedFrame.

Definition at line 158 of file ffmpeg_decoded_frame.cc.

§ raw_frame()

AVFrame* shaka::media::ffmpeg::FFmpegDecodedFrame::raw_frame ( ) const
inline

Definition at line 45 of file ffmpeg_decoded_frame.h.


The documentation for this class was generated from the following files: