Theora Playback Library  1.1.0
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.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 _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(unsigned long number) { mFrameNumber = number; }
43  unsigned long 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
unsigned long mFrameNumber
Definition: TheoraVideoFrame.h:24
unsigned long getFrameNumber()
returns the frame number of this frame in the theora stream
Definition: TheoraVideoFrame.h:43
float mTimeToDisplay
global time in seconds this frame should be displayed on
Definition: TheoraVideoFrame.h:27
void _setFrameNumber(unsigned long number)
internal function, do not use directly
Definition: TheoraVideoFrame.h:41
unsigned char * mBuffer
Definition: TheoraVideoFrame.h:23
int mIteration
used to keep track of linear time in looping videos
Definition: TheoraVideoFrame.h:33
TheoraVideoClip * mParent
Definition: TheoraVideoFrame.h:22
bool mInUse
indicates the frame is being used by TheoraWorkerThread instance
Definition: TheoraVideoFrame.h:31
bool mReady
whether the frame is ready for display or not
Definition: TheoraVideoFrame.h:29
Definition: TheoraVideoFrame.h:19
Definition: TheoraVideoClip.h:61
Definition: TheoraPixelTransform.h:12
#define TheoraPlayerExport
Definition: TheoraExport.h:25
int mBpp
Definition: TheoraVideoFrame.h:35