#ifndef __DEINTERLACE_FRAME_H__ #define __DEINTERLACE_FRAME_H__ #include #include namespace CVD { template class DeinterlaceBuffer; /// A frame from a DeinterlaceBuffer, representing one field from an /// interlaced frame. /// If the buffer is extracting both fields from the video frames, the /// time of the first field is reported as being the time of the /// original frame, while the time of the second field will be /// 1/frame_rate() further on. /// @param T The pixel type of the original video buffer /// @ingroup gVideoFrame template class DeinterlaceFrame : public LocalVideoFrame { friend class DeinterlaceBuffer; public: /// Access the original (interlaced) frame const VideoFrame* full_frame() { return real_frame; } private: ~DeinterlaceFrame() { } DeinterlaceFrame(double time, Image&& im) : LocalVideoFrame(time, std::move(im)) { } private: VideoFrame* real_frame; }; } #endif