From 64fe6b70d0a5b34a80ff458fbf1664018d5c0182 Mon Sep 17 00:00:00 2001 From: Andreas Regel Date: Wed, 28 Jan 2004 19:11:00 +0100 Subject: Release version 0.0.3 - new TS->ES remuxer: now using VDR's cRemux for TS->PES and some own code for PES->ES - now using libavcodec from ffmpeg instead of mpeg2dec - frames to decode configurable (I-frames, I-/P-frames, all frames) - frame dropping configurable - added new color depths: - 128 shades greyscale - 128 colors with variable palette using Wu's quantizer (patch needed) - changed osd size setting to 6 configurable values --- osd.h | 45 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 7 deletions(-) (limited to 'osd.h') diff --git a/osd.h b/osd.h index a43d6b6..5b30ca1 100644 --- a/osd.h +++ b/osd.h @@ -1,22 +1,34 @@ +/* + * OSD Picture in Picture plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + */ + #ifndef VDR_OSDPIP_OSD_H #define VDR_OSDPIP_OSD_H +extern "C" +{ +#ifdef HAVE_FFMPEG_STATIC +# include +#else +# include +#endif +} + #include #include +#include #include -extern "C" { -#include -#include -}; - -class cRingBufferLinear; +class cRingBufferFrame; class cOsdPipReceiver; +class cQuantize; class cOsdPipObject: public cOsdObject, public cThread { private: cOsdBase *m_Osd; - cRingBufferLinear *m_ESBuffer; + cRingBufferFrame *m_ESBuffer; cOsdPipReceiver *m_Receiver; const cChannel *m_Channel; tWindowHandle m_Window; @@ -25,7 +37,26 @@ private: bool m_Active; bool m_Ready; int m_Width, m_Height; + int m_FrameDrop; + + AVCodec * m_Codec; + AVCodecContext * m_Context; + AVFrame * m_PicDecoded; + AVFrame * m_PicResample; + AVFrame * m_PicConvert; + unsigned char * m_BufferResample; + unsigned char * m_BufferConvert; + + unsigned int m_AlphaBase; + unsigned int m_Palette[256]; + int m_PaletteStart; + + cQuantize * quantizer; + int Decode(unsigned char * data, int length); + int Resample(); + int ConvertToRGB(); + void ProcessImage(unsigned char * data, int length); protected: virtual void Action(void); -- cgit v1.2.3