Theora Playback Library  1.0.0
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
24 {
25 protected:
26  std::list<TheoraVideoFrame*> mQueue;
29 
32 public:
35 
43 
45  int getUsedCount();
46 
48  int getReadyCount();
49 
59  void pop();
61  void clear();
64 
70  void setSize(int n);
72  int getSize();
73 
75  bool isFull();
76 
78  void lock();
80  void unlock();
81 };
82 
83 #endif