Shaka Packager SDK
Loading...
Searching...
No Matches
Classes | Public Types | Protected Member Functions | Protected Attributes | List of all members
shaka::media::SegmentTestBase Class Reference
Inheritance diagram for shaka::media::SegmentTestBase:

Classes

class  ClusterParser
 

Public Types

enum  KeyFrameFlag { kKeyFrame , kNotKeyFrame }
 
enum  SideDataFlag { kGenerateSideData , kNoSideData }
 

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
template<typename S >
void CreateAndInitializeSegmenter (const MuxerOptions &options, const StreamInfo &info, std::unique_ptr< webm::Segmenter > *result) const
 Creates a Segmenter of the given type and initializes it.
 
std::shared_ptr< MediaSampleCreateSample (KeyFrameFlag key_frame_flag, int64_t duration, SideDataFlag side_data_flag)
 Creates a new media sample.
 
MuxerOptions CreateMuxerOptions () const
 Creates a Muxer options object for testing.
 
VideoStreamInfoCreateVideoStreamInfo (int32_t time_scale) const
 Creates a video stream info object for testing.
 
std::string OutputFileName () const
 Gets the file name of the current output file.
 
std::string TemplateFileName (int number) const
 Gets the file name of the given template file.
 
void set_cur_timestamp (int64_t timestamp)
 

Protected Attributes

std::string output_file_name_
 
std::string segment_template_
 
int64_t cur_timestamp_
 
bool single_segment_
 

Detailed Description

Definition at line 28 of file segmenter_test_base.h.

Member Enumeration Documentation

◆ KeyFrameFlag

enum shaka::media::SegmentTestBase::KeyFrameFlag

Definition at line 30 of file segmenter_test_base.h.

◆ SideDataFlag

enum shaka::media::SegmentTestBase::SideDataFlag

Definition at line 34 of file segmenter_test_base.h.

Constructor & Destructor Documentation

◆ SegmentTestBase()

shaka::media::SegmentTestBase::SegmentTestBase ( )
protected

Definition at line 43 of file segmenter_test_base.cc.

Member Function Documentation

◆ CreateAndInitializeSegmenter()

template<typename S >
void shaka::media::SegmentTestBase::CreateAndInitializeSegmenter ( const MuxerOptions options,
const StreamInfo info,
std::unique_ptr< webm::Segmenter > *  result 
) const
inlineprotected

Creates a Segmenter of the given type and initializes it.

Definition at line 47 of file segmenter_test_base.h.

◆ CreateMuxerOptions()

MuxerOptions shaka::media::SegmentTestBase::CreateMuxerOptions ( ) const
protected

Creates a Muxer options object for testing.

Definition at line 79 of file segmenter_test_base.cc.

◆ CreateSample()

std::shared_ptr< MediaSample > shaka::media::SegmentTestBase::CreateSample ( KeyFrameFlag  key_frame_flag,
int64_t  duration,
SideDataFlag  side_data_flag 
)
protected

Creates a new media sample.

Definition at line 56 of file segmenter_test_base.cc.

◆ CreateVideoStreamInfo()

VideoStreamInfo * shaka::media::SegmentTestBase::CreateVideoStreamInfo ( int32_t  time_scale) const
protected

Creates a video stream info object for testing.

Definition at line 88 of file segmenter_test_base.cc.

◆ OutputFileName()

std::string shaka::media::SegmentTestBase::OutputFileName ( ) const
protected

Gets the file name of the current output file.

Definition at line 98 of file segmenter_test_base.cc.

◆ set_cur_timestamp()

void shaka::media::SegmentTestBase::set_cur_timestamp ( int64_t  timestamp)
inlineprotected

Definition at line 106 of file segmenter_test_base.h.

◆ SetUp()

void shaka::media::SegmentTestBase::SetUp ( )
overrideprotected

Definition at line 45 of file segmenter_test_base.cc.

◆ TearDown()

void shaka::media::SegmentTestBase::TearDown ( )
overrideprotected

Definition at line 52 of file segmenter_test_base.cc.

Member Data Documentation

◆ cur_timestamp_

int64_t shaka::media::SegmentTestBase::cur_timestamp_
protected

Definition at line 110 of file segmenter_test_base.h.

◆ output_file_name_

std::string shaka::media::SegmentTestBase::output_file_name_
protected

Definition at line 108 of file segmenter_test_base.h.

◆ segment_template_

std::string shaka::media::SegmentTestBase::segment_template_
protected

Definition at line 109 of file segmenter_test_base.h.

◆ single_segment_

bool shaka::media::SegmentTestBase::single_segment_
protected

Definition at line 111 of file segmenter_test_base.h.


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