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

#include <ffmpeg_encoded_frame.h>

Inheritance diagram for shaka::media::ffmpeg::FFmpegEncodedFrame:
shaka::media::EncodedFrame shaka::media::BaseFrame

Public Member Functions

 ~FFmpegEncodedFrame () override
 
size_t EstimateSize () const override
 
- Public Member Functions inherited from shaka::media::EncodedFrame
 EncodedFrame (std::shared_ptr< const StreamInfo > stream, double pts, double dts, double duration, bool is_key_frame, const uint8_t *data, size_t data_size, double timestamp_offset, std::shared_ptr< eme::FrameEncryptionInfo > encryption_info)
 
 ~EncodedFrame () override
 
virtual MediaStatus Decrypt (const eme::Implementation *implementation, uint8_t *dest) const
 
- 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 FFmpegEncodedFrameMakeFrame (AVPacket *pkt, std::shared_ptr< const StreamInfo > info, double timestamp_offset)
 

Additional Inherited Members

- Public Attributes inherited from shaka::media::EncodedFrame
const uint8_t *const data
 
const size_t data_size
 
const double timestamp_offset
 
const std::shared_ptr< eme::FrameEncryptionInfoencryption_info
 
- 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 encoded media frame.

Definition at line 31 of file ffmpeg_encoded_frame.h.

Constructor & Destructor Documentation

§ ~FFmpegEncodedFrame()

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

Definition at line 101 of file ffmpeg_encoded_frame.cc.

Member Function Documentation

§ EstimateSize()

size_t shaka::media::ffmpeg::FFmpegEncodedFrame::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::EncodedFrame.

Definition at line 105 of file ffmpeg_encoded_frame.cc.

§ MakeFrame()

FFmpegEncodedFrame * shaka::media::ffmpeg::FFmpegEncodedFrame::MakeFrame ( AVPacket *  pkt,
std::shared_ptr< const StreamInfo info,
double  timestamp_offset 
)
static

Definition at line 84 of file ffmpeg_encoded_frame.cc.


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