From fb34e5498e36eb07b15ee79de9b741c0328ce14e Mon Sep 17 00:00:00 2001 From: scop Date: Sun, 28 Jan 2007 18:08:11 +0000 Subject: Implement SetVideoFormat(). --- HISTORY | 2 +- dxr3device.c | 5 ++++- dxr3pesframe.c | 6 ++++-- dxr3pesframe.h | 4 ---- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/HISTORY b/HISTORY index fd607fc..1c71934 100644 --- a/HISTORY +++ b/HISTORY @@ -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 + #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 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 @@ -25,10 +25,6 @@ #include #include -// ================================== -const int ASPECTRATIO_4_3 = 0; -const int ASPECTRATIO_16_9 = 1; - // ================================== enum eVideoFrameType { -- cgit v1.2.3