From 8b9350c091bc5ae8c9bb30b83a1fb567c3a7cb7f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Apr 2011 16:50:00 +0200 Subject: =?UTF-8?q?Version=201.7.18=20-=20Changed=20-O2=20to=20-O3=20in=20?= =?UTF-8?q?Make.config.template=20(reported=20by=20Matti=20Lehtim=C3=A4ki)?= =?UTF-8?q?.=20-=20Added=20a=20missing=20'default'=20case=20in=20cPixmapMe?= =?UTF-8?q?mory::DrawEllipse().=20-=20Fixed=20some=20direct=20comparisons?= =?UTF-8?q?=20of=20double=20values.=20-=20Fixed=20detecting=20frames=20on?= =?UTF-8?q?=20channels=20that=20broadcast=20with=20separate=20"fields"=20i?= =?UTF-8?q?nstead=20=20=20of=20complete=20frames.=20-=20Made=20updating=20?= =?UTF-8?q?the=20editing=20marks=20during=20replay=20react=20faster=20in?= =?UTF-8?q?=20case=20the=20marks=20=20=20file=20has=20just=20been=20writte?= =?UTF-8?q?n=20(with=20a=20patch=20from=20Udo=20Richter).=20-=20Fixed=20ho?= =?UTF-8?q?rizontal=20scaling=20of=20subtitles=20(reported=20by=20Reinhard?= =?UTF-8?q?=20Nissl).=20-=20Stripped=20the=20note=20"The=20data=20returned?= =?UTF-8?q?=20by=20this=20function=20is=20only=20used=20for=20informationa?= =?UTF-8?q?l=20=20=20purposes=20(if=20any)"=20from=20the=20description=20o?= =?UTF-8?q?f=20cDevice::GetVideoSize().=20The=20VideoAspect=20=20=20is=20n?= =?UTF-8?q?ow=20used=20to=20properly=20scale=20subtitles.=20-=20Fixed=20cU?= =?UTF-8?q?nbufferedFile::Seek()=20in=20case=20it=20is=20compiled=20withou?= =?UTF-8?q?t=20USE=5FFADVISE=20(thanks=20=20=20to=20Juergen=20Lock).=20-?= =?UTF-8?q?=20Fixed=20the=20Language=20header=20of=20the=20Serbian=20trans?= =?UTF-8?q?lation=20file=20(thanks=20to=20Ville=20Skytt=C3=A4).=20-=20Adde?= =?UTF-8?q?d=20anti-aliasing=20when=20upscaling=20bitmaps,=20which=20impro?= =?UTF-8?q?ves=20the=20display=20of=20SD=20subtitles=20=20=20when=20replay?= =?UTF-8?q?ed=20on=20an=20HD=20OSD=20(thanks=20to=20Reinhard=20Nissl=20for?= =?UTF-8?q?=20his=20help=20in=20debugging).=20-=20Renamed=20cBitmap::Scale?= =?UTF-8?q?()=20to=20Scaled(),=20because=20it=20doesn't=20modify=20the=20b?= =?UTF-8?q?itmap=20itself,=20=20=20but=20rather=20returns=20a=20scaled=20c?= =?UTF-8?q?opy.=20-=20Fixed=20the=20description=20of=20cReceiver=20in=20PL?= =?UTF-8?q?UGINS.html,=20regarding=20detaching=20a=20receiver=20=20=20from?= =?UTF-8?q?=20its=20device=20before=20deleting=20it=20(reported=20by=20Win?= =?UTF-8?q?fried=20K=C3=B6hler).=20This=20change=20in=20=20=20behavior=20w?= =?UTF-8?q?as=20introduced=20in=20version=201.5.7.=20-=20Fixed=20scaling?= =?UTF-8?q?=20subtitles=20in=20case=20the=20OSD=20size=20is=20exactly=20th?= =?UTF-8?q?e=20same=20as=20the=20display=20=20=20size=20of=20the=20subtitl?= =?UTF-8?q?es.=20-=20Added=20a=20missing=20initialization=20to=20sDvbSpuRe?= =?UTF-8?q?ct=20(reported=20by=20Sergiu=20Dotenco).=20-=20Replaced=20"%lld?= =?UTF-8?q?"=20and=20"%llX"=20print=20format=20specifiers=20with=20"PRId64?= =?UTF-8?q?"=20and=20"PRIX64"=20to=20=20=20avoid=20compiler=20warnings=20w?= =?UTF-8?q?ith=20gcc=204.5.2=20(thanks=20to=20Sergiu=20Dotenco).=20=20=20O?= =?UTF-8?q?n=20a=20personal=20note:=20I=20find=20it=20a=20step=20in=20the?= =?UTF-8?q?=20totally=20wrong=20direction=20that=20there=20=20=20have=20be?= =?UTF-8?q?en=20macros=20introduced=20to=20work=20around=20this=20problem?= =?UTF-8?q?=20in=20the=20first=20place.=20There=20=20=20should=20have=20be?= =?UTF-8?q?en=20"real"=20format=20specifiers=20defined=20that=20address=20?= =?UTF-8?q?this.=20These=20macros=20=20=20are=20nothing=20but=20an=20ugly?= =?UTF-8?q?=20workaround.=20-=20Added=20Cancel(3)=20to=20~cTrueColorDemo()?= =?UTF-8?q?=20in=20the=20"osddemo"=20plugin=20(thanks=20to=20Reinhard=20Ni?= =?UTF-8?q?ssl).=20-=20Added=20a=20missing=20font=20deletion=20in=20cTrueC?= =?UTF-8?q?olorDemo::Action()=20in=20the=20"osddemo"=20plugin=20=20=20(tha?= =?UTF-8?q?nks=20to=20Reinhard=20Nissl).=20-=20Fixed=20a=20buffer=20overfl?= =?UTF-8?q?ow=20in=20cFont::Bidi()=20(thanks=20to=20Reinhard=20Nissl).=20-?= =?UTF-8?q?=20Added=20HD=20stream=20content=20identifiers=20to=20vdr.5=20(?= =?UTF-8?q?thanks=20to=20Christoph=20Haubrich).=20-=20Made=20cRecordingInf?= =?UTF-8?q?o::Read(FILE=20*f)=20private=20to=20avoid=20calls=20to=20it=20f?= =?UTF-8?q?rom=20outside=20=20=20cRecordingInfo=20or=20cRecording=20(repor?= =?UTF-8?q?ted=20by=20Mika=20Laitio).=20-=20The=20dvbhddevice=20plugin=20i?= =?UTF-8?q?s=20now=20part=20of=20the=20VDR=20distribution=20archive=20(tha?= =?UTF-8?q?nks=20to=20=20=20Andreas=20Regel).=20-=20Removed=20an=20obsolet?= =?UTF-8?q?e=20local=20variable=20in=20dvbsdffosd.c=20(thanks=20to=20Paul?= =?UTF-8?q?=20Menzel).=20-=20Fixed=20a=20possible=20NULL=20pointer=20deref?= =?UTF-8?q?erence=20in=20osddemo.c=20(reported=20by=20Paul=20Menzel).=20-?= =?UTF-8?q?=20Now=20using=20pkg-config=20to=20get=20fribidi,=20freetype=20?= =?UTF-8?q?and=20fontconfig=20cflags=20and=20libs=20(thanks=20=20=20to=20V?= =?UTF-8?q?ille=20Skytt=C3=A4).=20-=20The=20Makefile=20now=20also=20instal?= =?UTF-8?q?ls=20the=20include=20files=20(thanks=20to=20Ville=20Skytt=C3=A4?= =?UTF-8?q?).=20-=20Added=20handling=20of=20"ANSI/SCTE=2057"=20descriptors?= =?UTF-8?q?=20(thanks=20too=20Rolf=20Ahrenberg).=20-=20Avoiding=20an=20une?= =?UTF-8?q?cessary=20call=20to=20Recordings.ResetResume()=20(thanks=20to?= =?UTF-8?q?=20Reinhard=20=20=20Nissl).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PLUGINS/src/dvbhddevice/dvbhdffdevice.h | 123 ++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 PLUGINS/src/dvbhddevice/dvbhdffdevice.h (limited to 'PLUGINS/src/dvbhddevice/dvbhdffdevice.h') diff --git a/PLUGINS/src/dvbhddevice/dvbhdffdevice.h b/PLUGINS/src/dvbhddevice/dvbhdffdevice.h new file mode 100644 index 0000000..4dcfb6a --- /dev/null +++ b/PLUGINS/src/dvbhddevice/dvbhdffdevice.h @@ -0,0 +1,123 @@ +/* + * dvbhdffdevice.h: The DVB HD Full Featured device interface + * + * See the README file for copyright information and how to reach the author. + * + * $Id: dvbhdffdevice.h 1.6 2010/03/13 11:18:13 kls Exp $ + */ + +#ifndef __DVBHDFFDEVICE_H +#define __DVBHDFFDEVICE_H + +#include "hdffcmd.h" +#include "vdr/dvbdevice.h" +#include "vdr/dvbspu.h" + +/// The cDvbHdFfDevice implements a DVB device which can be accessed through the Linux DVB driver API. + +class cDvbHdFfDevice : public cDvbDevice { +private: + int fd_osd, fd_audio, fd_video; +protected: + virtual void MakePrimaryDevice(bool On); +public: + static bool Probe(int Adapter, int Frontend); + cDvbHdFfDevice(int Adapter, int Frontend); + virtual ~cDvbHdFfDevice(); + virtual bool HasDecoder(void) const; + +// SPU facilities + +private: + cDvbSpuDecoder *spuDecoder; +public: + virtual cSpuDecoder *GetSpuDecoder(void); + +// Channel facilities + +private: + void TurnOffLiveMode(bool LiveView); +protected: + virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView); + +// PID handle facilities + +protected: + virtual bool SetPid(cPidHandle *Handle, int Type, bool On); + +// Image Grab facilities + +public: + virtual uchar *GrabImage(int &Size, bool Jpeg = true, int Quality = -1, int SizeX = -1, int SizeY = -1); + +// Video format facilities + +public: + virtual void SetVideoDisplayFormat(eVideoDisplayFormat VideoDisplayFormat); + virtual void SetVideoFormat(bool VideoFormat16_9); + virtual eVideoSystem GetVideoSystem(void); + virtual void GetVideoSize(int &Width, int &Height, double &VideoAspect); + virtual void GetOsdSize(int &Width, int &Height, double &PixelAspect); + +// Track facilities + +protected: + virtual void SetAudioTrackDevice(eTrackType Type); + +// Audio facilities + +private: + int audioChannel; +protected: + virtual int GetAudioChannelDevice(void); + virtual void SetAudioChannelDevice(int AudioChannel); + virtual void SetVolumeDevice(int Volume); + virtual void SetDigitalAudioDevice(bool On); + +// Player facilities + +private: + int playVideoPid; + int playAudioPid; + + // Pes2Ts conversion stuff + uint8_t videoCounter; + uint8_t audioCounter; + void BuildTsPacket(uint8_t * TsBuffer, bool PusiSet, uint16_t Pid, uint8_t Counter, const uint8_t * Data, uint32_t Length); + uint32_t PesToTs(uint8_t * TsBuffer, uint16_t Pid, uint8_t & Counter, const uint8_t * Data, uint32_t Length); + +protected: + ePlayMode playMode; + virtual bool CanReplay(void) const; + virtual bool SetPlayMode(ePlayMode PlayMode); + virtual int PlayVideo(const uchar *Data, int Length); + virtual int PlayAudio(const uchar *Data, int Length, uchar Id); + virtual int PlayTsVideo(const uchar *Data, int Length); + virtual int PlayTsAudio(const uchar *Data, int Length); +public: + virtual int64_t GetSTC(void); + virtual void TrickSpeed(int Speed); + virtual void Clear(void); + virtual void Play(void); + virtual void Freeze(void); + virtual void Mute(void); + virtual void StillPicture(const uchar *Data, int Length); + virtual bool Poll(cPoller &Poller, int TimeoutMs = 0); + virtual bool Flush(int TimeoutMs = 0); + +// HDFF specific things + +public: + static HDFF::cHdffCmdIf *GetHdffCmdHandler(void); +private: + static int devHdffOffset;//TODO + bool isHdffPrimary;//TODO implicit! + HDFF::cHdffCmdIf *mHdffCmdIf; +}; + +class cDvbHdFfDeviceProbe : public cDvbDeviceProbe { +public: + virtual bool Probe(int Adapter, int Frontend); + }; + +#endif //__DVBHDFFDEVICE_H -- cgit v1.2.3