diff options
author | scop <scop> | 2007-01-28 18:08:11 +0000 |
---|---|---|
committer | scop <scop> | 2007-01-28 18:08:11 +0000 |
commit | fb34e5498e36eb07b15ee79de9b741c0328ce14e (patch) | |
tree | d0cc0b6005ed97b99e177ccab4c048431019e294 | |
parent | 14e53c9957ecb9606f8734730710c716a244abd1 (diff) | |
download | vdr-plugin-dxr3-fb34e5498e36eb07b15ee79de9b741c0328ce14e.tar.gz vdr-plugin-dxr3-fb34e5498e36eb07b15ee79de9b741c0328ce14e.tar.bz2 |
Implement SetVideoFormat().
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | dxr3device.c | 5 | ||||
-rw-r--r-- | dxr3pesframe.c | 6 | ||||
-rw-r--r-- | dxr3pesframe.h | 4 |
4 files changed, 9 insertions, 8 deletions
@@ -321,4 +321,4 @@ NOTE: I havent found time to include all of the languages, will be done in pre2 - add Polish translation (Mikolaj Tutak) - sync "make install" with VDR 1.4.2-2 (Ville Skyttä) - use cCondWait::SleepMs() instead of usleep (Ville Skyttä) -- minor tweaks +- various minor tweaks diff --git a/dxr3device.c b/dxr3device.c index 884ad18..ae7390d 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -20,6 +20,8 @@ * */ +#include <linux/em8300.h> + #include "dxr3device.h" #include "dxr3configdata.h" #include "dxr3interface.h" @@ -327,7 +329,8 @@ int cDxr3Device::PlayAudio(const uchar *Data, int Length, uchar Id) // ================================== void cDxr3Device::SetVideoFormat(bool VideoFormat16_9) { - // Do we need this function? + cDxr3Interface::Instance().SetAspectRatio( + VideoFormat16_9 ? EM8300_ASPECTRATIO_16_9 : EM8300_ASPECTRATIO_4_3); } // ================================== diff --git a/dxr3pesframe.c b/dxr3pesframe.c index 1670ecc..39e618e 100644 --- a/dxr3pesframe.c +++ b/dxr3pesframe.c @@ -172,10 +172,12 @@ int cDxr3PesFrame::ExtractVideoData(cDxr3SafeArray<uint8_t> esFrame) switch ((esFrame[i + 7]) & 0xF0) { case 0x20: - m_staticAspectRatio = m_aspectRatio = ASPECTRATIO_4_3; + m_staticAspectRatio = m_aspectRatio = + EM8300_ASPECTRATIO_4_3; break; case 0x30: - m_staticAspectRatio = m_aspectRatio = ASPECTRATIO_16_9; + m_staticAspectRatio = m_aspectRatio = + EM8300_ASPECTRATIO_16_9; break; default: break; diff --git a/dxr3pesframe.h b/dxr3pesframe.h index 26e334a..5e5d5e6 100644 --- a/dxr3pesframe.h +++ b/dxr3pesframe.h @@ -26,10 +26,6 @@ #include <stdint.h> // ================================== -const int ASPECTRATIO_4_3 = 0; -const int ASPECTRATIO_16_9 = 1; - -// ================================== enum eVideoFrameType { I_FRAME, |