mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Cleanups and Codec..Del.. prototypes.
This commit is contained in:
parent
970493fb23
commit
98d2e0f728
@ -1,10 +1,13 @@
|
|||||||
|
User johns
|
||||||
|
Date:
|
||||||
|
|
||||||
User Morone
|
User Morone
|
||||||
Data: Sun Jan 22 16:43:23 CET 2012
|
Date: Sun Jan 22 16:43:23 CET 2012
|
||||||
|
|
||||||
Use different alsa devices for AC3/pass-through and pcm.
|
Use different alsa devices for AC3/pass-through and pcm.
|
||||||
|
|
||||||
User johns
|
User johns
|
||||||
Data: Sun Jan 22 11:12:57 CET 2012
|
Date: Sun Jan 22 11:12:57 CET 2012
|
||||||
|
|
||||||
Add dummy player and control for suspend mode.
|
Add dummy player and control for suspend mode.
|
||||||
Buffertime compile time configurable in ms.
|
Buffertime compile time configurable in ms.
|
||||||
|
4
Todo
4
Todo
@ -31,11 +31,13 @@ video:
|
|||||||
subtitle not cleared
|
subtitle not cleared
|
||||||
subtitle could be asyncron
|
subtitle could be asyncron
|
||||||
reduce warnings after channel switch
|
reduce warnings after channel switch
|
||||||
|
grab image with scaling support
|
||||||
|
suspendoutput didn't show logo or black pictures
|
||||||
|
(must detect video format to show image)
|
||||||
|
|
||||||
vdpau:
|
vdpau:
|
||||||
VdpPreemptionCallback handling (under construction)
|
VdpPreemptionCallback handling (under construction)
|
||||||
hard channel switch
|
hard channel switch
|
||||||
suspendoutput didn't show logo or black picture.
|
|
||||||
|
|
||||||
libva:
|
libva:
|
||||||
hard channel switch
|
hard channel switch
|
||||||
|
6
codec.h
6
codec.h
@ -40,6 +40,9 @@ typedef struct _audio_decoder_ AudioDecoder;
|
|||||||
/// Allocate a new video decoder context.
|
/// Allocate a new video decoder context.
|
||||||
extern VideoDecoder *CodecVideoNewDecoder(VideoHwDecoder *);
|
extern VideoDecoder *CodecVideoNewDecoder(VideoHwDecoder *);
|
||||||
|
|
||||||
|
/// Deallocate a video decoder context.
|
||||||
|
extern void CodecVideoDelDecoder(VideoDecoder *);
|
||||||
|
|
||||||
/// Open video codec.
|
/// Open video codec.
|
||||||
extern void CodecVideoOpen(VideoDecoder *, const char *, int);
|
extern void CodecVideoOpen(VideoDecoder *, const char *, int);
|
||||||
|
|
||||||
@ -55,6 +58,9 @@ extern void CodecVideoFlushBuffers(VideoDecoder *);
|
|||||||
/// Allocate a new audio decoder context.
|
/// Allocate a new audio decoder context.
|
||||||
extern AudioDecoder *CodecAudioNewDecoder(void);
|
extern AudioDecoder *CodecAudioNewDecoder(void);
|
||||||
|
|
||||||
|
/// Deallocate an audio decoder context.
|
||||||
|
extern void CodecAudioDelDecoder(AudioDecoder *);
|
||||||
|
|
||||||
/// Open audio codec.
|
/// Open audio codec.
|
||||||
extern void CodecAudioOpen(AudioDecoder *, const char *, int);
|
extern void CodecAudioOpen(AudioDecoder *, const char *, int);
|
||||||
|
|
||||||
|
@ -1074,13 +1074,14 @@ const char *cPluginSoftHdDevice::MainMenuEntry(void)
|
|||||||
*/
|
*/
|
||||||
cOsdObject *cPluginSoftHdDevice::MainMenuAction(void)
|
cOsdObject *cPluginSoftHdDevice::MainMenuAction(void)
|
||||||
{
|
{
|
||||||
dsyslog("[softhddev]%s:\n", __FUNCTION__);
|
//dsyslog("[softhddev]%s:\n", __FUNCTION__);
|
||||||
|
|
||||||
//MyDevice->StopReplay();
|
//MyDevice->StopReplay();
|
||||||
cControl::Launch(new cSoftHdControl);
|
cControl::Launch(new cSoftHdControl);
|
||||||
cControl::Attach();
|
cControl::Attach();
|
||||||
Suspend();
|
Suspend();
|
||||||
if (ShutdownHandler.GetUserInactiveTime()) {
|
if (ShutdownHandler.GetUserInactiveTime()) {
|
||||||
|
dsyslog("[softhddev]%s: set user inactive\n", __FUNCTION__);
|
||||||
ShutdownHandler.SetUserInactive();
|
ShutdownHandler.SetUserInactive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
video.c
3
video.c
@ -5331,6 +5331,9 @@ static uint8_t *VdpauGrabOutputSurface(int *ret_size, int *ret_width,
|
|||||||
Debug(3, "video/vdpau: grab %dx%d format %d\n", width, height,
|
Debug(3, "video/vdpau: grab %dx%d format %d\n", width, height,
|
||||||
rgba_format);
|
rgba_format);
|
||||||
|
|
||||||
|
// FIXME: scale surface to requested size with
|
||||||
|
// VdpauOutputSurfaceRenderOutputSurface
|
||||||
|
|
||||||
switch (rgba_format) {
|
switch (rgba_format) {
|
||||||
case VDP_RGBA_FORMAT_B8G8R8A8:
|
case VDP_RGBA_FORMAT_B8G8R8A8:
|
||||||
case VDP_RGBA_FORMAT_R8G8B8A8:
|
case VDP_RGBA_FORMAT_R8G8B8A8:
|
||||||
|
Loading…
Reference in New Issue
Block a user