EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
StreamSelector.hpp
Go to the documentation of this file.
1
2/*
3 * Streams.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_SAMPLE_STREAM_SELECTOR_HPP
26#define SFEMOVIE_SAMPLE_STREAM_SELECTOR_HPP
27
28#include <sfeMovie/Movie.hpp>
29#include <map>
30
32{
33public:
36 StreamSelector(sfe::Movie& movie);
37
43 void selectNextStream(sfe::MediaType type);
44
45private:
46 sfe::Movie& m_movie;
47 std::map<sfe::MediaType, int> m_selectedStreamIndexes;
48 std::map<sfe::MediaType, const sfe::Streams*> m_streams;
49};
50
51#endif
void selectNextStream(sfe::MediaType type)
Select the next found stream of the given type from the movie given at construction.
Definition StreamSelector.cpp:55
StreamSelector(sfe::Movie &movie)
Initial setup is to select the first video and audio stream, and no subtitle stream.
Definition StreamSelector.cpp:29