Theora Playback Library  1.1.0
TheoraUtil.h
Go to the documentation of this file.
1 /************************************************************************************
2 This source file is part of the Theora Video Playback Library
3 For latest info, see http://libtheoraplayer.googlecode.com
4 *************************************************************************************
5 Copyright (c) 2008-2014 Kresimir Spes (kspes@cateia.com)
6 This program is free software; you can redistribute it and/or modify it under
7 the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
8 *************************************************************************************/
9 #ifndef _TheoraUtil_h
10 #define _TheoraUtil_h
11 
12 #include <string>
13 #include <vector>
14 
15 #ifndef THEORAUTIL_NOMACROS
16 
17 #define foreach(type,lst) for (std::vector<type>::iterator it=lst.begin();it != lst.end(); ++it)
18 #define foreach_l(type,lst) for (std::list<type>::iterator it=lst.begin();it != lst.end(); ++it)
19 #define foreach_r(type,lst) for (std::vector<type>::reverse_iterator it=lst.rbegin();it != lst.rend(); ++it)
20 #define foreach_in_map(type,lst) for (std::map<std::string,type>::iterator it=lst.begin();it != lst.end(); ++it)
21 
22 #endif
23 
24 #define th_writelog(x) TheoraVideoManager::getSingleton().logMessage(x)
25 
26 
27 std::string str(int i);
28 std::string strf(float i);
29 void _psleep(int milliseconds);
30 int _nextPow2(int x);
31 
32 #endif
int _nextPow2(int x)
std::string strf(float i)
void _psleep(int milliseconds)
std::string str(int i)