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

Public Member Functions

std::unique_ptr< StreamDataGetStreamInfoStreamData (int stream_index, Codec codec, uint32_t time_scale)
 
std::unique_ptr< StreamDataGetVideoStreamInfoStreamData (int stream_index, uint32_t time_scale)
 
std::unique_ptr< StreamDataGetAudioStreamInfoStreamData (int stream_index, uint32_t time_scale)
 
std::unique_ptr< StreamDataGetMediaSampleStreamData (int stream_index, int64_t timestamp, int64_t duration, bool is_keyframe)
 
std::unique_ptr< StreamDataGetSegmentInfoStreamData (int stream_index, int64_t start_timestamp, int64_t duration, bool is_subsegment)
 
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

std::unique_ptr<StreamData> shaka::media::MediaHandlerTestBase::GetAudioStreamInfoStreamData ( int  stream_index,
uint32_t  time_scale 
)
inline
Returns
a stream data with mock audio stream info.

Definition at line 111 of file media_handler_test_base.h.

std::unique_ptr< StreamData > shaka::media::MediaHandlerTestBase::GetMediaSampleStreamData ( int  stream_index,
int64_t  timestamp,
int64_t  duration,
bool  is_keyframe 
)
Returns
a stream data with mock media sample.

Definition at line 94 of file media_handler_test_base.cc.

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

Definition at line 138 of file media_handler_test_base.cc.

std::unique_ptr< StreamData > shaka::media::MediaHandlerTestBase::GetSegmentInfoStreamData ( int  stream_index,
int64_t  start_timestamp,
int64_t  duration,
bool  is_subsegment 
)
Returns
a stream data with mock segment info.

Definition at line 109 of file media_handler_test_base.cc.

std::unique_ptr< StreamData > shaka::media::MediaHandlerTestBase::GetStreamInfoStreamData ( int  stream_index,
Codec  codec,
uint32_t  time_scale 
)
Returns
a stream data with mock stream info.

Definition at line 83 of file media_handler_test_base.cc.

std::unique_ptr<StreamData> shaka::media::MediaHandlerTestBase::GetVideoStreamInfoStreamData ( int  stream_index,
uint32_t  time_scale 
)
inline
Returns
a stream data with mock video stream info.

Definition at line 104 of file media_handler_test_base.h.

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

Definition at line 145 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 142 of file media_handler_test_base.h.


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