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
TheoraFrameQueue.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
10
#ifndef _TheoraFrameQueue_h
11
#define _TheoraFrameQueue_h
12
13
#include "
TheoraAsync.h
"
14
#include <list>
15
16
class
TheoraVideoFrame
;
17
class
TheoraVideoClip
;
18
23
class
TheoraFrameQueue
24
{
25
protected
:
26
std::list<TheoraVideoFrame*>
mQueue
;
27
TheoraVideoClip
*
mParent
;
28
TheoraMutex
mMutex
;
29
31
TheoraVideoFrame
*
createFrameInstance
(
TheoraVideoClip
* clip);
32
public
:
33
TheoraFrameQueue
(
TheoraVideoClip
* parent);
34
~TheoraFrameQueue
();
35
42
TheoraVideoFrame
*
getFirstAvailableFrame
();
43
45
int
getUsedCount
();
46
48
int
getReadyCount
();
49
59
void
pop
();
61
void
clear
();
63
TheoraVideoFrame
*
requestEmptyFrame
();
64
70
void
setSize
(
int
n);
72
int
getSize
();
73
75
bool
isFull
();
76
78
void
lock
();
80
void
unlock
();
81
};
82
83
#endif
Generated by
1.8.3.1