Theora Playback Library
1.0.0
Main Page
Classes
Files
File List
File Members
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
theoraplayer
include
theoraplayer
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.sourceforge.net/
4
*************************************************************************************
5
Copyright (c) 2008-2013 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://www.opensource.org/licenses/bsd-license.php
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,list) for (std::map<std::string,type>::iterator it=list.begin();it != list.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
Generated by
1.8.3.1