Shaka Packager SDK
|
#include <multi_segment_segmenter.h>
Public Member Functions | |
MultiSegmentSegmenter (const MuxerOptions &options) | |
Segmenter implementation overrides. | |
Status | FinalizeSegment (int64_t start_timestamp, int64_t duration_timestamp, bool is_subsegment, int64_t segment_number) override |
Finalize the (sub)segment. | |
bool | GetInitRangeStartAndEnd (uint64_t *start, uint64_t *end) override |
bool | GetIndexRangeStartAndEnd (uint64_t *start, uint64_t *end) override |
std::vector< Range > | GetSegmentRanges () override |
Public Member Functions inherited from shaka::media::webm::Segmenter | |
Segmenter (const MuxerOptions &options) | |
Status | Initialize (const StreamInfo &info, ProgressListener *progress_listener, MuxerListener *muxer_listener) |
Status | Finalize () |
Status | AddSample (const MediaSample &sample) |
float | GetDurationInSeconds () const |
Protected Member Functions | |
Status | DoInitialize () override |
Status | DoFinalize () override |
Protected Member Functions inherited from shaka::media::webm::Segmenter | |
int64_t | FromBmffTimestamp (int64_t bmff_timestamp) |
Converts the given time in ISO BMFF timestamp to WebM timecode. | |
int64_t | FromWebMTimecode (int64_t webm_timecode) |
Converts the given time in WebM timecode to ISO BMFF timestamp. | |
Status | WriteSegmentHeader (uint64_t file_size, MkvWriter *writer) |
Writes the Segment header to writer. | |
Status | SetCluster (int64_t start_webm_timecode, uint64_t position, MkvWriter *writer) |
Creates a Cluster object with the given parameters. | |
void | UpdateProgress (uint64_t progress) |
Update segmentation progress using ProgressListener. | |
void | set_progress_target (uint64_t target) |
const MuxerOptions & | options () const |
mkvmuxer::Cluster * | cluster () |
mkvmuxer::Cues * | cues () |
MuxerListener * | muxer_listener () |
SeekHead * | seek_head () |
int | track_id () const |
uint64_t | segment_payload_pos () const |
int64_t | duration () const |
An implementation of a Segmenter for a multi-segment. Since this does not use seeking, it does not matter if the underlying files support seeking.
Definition at line 26 of file multi_segment_segmenter.h.
|
overridevirtual |
Implements shaka::media::webm::Segmenter.
Definition at line 70 of file multi_segment_segmenter.cc.
|
overridevirtual |
Implements shaka::media::webm::Segmenter.
Definition at line 65 of file multi_segment_segmenter.cc.