diff options
author | handbrake <[email protected]> | 2006-01-14 12:53:59 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2006-01-14 12:53:59 +0000 |
commit | a9a84221af31ca7d11d1aa182d8b152270203f9f (patch) | |
tree | da452de9a4d3bb509d59de4a65fe12e9fb8e7825 /HBFifo.h | |
parent | 939b35fc70bb688d38b086afebd8d14d8193d2c9 (diff) |
HandBrake 0.3
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'HBFifo.h')
-rw-r--r-- | HBFifo.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/HBFifo.h b/HBFifo.h deleted file mode 100644 index a46d46158..000000000 --- a/HBFifo.h +++ /dev/null @@ -1,61 +0,0 @@ -/* $Id: HBFifo.h,v 1.9 2003/08/24 13:27:41 titer Exp $ */ - -#ifndef _HB_FIFO_H -#define _HB_FIFO_H - -#define DVD_DATA 0x01 -#define MPEG2_VIDEO 0x02 -#define RAW_VIDEO 0x04 -#define RAW2_VIDEO 0x08 -#define MPEG4_VIDEO 0x10 -#define AC3_AUDIO 0x20 -#define RAW_AUDIO 0x40 -#define MP3_AUDIO 0x80 - -class BLocker; - -class HBBuffer -{ - public: - /* Common functions */ - HBBuffer( int size ); - ~HBBuffer(); - void ReAlloc( int size ); - - /* Common members */ - uint32_t fAllocSize; - uint32_t fSize; - uint8_t * fData; - - /* Misc */ - float fPosition; - uint32_t fStreamId; - bool fKeyFrame; - uint64_t fPTS; -}; - -class HBFifo -{ - public: - HBFifo( int capacity ); - void Die(); - ~HBFifo(); - - int Size(); - int Capacity(); - bool Push( HBBuffer * buffer ); - HBBuffer * Pop(); - - private: - void Lock(); - void Unlock(); - - int fCapacity; - int fWhereToPush; - int fWhereToPop; - HBBuffer ** fBuffers; - BLocker * fLocker; - volatile bool fDie; -}; - -#endif |