DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs
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  virtual ~SingleSegmentSegmenter();
34 
37  virtual bool GetInitRange(size_t* offset, size_t* size) OVERRIDE;
38  virtual bool GetIndexRange(size_t* offset, size_t* size) OVERRIDE;
40 
41  private:
42  // Segmenter implementation overrides.
43  virtual Status DoInitialize() OVERRIDE;
44  virtual Status DoFinalize() OVERRIDE;
45  virtual 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_
virtual bool GetInitRange(size_t *offset, size_t *size) OVERRIDE
virtual bool GetIndexRange(size_t *offset, size_t *size) OVERRIDE
This structure contains the list of configuration options for Muxer.
Definition: muxer_options.h:18