diff options
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/frame.h b/src/frame.h index 2b8d9f5..6859116 100644 --- a/src/frame.h +++ b/src/frame.h @@ -31,9 +31,6 @@ // Definition of vector #include <vector> -// Definition of priority_queue -#include <queue> - class Frame { public: Frame(unsigned char *d, int sz); @@ -54,22 +51,6 @@ public: bool endOfFrameStream; }; -#include <functional> - -// Method for use, when comparing Frames in priority queue. -template <typename T> -struct frame_priority : std::binary_function<T, T, bool> { - bool operator() (const T& a, const T& b) const { - return ((Frame*)a)->number > ((Frame*)b)->number; - } -}; - -// Additional helper types. typedef std::vector< Frame* > FrameVector; -typedef std::queue< FrameVector* > FrameVectorQueue; -typedef std::priority_queue< Frame*, - std::vector<Frame*>, - frame_priority<Frame*> > FramePriorityQueue; - #endif/*__FRAME_H__*/ |