StreamSelection.hpp
1 
2 /*
3  * StreamSelection.hpp
4  * sfeMovie project
5  *
6  * Copyright (C) 2010-2015 Lucas Soltic
7  * lucas.soltic@orange.fr
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  */
24 
25 #ifndef SFEMOVIE_STREAM_SELECTION_HPP
26 #define SFEMOVIE_STREAM_SELECTION_HPP
27 
28 #include <sfeMovie/Visibility.hpp>
29 #include <string>
30 #include <vector>
31 
32 namespace sfe
33 {
34  enum MediaType
35  {
36  Audio,
37  Subtitle,
38  Video,
39  Unknown
40  };
41 
45  struct SFE_API StreamDescriptor
46  {
52  static StreamDescriptor NoSelection(MediaType type);
53 
54  MediaType type;
55  int identifier;
56  std::string language;
57  };
58 
59  typedef std::vector<StreamDescriptor> Streams;
60 }
61 
62 #endif