Shaka Packager SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | List of all members
shaka::media::MediaHandlerTestBase Class Reference
Inheritance diagram for shaka::media::MediaHandlerTestBase:

Public Member Functions

bool IsVideoCodec (Codec codec) const
 
std::unique_ptr< StreamInfoGetVideoStreamInfo (uint32_t time_scale) const
 
std::unique_ptr< StreamInfoGetVideoStreamInfo (uint32_t time_scale, uint32_t width, uint64_t height) const
 
std::unique_ptr< StreamInfoGetVideoStreamInfo (uint32_t time_scale, Codec codec) const
 
std::unique_ptr< StreamInfoGetVideoStreamInfo (uint32_t time_scale, Codec codec, uint32_t width, uint64_t height) const
 
std::unique_ptr< StreamInfoGetAudioStreamInfo (uint32_t time_scale) const
 
std::unique_ptr< StreamInfoGetAudioStreamInfo (uint32_t time_scale, Codec codec) const
 
std::unique_ptr< MediaSampleGetMediaSample (int64_t timestamp, int64_t duration, bool is_keyframe) const
 
std::unique_ptr< MediaSampleGetMediaSample (int64_t timestamp, int64_t duration, bool is_keyframe, const uint8_t *data, size_t data_length) const
 
std::unique_ptr< SegmentInfoGetSegmentInfo (int64_t start_timestamp, int64_t duration, bool is_subsegment) const
 
void SetUpGraph (size_t num_inputs, size_t num_outputs, std::shared_ptr< MediaHandler > handler)
 Setup a graph using |handler| with |num_inputs| and |num_outputs|.
 
const std::vector
< std::unique_ptr< StreamData > > & 
GetOutputStreamDataVector () const
 
void ClearOutputStreamDataVector ()
 Clear the output stream data vector.
 
std::shared_ptr< MediaHandlersome_handler ()
 
std::shared_ptr< FakeMediaHandlernext_handler ()
 

Detailed Description

Definition at line 94 of file media_handler_test_base.h.

Member Function Documentation

const std::vector< std::unique_ptr< StreamData > > & shaka::media::MediaHandlerTestBase::GetOutputStreamDataVector ( ) const
Returns
the output stream data vector from handler.

Definition at line 179 of file media_handler_test_base.cc.

std::shared_ptr<FakeMediaHandler> shaka::media::MediaHandlerTestBase::next_handler ( )
inline
Returns
some a downstream handler that can be used for connecting.

Definition at line 155 of file media_handler_test_base.h.

std::shared_ptr<MediaHandler> shaka::media::MediaHandlerTestBase::some_handler ( )
inline
Returns
some random handler that can be used for testing.

Definition at line 152 of file media_handler_test_base.h.


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