Shaka Packager SDK
Protected Member Functions | List of all members
shaka::media::MediaHandlerGraphTestBase Class Reference
Inheritance diagram for shaka::media::MediaHandlerGraphTestBase:
shaka::media::MediaHandlerTestBase

Protected Member Functions

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 ()
 
- Protected Member Functions inherited from shaka::media::MediaHandlerTestBase
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::shared_ptr< MediaSampleGetMediaSample (int64_t timestamp, int64_t duration, bool is_keyframe) const
 
std::shared_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
 
std::unique_ptr< StreamInfoGetTextStreamInfo (uint32_t timescale) const
 
std::unique_ptr< TextSampleGetTextSample (const std::string &id, int64_t start, int64_t end, const std::string &payload) const
 
std::unique_ptr< CueEventGetCueEvent (double time_in_seconds) const
 
Status SetUpAndInitializeGraph (std::shared_ptr< MediaHandler > handler, size_t input_count, size_t output_count)
 
FakeInputMediaHandlerInput (size_t index)
 
MockOutputMediaHandlerOutput (size_t index)
 

Detailed Description

Definition at line 363 of file media_handler_test_base.h.

Member Function Documentation

◆ GetOutputStreamDataVector()

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

Definition at line 367 of file media_handler_test_base.cc.

◆ next_handler()

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

Definition at line 384 of file media_handler_test_base.h.

◆ some_handler()

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

Definition at line 381 of file media_handler_test_base.h.


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