DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
single_segment_segmenter.h
1 // Copyright 2014 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #ifndef MEDIA_FORMATS_MP4_SINGLE_SEGMENT_SEGMENTER_H_
8 #define MEDIA_FORMATS_MP4_SINGLE_SEGMENT_SEGMENTER_H_
9 
10 #include "packager/media/file/file_closer.h"
11 #include "packager/media/formats/mp4/segmenter.h"
12 
13 namespace edash_packager {
14 namespace media {
15 namespace mp4 {
16 
29  public:
30  SingleSegmentSegmenter(const MuxerOptions& options,
31  scoped_ptr<FileType> ftyp,
32  scoped_ptr<Movie> moov);
33  ~SingleSegmentSegmenter() override;
34 
37  bool GetInitRange(size_t* offset, size_t* size) override;
38  bool GetIndexRange(size_t* offset, size_t* size) override;
40 
41  private:
42  // Segmenter implementation overrides.
43  Status DoInitialize() override;
44  Status DoFinalize() override;
45  Status DoFinalizeSegment() override;
46 
47  scoped_ptr<SegmentIndex> vod_sidx_;
48  std::string temp_file_name_;
49  scoped_ptr<File, FileCloser> temp_file_;
50 
51  DISALLOW_COPY_AND_ASSIGN(SingleSegmentSegmenter);
52 };
53 
54 } // namespace mp4
55 } // namespace media
56 } // namespace edash_packager
57 
58 #endif // MEDIA_FORMATS_MP4_SINGLE_SEGMENT_SEGMENTER_H_
bool GetInitRange(size_t *offset, size_t *size) override
bool GetIndexRange(size_t *offset, size_t *size) override
This structure contains the list of configuration options for Muxer.
Definition: muxer_options.h:18