| 1 |
#ifndef __DEINTERLACE_FRAME_H__ |
| 2 |
#define __DEINTERLACE_FRAME_H__ |
| 3 |
|
| 4 |
#include <cvd/localvideoframe.h> |
| 5 |
#include <utility> |
| 6 |
|
| 7 |
namespace CVD |
| 8 |
{ |
| 9 |
template <typename T> |
| 10 |
class DeinterlaceBuffer; |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
template <typename T> |
| 21 |
class DeinterlaceFrame : public LocalVideoFrame<T> |
| 22 |
{ |
| 23 |
friend class DeinterlaceBuffer<T>; |
| 24 |
|
| 25 |
public: |
| 26 |
|
| 27 |
const VideoFrame<T>* full_frame() { return real_frame; } |
| 28 |
|
| 29 |
private: |
| 30 |
~DeinterlaceFrame() |
| 31 |
{ |
| 32 |
} |
| 33 |
|
| 34 |
DeinterlaceFrame(double time, Image<T>&& im) |
| 35 |
: LocalVideoFrame<T>(time, std::move(im)) |
| 36 |
{ |
| 37 |
} |
| 38 |
|
| 39 |
private: |
| 40 |
VideoFrame<T>* real_frame; |
| 41 |
}; |
| 42 |
|
| 43 |
} |
| 44 |
|
| 45 |
#endif |