Shaka Packager SDK
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.


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