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

Protected Member Functions

bool IsVideoCodec (Codec codec) const
 
std::unique_ptr< StreamInfoGetVideoStreamInfo (int32_t time_scale) const
 
std::unique_ptr< StreamInfoGetVideoStreamInfo (int32_t time_scale, uint32_t width, uint32_t height) const
 
std::unique_ptr< StreamInfoGetVideoStreamInfo (int32_t time_scale, Codec codec) const
 
std::unique_ptr< StreamInfoGetVideoStreamInfo (int32_t time_scale, Codec codec, uint32_t width, uint32_t height) const
 
std::unique_ptr< StreamInfoGetAudioStreamInfo (int32_t time_scale) const
 
std::unique_ptr< StreamInfoGetAudioStreamInfo (int32_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, int64_t segment_number) const
 
std::unique_ptr< StreamInfoGetTextStreamInfo (int32_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 290 of file media_handler_test_base.h.

Member Function Documentation

◆ GetAudioStreamInfo() [1/2]

std::unique_ptr< StreamInfo > shaka::media::MediaHandlerTestBase::GetAudioStreamInfo ( int32_t  time_scale) const
protected

Definition at line 218 of file media_handler_test_base.cc.

◆ GetAudioStreamInfo() [2/2]

std::unique_ptr< StreamInfo > shaka::media::MediaHandlerTestBase::GetAudioStreamInfo ( int32_t  time_scale,
Codec  codec 
) const
protected

Definition at line 223 of file media_handler_test_base.cc.

◆ GetCueEvent()

std::unique_ptr< CueEvent > shaka::media::MediaHandlerTestBase::GetCueEvent ( double  time_in_seconds) const
protected

Definition at line 286 of file media_handler_test_base.cc.

◆ GetMediaSample() [1/2]

std::shared_ptr< MediaSample > shaka::media::MediaHandlerTestBase::GetMediaSample ( int64_t  timestamp,
int64_t  duration,
bool  is_keyframe 
) const
protected

Definition at line 233 of file media_handler_test_base.cc.

◆ GetMediaSample() [2/2]

std::shared_ptr< MediaSample > shaka::media::MediaHandlerTestBase::GetMediaSample ( int64_t  timestamp,
int64_t  duration,
bool  is_keyframe,
const uint8_t *  data,
size_t  data_length 
) const
protected

Definition at line 240 of file media_handler_test_base.cc.

◆ GetSegmentInfo()

std::unique_ptr< SegmentInfo > shaka::media::MediaHandlerTestBase::GetSegmentInfo ( int64_t  start_timestamp,
int64_t  duration,
bool  is_subsegment,
int64_t  segment_number 
) const
protected

Definition at line 255 of file media_handler_test_base.cc.

◆ GetTextSample()

std::unique_ptr< TextSample > shaka::media::MediaHandlerTestBase::GetTextSample ( const std::string &  id,
int64_t  start,
int64_t  end,
const std::string &  payload 
) const
protected

Definition at line 277 of file media_handler_test_base.cc.

◆ GetTextStreamInfo()

std::unique_ptr< StreamInfo > shaka::media::MediaHandlerTestBase::GetTextStreamInfo ( int32_t  timescale) const
protected

Definition at line 269 of file media_handler_test_base.cc.

◆ GetVideoStreamInfo() [1/4]

std::unique_ptr< StreamInfo > shaka::media::MediaHandlerTestBase::GetVideoStreamInfo ( int32_t  time_scale) const
protected

Definition at line 187 of file media_handler_test_base.cc.

◆ GetVideoStreamInfo() [2/4]

std::unique_ptr< StreamInfo > shaka::media::MediaHandlerTestBase::GetVideoStreamInfo ( int32_t  time_scale,
Codec  codec 
) const
protected

Definition at line 199 of file media_handler_test_base.cc.

◆ GetVideoStreamInfo() [3/4]

std::unique_ptr< StreamInfo > shaka::media::MediaHandlerTestBase::GetVideoStreamInfo ( int32_t  time_scale,
Codec  codec,
uint32_t  width,
uint32_t  height 
) const
protected

Definition at line 205 of file media_handler_test_base.cc.

◆ GetVideoStreamInfo() [4/4]

std::unique_ptr< StreamInfo > shaka::media::MediaHandlerTestBase::GetVideoStreamInfo ( int32_t  time_scale,
uint32_t  width,
uint32_t  height 
) const
protected

Definition at line 192 of file media_handler_test_base.cc.

◆ Input()

FakeInputMediaHandler * shaka::media::MediaHandlerTestBase::Input ( size_t  index)
protected

Definition at line 348 of file media_handler_test_base.cc.

◆ IsVideoCodec()

bool shaka::media::MediaHandlerTestBase::IsVideoCodec ( Codec  codec) const
protected

Definition at line 183 of file media_handler_test_base.cc.

◆ Output()

MockOutputMediaHandler * shaka::media::MediaHandlerTestBase::Output ( size_t  index)
protected

Definition at line 353 of file media_handler_test_base.cc.

◆ SetUpAndInitializeGraph()

Status shaka::media::MediaHandlerTestBase::SetUpAndInitializeGraph ( std::shared_ptr< MediaHandler handler,
size_t  input_count,
size_t  output_count 
)
protected

Definition at line 294 of file media_handler_test_base.cc.


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