Version 1.7.32

VDR developer version 1.7.32 is now available at

       ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.32.tar.bz2

A 'diff' against the previous version is available at

       ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.31-1.7.32.diff

MD5 checksums:

068ba78fd427694dcc480fe3b2d07148  vdr-1.7.32.tar.bz2
222f1e9b4d4edaa6fe57286409614cc7  vdr-1.7.31-1.7.32.diff

WARNING:
========

This is a developer version. Even though I use it in my productive
environment. I strongly recommend that you only use it under controlled
conditions and for testing and debugging.

The main focus of this version is on an improved frame detection code,
and improvements to the cutting process. When cutting a recording, VDR
now removes any "dangling" TS packets from the beginning of an editing
sequence and pulls in any "pending" TS packets at the end of a sequence.
It also fixes all timestamps and continuity counters.
However, while the results look much better now in, for instance, Kaffeine,
the TT S2-6400 still shows some video artifacts at the editing points, and
the Mac video player sometimes totally chokes on edited material.
I did spend a lot of time trying to find out what could still be wrong here,
but couldn't come up with any new ideas. So I think it's now time to invite
others to test this new cutting code, read the source code and try to find
out what's still going wrong here. Maybe (hopefully ;-) it's just some stupid
little error... ;-)

From the HISTORY file:
- Pressing the Play key during normal live viewing mode now opens the Recordings menu
  if there is no "last viewed" recording (thanks to Alexander Wenzel).
  The same behavior has been implemented for the Blue key in the main menu.
- cIoThrottle::Engaged() is now also checked in cRemoveDeletedRecordingsThread::Action(),
  to suspend removing deleted recordings in case this is necessary to make room for
  new, ongoing recordings (suggested by Udo Richter).
- The cThread constructor now has an additional boolean parameter that can be set to
  true to have this thread run at a lower priority. Plugin authors that use low
  priority threads may want to use this instead of the calls to SetPriority(19) and
  SetIOPriority(7). The priority of a thread ("low" or "high") is now logged when the
  thread starts.
- Changed DTV_DVBT2_PLP_ID to DTV_STREAM_ID in dvbdevice.c to adapt to an incompatible
  change in DVB API 5.8 (reported by Derek Kelly).
  Removed the meanwhile obsolete definition of FE_CAN_TURBO_FEC.
- Fixed some compiler warnings under gcc version 4.7.1.
- Fixed setting the video format in the dvbhdffdevice (thanks to Torsten Lang).
- Fixed 'make install' to not overwrite existing configuration files (thanks to Peter
  Münster).
- Added including the Make.global and Make.config files to the dvbdhffdevice's
  libhdffcmd/Makefile.
- Added options to build a 32-bit version of VDR on a 64-bit machine to
  Make.config.template.
- Fixed handling VPS timers in case the running status of an event goes to '1' (not
  running) and later goes to '4' (running).
- If a frame position in the 'marks' file of a recording doesn't point to an I-frame,
  it will now be shifted towards the next I-frame, either up or down, whichever is
  closer (suggested by Udo Richter).
- Fixed a possible memory leak in SI::StructureLoop::getNextAsPointer() (reported by
  Sundararaj Reel).
- Fixed handling timers in case an event is modified and "phased out" while the timer
  is recording.
- Improved frame detection by parsing just far enough into the MPEG-4 NAL units to get
  the necessary information about frames and slices.
- The initial syncing of the frame detector is now done immediately after the first
  complete GOP has been seen. This makes recordings and especially pausing live video
  start up to twice as fast as before.
- Updated the Romanian OSD texts (thanks to Lucian Muresan).
- Fixed handling the very last entry in a recording index.
- The return type of cMarks::Add() has been changed to void, since due to the sorting
  of the list of marks the returned pointer might have pointed to a totally different
  mark. Besides, the return value was never actually used.
- Improved editing TS recordings by
  + stripping dangling TS packets from the beginning of a sequence
  + including pending TS packets at the end of a sequence
  + fixing all timestamps and continuity counters
  + generating editing marks for the edited version in such a way that each cutting
    point is marked by an "end" and "begin" mark with the same offset
  + no longer generating an editing mark at the "end" of the edited recording (this
    was actually generated at the beginning of the last GOP, so that a subsequent
    edit would have cut off the last GOP)
  + no longer generating any editing marks if the edited recording results on just
    one single sequence
  + ignoring pairs of editing marks that are placed at exactly the same position of
    a recording when actually cutting the recording
  + not doing anything if the editing marks in place would result in the edited
    version being the same as the original recording
