DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
stream_descriptor.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 APP_STREAM_DESCRIPTOR_H_
8 #define APP_STREAM_DESCRIPTOR_H_
9 
10 #include <stdint.h>
11 
12 #include <set>
13 #include <string>
14 
15 namespace edash_packager {
16 namespace media {
17 
23 
24  std::string stream_selector;
25  std::string input;
26  std::string output;
27  std::string segment_template;
28  uint32_t bandwidth;
29  std::string language;
30 };
31 
33  public:
34  bool operator()(const StreamDescriptor& a, const StreamDescriptor& b) {
35  return a.input < b.input;
36  }
37 };
38 
40 typedef std::multiset<StreamDescriptor, StreamDescriptorCompareFn>
41  StreamDescriptorList;
42 
50 bool InsertStreamDescriptor(const std::string& descriptor_string,
51  StreamDescriptorList* descriptor_list);
52 
53 } // namespace media
54 } // namespace edash_packager
55 
56 #endif // APP_STREAM_DESCRIPTOR_H_