|
Shaka Player Embedded
|
#include <frames.h>
Classes | |
| class | Impl |
Public Member Functions | |
| 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 |
| 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 uint8_t *const | data |
| const size_t | data_size |
| const double | timestamp_offset |
| const std::shared_ptr< eme::FrameEncryptionInfo > | encryption_info |
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 |
Defines an encoded frame. This can be used as-is, or can be subclassed to support different frame types.
| 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 | ||
| ) |
|
virtual |
Attempts to decrypt the frame's data into the given buffer. This may not be supported for some frame types or some EME implementations. This is only used by the DefaultMediaPlayer.
|
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::FFmpegEncodedFrame.
| const uint8_t* const shaka::media::EncodedFrame::data |
| const size_t shaka::media::EncodedFrame::data_size |
| const std::shared_ptr<eme::FrameEncryptionInfo> shaka::media::EncodedFrame::encryption_info |
| const double shaka::media::EncodedFrame::timestamp_offset |
1.8.13