- Editing marks can now be placed directly on top of each other, in which case they
  simply mark a position, but have no effect on the actual cutting process.
- When positioned at an offset where two (or more) editing marks are placed on top
  of each other, the '4' key moves the first one of them to the left, while the '6'
  key moves the last one of them to the right. The '7' and '9' key handle multiple
  marks at the same place as if it were one single mark.
- Modified editing marks are now written to disk whenever the replay progress display
  gets hidden (thanks to Christoph Haubrich).
This commit is contained in:
Klaus Schmidinger
2012-11-18 14:58:00 +01:00
committed by Dieter Hametner
parent fa6845328c
commit beffcabc81
69 changed files with 2094 additions and 1139 deletions

View File

@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: dvbhdffdevice.c 1.43 2012/05/08 11:40:32 kls Exp $
* $Id: dvbhdffdevice.c 1.46 2012/11/15 09:19:10 kls Exp $
*/
#include <stdint.h>
@@ -69,6 +69,7 @@ cDvbHdFfDevice::cDvbHdFfDevice(int Adapter, int Frontend)
mHdffCmdIf->CmdAvSetAudioDelay(gHdffSetup.AudioDelay);
mHdffCmdIf->CmdAvSetAudioDownmix((HdffAudioDownmixMode_t) gHdffSetup.AudioDownmix);
mHdffCmdIf->CmdAvSetSyncShift(gHdffSetup.AvSyncShift);
mHdffCmdIf->CmdMuxSetVideoOut((HdffVideoOut_t) gHdffSetup.AnalogueVideo);
mHdffCmdIf->CmdHdmiSetVideoMode(gHdffSetup.GetVideoMode());
@@ -136,7 +137,7 @@ void cDvbHdFfDevice::SetVideoFormat(bool VideoFormat16_9)
{
HdffVideoFormat_t videoFormat;
videoFormat.AutomaticEnabled = true;
videoFormat.AfdEnabled = true;
videoFormat.AfdEnabled = false;
videoFormat.TvFormat = (HdffTvFormat_t) gHdffSetup.TvFormat;
videoFormat.VideoConversion = (HdffVideoConversion_t) gHdffSetup.VideoConversion;
mHdffCmdIf->CmdAvSetVideoFormat(0, &videoFormat);
@@ -375,62 +376,86 @@ bool cDvbHdFfDevice::CanReplay(void) const
bool cDvbHdFfDevice::SetPlayMode(ePlayMode PlayMode)
{
if (PlayMode == pmNone) {
mHdffCmdIf->CmdAvSetVideoSpeed(0, 100);
mHdffCmdIf->CmdAvSetAudioSpeed(0, 100);
if (PlayMode == pmNone) {
if (fd_video == -1)
fd_video = DvbOpen(DEV_DVB_VIDEO, adapter, frontend, O_RDWR | O_NONBLOCK);
if (fd_audio == -1)
fd_audio = DvbOpen(DEV_DVB_AUDIO, adapter, frontend, O_RDWR | O_NONBLOCK);
mHdffCmdIf->CmdAvEnableVideoAfterStop(0, false);
mHdffCmdIf->CmdAvSetPcrPid(0, 0);
mHdffCmdIf->CmdAvSetVideoPid(0, 0, HDFF_VIDEO_STREAM_MPEG1);
mHdffCmdIf->CmdAvSetAudioPid(0, 0, HDFF_AUDIO_STREAM_MPEG1);
mHdffCmdIf->CmdAvSetVideoSpeed(0, 100);
mHdffCmdIf->CmdAvSetAudioSpeed(0, 100);
ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX);
mHdffCmdIf->CmdAvSetDecoderInput(0, 0);
mHdffCmdIf->CmdAvEnableSync(0, true);
mHdffCmdIf->CmdAvSetPlayMode(0, true);
}
else {
if (playMode == pmNone)
TurnOffLiveMode(true);
mHdffCmdIf->CmdAvEnableVideoAfterStop(0, false);
mHdffCmdIf->CmdAvSetPcrPid(0, 0);
mHdffCmdIf->CmdAvSetVideoPid(0, 0, HDFF_VIDEO_STREAM_MPEG1);
mHdffCmdIf->CmdAvSetAudioPid(0, 0, HDFF_AUDIO_STREAM_MPEG1);
mHdffCmdIf->CmdAvSetPlayMode(1, Transferring() || (cTransferControl::ReceiverDevice() == this));
mHdffCmdIf->CmdAvSetStc(0, 100000);
mHdffCmdIf->CmdAvEnableSync(0, true);
mHdffCmdIf->CmdAvEnableVideoAfterStop(0, true);
ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX);
mHdffCmdIf->CmdAvSetDecoderInput(0, 0);
mHdffCmdIf->CmdAvEnableSync(0, true);
mHdffCmdIf->CmdAvSetPlayMode(0, true);
}
else {
if (playMode == pmNone)
TurnOffLiveMode(true);
playVideoPid = -1;
playAudioPid = -1;
audioCounter = 0;
videoCounter = 0;
freezed = false;
trickMode = false;
if (PlayMode == pmExtern_THIS_SHOULD_BE_AVOIDED)
{
close(fd_video);
fd_video = -1;
close(fd_audio);
fd_audio = -1;
}
else
{
mHdffCmdIf->CmdAvSetPlayMode(1, Transferring() || (cTransferControl::ReceiverDevice() == this));
mHdffCmdIf->CmdAvSetStc(0, 100000);
mHdffCmdIf->CmdAvEnableSync(0, false);
mHdffCmdIf->CmdAvEnableVideoAfterStop(0, true);
mHdffCmdIf->CmdAvSetDecoderInput(0, 2);
ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_MEMORY);
}
playMode = PlayMode;
return true;
playVideoPid = -1;
playAudioPid = -1;
audioCounter = 0;
videoCounter = 0;
freezed = false;
trickMode = false;
isPlayingVideo = false;
mHdffCmdIf->CmdAvSetDecoderInput(0, 2);
ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_MEMORY);
}
}
playMode = PlayMode;
return true;
}
int64_t cDvbHdFfDevice::GetSTC(void)
{
if (fd_video >= 0) {
uint64_t pts;
if (ioctl(fd_video, VIDEO_GET_PTS, &pts) == -1) {
esyslog("ERROR: pts %d: %m", CardIndex() + 1);
return -1;
if (isPlayingVideo)
{
if (fd_video >= 0) {
uint64_t pts;
if (ioctl(fd_video, VIDEO_GET_PTS, &pts) == -1) {
esyslog("ERROR: pts %d: %m", CardIndex() + 1);
return -1;
}
//printf("video PTS %lld\n", pts);
return pts;
}
return pts;
}
if (fd_audio >= 0) {
uint64_t pts;
if (ioctl(fd_audio, AUDIO_GET_PTS, &pts) == -1) {
esyslog("ERROR: pts %d: %m", CardIndex() + 1);
return -1;
}
else
{
if (fd_audio >= 0) {
uint64_t pts;
if (ioctl(fd_audio, AUDIO_GET_PTS, &pts) == -1) {
esyslog("ERROR: pts %d: %m", CardIndex() + 1);
return -1;
}
//printf("audio PTS %lld\n", pts);
return pts;
}
return pts;
}
return -1;
}
return -1;
}
void cDvbHdFfDevice::TrickSpeed(int Speed)
@@ -456,12 +481,13 @@ void cDvbHdFfDevice::Clear(void)
void cDvbHdFfDevice::Play(void)
{
freezed = false;
trickMode = false;
mHdffCmdIf->CmdAvEnableSync(0, true);
mHdffCmdIf->CmdAvSetVideoSpeed(0, 100);
mHdffCmdIf->CmdAvSetAudioSpeed(0, 100);
cDevice::Play();
freezed = false;
trickMode = false;
if (isPlayingVideo)
mHdffCmdIf->CmdAvEnableSync(0, true);
mHdffCmdIf->CmdAvSetVideoSpeed(0, 100);
mHdffCmdIf->CmdAvSetAudioSpeed(0, 100);
cDevice::Play();
}
void cDvbHdFfDevice::Freeze(void)
@@ -631,6 +657,11 @@ int cDvbHdFfDevice::PlayVideo(const uchar *Data, int Length)
{
if (freezed)
return -1;
if (!isPlayingVideo)
{
mHdffCmdIf->CmdAvEnableSync(0, true);
isPlayingVideo = true;
}
//TODO: support greater Length
uint8_t tsBuffer[188 * 16];
uint32_t tsLength;
@@ -651,8 +682,6 @@ int cDvbHdFfDevice::PlayAudio(const uchar *Data, int Length, uchar Id)
{
if (freezed)
return -1;
if (trickMode)
return Length;
uint8_t streamId;
uint8_t tsBuffer[188 * 16];
uint32_t tsLength;
@@ -702,17 +731,23 @@ int cDvbHdFfDevice::PlayAudio(const uchar *Data, int Length, uchar Id)
int cDvbHdFfDevice::PlayTsVideo(const uchar *Data, int Length)
{
if (freezed)
return -1;
int pid = TsPid(Data);
if (pid != playVideoPid) {
PatPmtParser();
if (pid == PatPmtParser()->Vpid()) {
playVideoPid = pid;
mHdffCmdIf->CmdAvSetVideoPid(0, playVideoPid, MapVideoStreamTypes(PatPmtParser()->Vtype()), true);
if (freezed)
return -1;
if (!isPlayingVideo)
{
mHdffCmdIf->CmdAvEnableSync(0, true);
isPlayingVideo = true;
}
int pid = TsPid(Data);
if (pid != playVideoPid) {
PatPmtParser();
if (pid == PatPmtParser()->Vpid()) {
playVideoPid = pid;
mHdffCmdIf->CmdAvSetVideoPid(0, playVideoPid, MapVideoStreamTypes(PatPmtParser()->Vtype()), true);
}
}
return WriteAllOrNothing(fd_video, Data, Length, 1000, 10);
}
return WriteAllOrNothing(fd_video, Data, Length, 1000, 10);
}
static HdffAudioStreamType_t MapAudioStreamTypes(int Atype)
@@ -732,8 +767,6 @@ int cDvbHdFfDevice::PlayTsAudio(const uchar *Data, int Length)
{
if (freezed)
return -1;
if (trickMode)
return Length;
int pid = TsPid(Data);
if (pid != playAudioPid) {
playAudioPid = pid;

View File

@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: dvbhdffdevice.h 1.7 2011/09/10 10:17:32 kls Exp $
* $Id: dvbhdffdevice.h 1.8 2012/11/05 08:49:29 kls Exp $
*/
#ifndef __DVBHDFFDEVICE_H
@@ -81,6 +81,7 @@ private:
int playAudioPid;
bool freezed;
bool trickMode;
bool isPlayingVideo;
// Pes2Ts conversion stuff
uint8_t videoCounter;

View File

@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: hdffcmd.c 1.25 2012/06/16 11:16:38 kls Exp $
* $Id: hdffcmd.c 1.26 2012/11/15 09:19:47 kls Exp $
*/
#include <stdint.h>
@@ -170,6 +170,11 @@ void cHdffCmdIf::CmdAvSetAudioChannel(uint8_t AudioChannel)
HdffCmdAvSetAudioChannel(mOsdDev, AudioChannel);
}
void cHdffCmdIf::CmdAvSetSyncShift(int16_t SyncShift)
{
HdffCmdAvSetSyncShift(mOsdDev, SyncShift);
}
void cHdffCmdIf::CmdOsdConfigure(const HdffOsdConfig_t * pConfig)
{

View File

@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: hdffcmd.h 1.20 2012/06/16 11:16:52 kls Exp $
* $Id: hdffcmd.h 1.21 2012/11/15 09:20:05 kls Exp $
*/
#ifndef _HDFF_CMD_H_
@@ -47,6 +47,7 @@ public:
void CmdAvSetAudioDelay(int16_t Delay);
void CmdAvSetAudioDownmix(HdffAudioDownmixMode_t DownmixMode);
void CmdAvSetAudioChannel(uint8_t AudioChannel);
void CmdAvSetSyncShift(int16_t SyncShift);
void CmdOsdConfigure(const HdffOsdConfig_t * pConfig);
void CmdOsdReset(void);

View File

@@ -1,313 +0,0 @@
/*
* hdffmsgdef.h: TODO(short description)
*
* See the README file for copyright information and how to reach the author.
*
* $Id: hdffmsgdef.h 1.13 2011/08/27 09:34:43 kls Exp $
*/
#ifndef _HDFF_MSGDEF_H_
#define _HDFF_MSGDEF_H_
#define MAX_CMD_LEN 1536
namespace HDFF
{
typedef enum _eMessageType
{
msgTypeCommand,
msgTypeAnswer,
msgTypeResult,
msgTypeEvent
} eMessageType;
typedef enum _eMessageGroup
{
msgGroupGeneric,
msgGroupAvDec,
msgGroupAvMux,
msgGroupFrontend,
msgGroupOsd,
msgGroupHdmi,
msgGroupRemoteControl
} eMessageGroup;
typedef enum _eMessageId
{
msgGenGetFirmwareVersion = 0,
msgGenGetInterfaceVersion,
msgGenGetCopyrights,
msgAvSetAudioPid = 0,
msgAvSetVideoPid,
msgAvSetPcrPid,
msgAvSetTeletextPid,
msgAvShowStillImage,
msgAvSetVideoWindow,
msgAvSetDecoderInput,
msgAvSetDemultiplexerInput,
msgAvSetVideoFormat,
msgAvSetVideoOutputMode,
msgAvSetStc,
msgAvFlushBuffer,
msgAvEnableSync,
msgAvSetVideoSpeed,
msgAvSetAudioSpeed,
msgAvEnableVideoAfterStop,
msgAvGetVideoFormatInfo,
msgAvSetAudioDelay,
msgAvSetAudioDownmix,
msgAvSetAudioChannel,
msgAvSetPlayMode,
msgMuxSetVideoOut = 0,
msgMuxSetSlowBlank,
msgMuxSetFastBlank,
msgMuxSetVolume,
msgMuxSetAudioMute,
msgOsdConfigure = 0,
msgOsdReset,
msgOsdCreateDisplay = 10,
msgOsdDeleteDisplay,
msgOsdEnableDisplay,
msgOsdSetDisplayOutputRectangle,
msgOsdSetDisplayClippingArea,
msgOsdRenderDisplay,
msgOsdSaveRegion,
msgOsdRestoreRegion,
msgOsdCreatePalette = 30,
msgOsdDeletePalette,
msgOsdSetDisplayPalette,
msgOsdSetPaletteColors,
msgOsdCreateFontFace = 50,
msgOsdDeleteFontFace,
msgOsdCreateFont,
msgOsdDeleteFont,
msgOsdDrawPixel = 70,
msgOsdDrawRectangle,
msgOsdDrawCircle,
msgOsdDrawEllipse,
msgOsdDrawSlope,
msgOsdDrawText,
msgOsdDrawTextW,
msgOsdDrawBitmap,
msgHdmiEnableOutput = 0,
msgHdmiSetVideoMode,
msgHdmiConfigure,
msgHdmiIsDisplayConnected,
msgHdmiGetDisplayInfo,
msgHdmiGetVideoMode,
msgHdmiSendCecCommand,
msgRemoteSetProtocol = 0,
msgRemoteSetAddressFilter,
msgRemoteKeyEvent
} eMessageId;
// AvDec definitions
typedef enum _eAVContainerType
{
avContainerPes,
avContainerPesDvd,
avContainerMaxValue
} eAVContainerType;
typedef enum _eAudioStreamType
{
audioStreamMpeg1,
audioStreamMpeg2,
audioStreamAc3,
audioStreamAac,
audioStreamHeAac,
audioStreamPcm,
audioStreamEAc3,
audioStreamDts,
audioStreamMaxValue
} eAudioStreamType;
typedef enum _eVideoStreamType
{
videoStreamMpeg1,
videoStreamMpeg2,
videoStreamH264,
videoStreamMpeg4Asp,
videoStreamVc1,
videoStreamMaxValue
} eVideoStreamType;
typedef enum _eTvFormat
{
tvFormat4by3,
tvFormat16by9,
tvFormatMaxValue
} eTvFormat;
typedef enum _eVideoConversion
{
videoConversionAutomatic,
videoConversionLetterbox16by9,
videoConversionLetterbox14by9,
videoConversionPillarbox,
videoConversionCentreCutOut,
videoConversionAlways16by9,
videoConversionMaxValue
} eVideoConversion;
typedef struct _tVideoFormat
{
bool AutomaticEnabled;
bool AfdEnabled;
eTvFormat TvFormat;
eVideoConversion VideoConversion;
} tVideoFormat;
typedef enum _eVideoOutputMode
{
videoOutputClone,
videoOutputDualView,
videoOutputMaxValue
} eVideoOutputMode;
typedef enum _eDownmixMode
{
downmixOff,
downmixAnalog,
downmixAlways,
downmixAutomatic,
downmixHdmi
} eDownmixMode;
// AvMux definitions
typedef enum _eVideoOut
{
videoOutDisabled,
videoOutRgb,
videoOutCvbsYuv,
videoOutYc,
videoOutMaxValue
} eVideoOut;
typedef enum _eSlowBlank
{
slowBlankOff,
slowBlank16by9,
slowBlank4by3,
slowBlankMaxValue
} eSlowBlank;
typedef enum _eFastBlank
{
fastBlankCvbs,
fastBlankRgb,
fastBlankMaxValue
} eFastBlank;
// OSD definitions
#define InvalidHandle 0xFFFFFFFF
#define ScreenDisplayHandle 0xFFFFFFFE
#define PositionScreenCentered 0xFFFF
#define SizeFullScreen 0xFFFF
#define SizeSameAsSource 0xFFFE
#define FontFaceTiresias 0x00000000
typedef enum _eColorType
{
colorTypeClut1,
colorTypeClut2,
colorTypeClut4,
colorTypeClut8,
colorTypeARGB8888,
colorTypeARGB8565,
colorTypeARGB4444,
colorTypeARGB1555,
} eColorType;
typedef enum _eColorFormat
{
colorFormatARGB,
colorFormatACbYCr,
} eColorFormat;
typedef enum _eDrawingFlags
{
drawFull,
drawHalfTop,
drawHalfLeft,
drawHalfBottom,
drawHalfRight,
drawQuarterTopLeft,
drawQuarterTopRight,
drawQuarterBottomLeft,
drawQuarterBottomRight,
drawQuarterTopLeftInverted,
drawQuarterTopRightInverted,
drawQuarterBottomLeftInverted,
drawQuarterBottomRightInverted
} eDrawingFlags;
typedef struct _tOsdConfig
{
bool FontAntialiasing;
bool FontKerning;
} tOsdConfig;
// HDMI definitions
typedef enum _eHdmiVideoMode
{
videoMode576p50 = 18,
videoMode720p50 = 19,
videoMode1080i50 = 20,
videoMode576i50 = 22,
videoModeMaxValue
} eHdmiVideoMode;
typedef enum _eVideoModeAdaption
{
videoModeAdaptOff,
videoModeAdaptFrameRate,
videoModeAdaptOnlyForHd,
videoModeAdaptAlways
} eVideoModeAdaption;
typedef enum _eCecCommand
{
cecCommandTvOn,
cecCommandTvOff,
cecCommandActiveSource,
cecCommandInactiveSource
} eCecCommand;
typedef struct _tHdmiConfig
{
bool TransmitAudio;
bool ForceDviMode;
bool CecEnabled;
eVideoModeAdaption VideoModeAdaption;
} tHdmiConfig;
// Remote control definitions
typedef enum _eRemoteProtocol
{
remoteProtocolNone,
remoteProtocolRc5,
remoteProtocolRc6,
remoteProtocolMaxValue
} eRemoteProtocol;
} // end of namespace
#endif

View File

@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: hdffosd.c 1.17 2012/06/16 11:17:11 kls Exp $
* $Id: hdffosd.c 1.18 2012/11/15 09:20:24 kls Exp $
*/
#include "hdffosd.h"
@@ -390,11 +390,13 @@ void cHdffOsd::DrawText(int x, int y, const char *s, tColor ColorFg, tColor Colo
}
}
}
#if 0
if (mSupportsUtf8Text)
{
mHdffCmdIf->CmdOsdDrawUtf8Text(mDisplay, pFont->Handle, x + mLeft, y + mTop + h, s, ColorFg);
}
else
#endif
{
uint16_t tmp[1000];
uint16_t len = 0;

View File

@@ -24,6 +24,18 @@ CFLAGS ?= -g -O2 -fPIC -Wall
AR ?= ar
ARFLAGS ?= r
### The directory environment:
VDRDIR ?= ../../../..
### Make sure that necessary options are included:
include $(VDRDIR)/Make.global
### Allow user defined options to overwrite defaults:
-include $(VDRDIR)/Make.config
### Implicit rules:
%.o: %.c

View File

@@ -449,3 +449,22 @@ int HdffCmdAvSetAudioChannel(int OsdDevice, uint8_t AudioChannel)
osd_cmd.cmd_len = HdffCmdSetLength(&cmdBuf);
return ioctl(OsdDevice, OSD_RAW_CMD, &osd_cmd);
}
int HdffCmdAvSetSyncShift(int OsdDevice, int16_t SyncShift)
{
uint8_t cmdData[16];
BitBuffer_t cmdBuf;
osd_raw_cmd_t osd_cmd;
BitBuffer_Init(&cmdBuf, cmdData, sizeof(cmdData));
memset(&osd_cmd, 0, sizeof(osd_raw_cmd_t));
osd_cmd.cmd_data = cmdData;
HdffCmdBuildHeader(&cmdBuf, HDFF_MSG_TYPE_COMMAND,
HDFF_MSG_GROUP_AV_DECODER,
HDFF_MSG_AV_SET_OPTIONS);
BitBuffer_SetBits(&cmdBuf, 1, 1);
BitBuffer_SetBits(&cmdBuf, 31, 0); // reserved
BitBuffer_SetBits(&cmdBuf, 16, SyncShift);
osd_cmd.cmd_len = HdffCmdSetLength(&cmdBuf);
return ioctl(OsdDevice, OSD_RAW_CMD, &osd_cmd);
}

View File

@@ -149,4 +149,6 @@ int HdffCmdAvSetAudioDownmix(int OsdDevice,
int HdffCmdAvSetAudioChannel(int OsdDevice, uint8_t AudioChannel);
int HdffCmdAvSetSyncShift(int OsdDevice, int16_t SyncShift);
#endif /* HDFFCMD_AV_H */

View File

@@ -70,6 +70,7 @@ typedef enum HdffMessageId_t
HDFF_MSG_AV_SET_AUDIO_DOWNMIX,
HDFF_MSG_AV_SET_AUDIO_CHANNEL,
HDFF_MSG_AV_SET_PLAY_MODE,
HDFF_MSG_AV_SET_OPTIONS,
HDFF_MSG_MUX_SET_VIDEO_OUT = 0,
HDFF_MSG_MUX_SET_SLOW_BLANK,

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR \n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2012-02-07 20:13+0100\n"
"POT-Creation-Date: 2012-11-13 20:08+0100\n"
"PO-Revision-Date: 2011-04-25 21:44+0200\n"
"Last-Translator: Christoph Haubrich\n"
"Language-Team: <see README>\n"
@@ -91,6 +91,9 @@ msgstr "Audio Verzögerung (ms)"
msgid "Audio Downmix"
msgstr "Audio Downmix"
msgid "A/V Sync Shift (ms)"
msgstr "A/V-Sync Verschiebung (ms)"
msgid "OSD Size"
msgstr "OSD Größe"

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR \n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2012-02-07 20:13+0100\n"
"POT-Creation-Date: 2012-11-13 20:08+0100\n"
"PO-Revision-Date: 2011-04-25 21:44+0200\n"
"Last-Translator: Rolf Ahrenberg\n"
"Language-Team: Finnish <vdr@linuxtv.org>\n"
@@ -91,6 +91,9 @@ msgstr "Äänen viive (ms)"
msgid "Audio Downmix"
msgstr "Äänen alasmiksaus"
msgid "A/V Sync Shift (ms)"
msgstr ""
msgid "OSD Size"
msgstr "Kuvaruutunäytön koko"

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR\n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2012-02-07 20:13+0100\n"
"POT-Creation-Date: 2012-11-13 20:08+0100\n"
"PO-Revision-Date: 2011-07-10 00:23+0100\n"
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
"Language-Team: <see README>\n"
@@ -94,6 +94,9 @@ msgstr "Ritardo audio (ms)"
msgid "Audio Downmix"
msgstr "Scala Audio"
msgid "A/V Sync Shift (ms)"
msgstr ""
msgid "OSD Size"
msgstr "Dimensione OSD"

View File

@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: setup.c 1.17 2012/02/08 15:14:01 kls Exp $
* $Id: setup.c 1.18 2012/11/15 09:20:50 kls Exp $
*/
#include "setup.h"
@@ -26,6 +26,7 @@ cHdffSetup::cHdffSetup(void)
AnalogueVideo = HDFF_VIDEO_OUT_CVBS_YUV;
AudioDelay = 0;
AudioDownmix = HDFF_AUDIO_DOWNMIX_AUTOMATIC;
AvSyncShift = 0;
OsdSize = 0;
CecEnabled = 1;
CecTvOn = 1;
@@ -46,6 +47,7 @@ bool cHdffSetup::SetupParse(const char *Name, const char *Value)
else if (strcmp(Name, "AnalogueVideo") == 0) AnalogueVideo = atoi(Value);
else if (strcmp(Name, "AudioDelay") == 0) AudioDelay = atoi(Value);
else if (strcmp(Name, "AudioDownmix") == 0) AudioDownmix = atoi(Value);
else if (strcmp(Name, "AvSyncShift") == 0) AvSyncShift = atoi(Value);
else if (strcmp(Name, "OsdSize") == 0) OsdSize = atoi(Value);
else if (strcmp(Name, "CecEnabled") == 0) CecEnabled = atoi(Value);
else if (strcmp(Name, "CecTvOn") == 0) CecTvOn = atoi(Value);
@@ -256,6 +258,7 @@ cHdffSetupPage::cHdffSetupPage(HDFF::cHdffCmdIf * pHdffCmdIf)
Add(new cMenuEditStraItem(tr("Analogue Video"), &mNewHdffSetup.AnalogueVideo, kAnalogueVideos, AnalogueVideoItems));
Add(new cMenuEditIntItem(tr("Audio Delay (ms)"), &mNewHdffSetup.AudioDelay, 0, 500));
Add(new cMenuEditStraItem(tr("Audio Downmix"), &mNewHdffSetup.AudioDownmix, kAudioDownmixes, AudioDownmixItems));
Add(new cMenuEditIntItem(tr("A/V Sync Shift (ms)"), &mNewHdffSetup.AvSyncShift, -500, 500));
Add(new cMenuEditStraItem(tr("OSD Size"), &mNewHdffSetup.OsdSize, kOsdSizes, OsdSizeItems));
Add(new cMenuEditBoolItem(tr("HDMI CEC"), &mNewHdffSetup.CecEnabled));
Add(new cMenuEditBoolItem(tr("CEC: Switch TV on"), &mNewHdffSetup.CecTvOn));
@@ -385,6 +388,7 @@ void cHdffSetupPage::Store(void)
SetupStore("AnalogueVideo", mNewHdffSetup.AnalogueVideo);
SetupStore("AudioDelay", mNewHdffSetup.AudioDelay);
SetupStore("AudioDownmix", mNewHdffSetup.AudioDownmix);
SetupStore("AvSyncShift", mNewHdffSetup.AvSyncShift);
SetupStore("OsdSize", mNewHdffSetup.OsdSize);
SetupStore("CecEnabled", mNewHdffSetup.CecEnabled);
SetupStore("CecTvOn", mNewHdffSetup.CecTvOn);
@@ -412,6 +416,7 @@ void cHdffSetupPage::Store(void)
mHdffCmdIf->CmdAvSetAudioDelay(mNewHdffSetup.AudioDelay);
mHdffCmdIf->CmdAvSetAudioDownmix((HdffAudioDownmixMode_t) mNewHdffSetup.AudioDownmix);
mHdffCmdIf->CmdAvSetSyncShift(mNewHdffSetup.AvSyncShift);
mHdffCmdIf->CmdMuxSetVideoOut((HdffVideoOut_t) mNewHdffSetup.AnalogueVideo);

View File

@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: setup.h 1.12 2012/02/08 15:14:56 kls Exp $
* $Id: setup.h 1.13 2012/11/15 09:21:07 kls Exp $
*/
#ifndef _HDFF_SETUP_H_
@@ -28,6 +28,7 @@ struct cHdffSetup
int AnalogueVideo;
int AudioDelay;
int AudioDownmix;
int AvSyncShift;
int OsdSize;
int CecEnabled;
int CecTvOn;