Theora Playback Library  1.0.0
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TheoraVideoFrame.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 _TheoraVideoFrame_h
10 #define _TheoraVideoFrame_h
11 
12 #include "TheoraExport.h"
13 #include "TheoraVideoClip.h"
14 
20 {
21 protected:
23  unsigned char* mBuffer;
24  unsigned long mFrameNumber;
25 public:
29  bool mReady;
31  bool mInUse;
34 
35  int mBpp;
36 
38  virtual ~TheoraVideoFrame();
39 
41  void _setFrameNumber(int number) { mFrameNumber = number; }
43  int getFrameNumber() { return mFrameNumber; }
44 
45  void clear();
46 
47  int getWidth();
48  int getStride();
49  int getHeight();
50 
51  unsigned char* getBuffer();
52 
54  virtual void decode(struct TheoraPixelTransform* t);
55 };
56 #endif