diff options
author | Johns <johns98@gmx.net> | 2012-01-08 21:46:00 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-01-08 21:46:00 +0100 |
commit | f6df79e8e64632314c72d85c2410141ab68bff1e (patch) | |
tree | 145e90a504d60f50e7e3b17c15b60096e235f2cb /softhddevice.cpp | |
parent | f1551cd321bdadc69f95a450f2934ad71d3d4a8c (diff) | |
download | vdr-plugin-softhddevice-f6df79e8e64632314c72d85c2410141ab68bff1e.tar.gz vdr-plugin-softhddevice-f6df79e8e64632314c72d85c2410141ab68bff1e.tar.bz2 |
Improved replay of recordings.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 46 |
1 files changed, 35 insertions, 11 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index 19f2c9f..5b94383 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -499,9 +499,14 @@ int64_t cSoftHdDevice::GetSTC(void) return::VideoGetClock(); } -void cSoftHdDevice::TrickSpeed(int Speed) +/** +** Set trick play speed. +** +** @param speed trick speed +*/ +void cSoftHdDevice::TrickSpeed(int speed) { - dsyslog("[softhddev]%s: %d\n", __FUNCTION__, Speed); + dsyslog("[softhddev]%s: %d\n", __FUNCTION__, speed); } void cSoftHdDevice::Clear(void) @@ -533,24 +538,37 @@ void cSoftHdDevice::Mute(void) dsyslog("[softhddev]%s:\n", __FUNCTION__); cDevice::Mute(); - ::Mute(); } void cSoftHdDevice::SetVolumeDevice(int volume) { - //dsyslog("[softhddev]%s: %d\n", __FUNCTION__, volume); + dsyslog("[softhddev]%s: %d\n", __FUNCTION__, volume); ::SetVolumeDevice(volume); } -void cSoftHdDevice::StillPicture( - __attribute__ ((unused)) const uchar * data, __attribute__ ((unused)) - int length) +/** +** Display the given I-frame as a still picture. +*/ +void cSoftHdDevice::StillPicture(const uchar * data, int length) { dsyslog("[softhddev]%s:\n", __FUNCTION__); + + if ( data[0] == 0x47 ) { // ts sync + cDevice::StillPicture(data, length); + return; + } + + ::StillPicture(data, length); } +/** +** Check if the device is ready for further action. +** +** @param poller file handles (unused) +** @param timeout_ms timeout in ms to become ready +*/ bool cSoftHdDevice::Poll( __attribute__ ((unused)) cPoller & poller, int timeout_ms) { @@ -559,11 +577,16 @@ bool cSoftHdDevice::Poll( return::Poll(timeout_ms); } +/** +** Flush the device output buffers. +** +** @param timeout_ms timeout in ms to become ready +*/ bool cSoftHdDevice::Flush(int timeout_ms) { dsyslog("[softhddev]%s: %d ms\n", __FUNCTION__, timeout_ms); - return true; + return::Flush(timeout_ms); } // ---------------------------------------------------------------------------- @@ -580,13 +603,14 @@ void cSoftHdDevice::GetOsdSize(int &width, int &height, double &pixel_aspect) // ---------------------------------------------------------------------------- +/** +** Play a audio packet. +*/ int cSoftHdDevice::PlayAudio(const uchar * data, int length, uchar id) { //dsyslog("[softhddev]%s: %p %p %d %d\n", __FUNCTION__, this, data, length, id); - ::PlayAudio(data, length, id); - - return length; + return::PlayAudio(data, length, id); } void cSoftHdDevice::SetAudioTrackDevice( |