summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorAndreas Regel <andreas.regel@powarman.de>2004-07-31 23:55:00 +0200
committerAndreas Regel <andreas.regel@powarman.de>2004-07-31 23:55:00 +0200
commitc024446839241af2fa7d618ce49cc8c1e5693f7f (patch)
tree6fe9beb2336294e030a739c4039911fb3e51d477 /decoder.c
parent1df133b2a0565a35c3b07e043bd04b449869a0cb (diff)
downloadvdr-plugin-osdpip-c024446839241af2fa7d618ce49cc8c1e5693f7f.tar.gz
vdr-plugin-osdpip-c024446839241af2fa7d618ce49cc8c1e5693f7f.tar.bz2
Release version 0.0.6v0.0.6
- added channel swapping. It is now possible to swap the currently viewed channel with the pip channel by pressing the red key. (thanks to Sascha Volkenandt) - added support for other aspect ratios than 4:3. Image is now correctly scaled and black border is added when necessary. - added automatic frame dropping that always takes the last frame from the ringbuffer. - added -D_GNU_SOURCE to DEFINES in Makefile - fixed a memory leak: missing deletion of frame ringbuffer - fixed a memory leak: missing frame deletion in case of a full ringbuffer - small speedup through just putting relevant frames to ringbuffer - updated finnish translations (thanks to Rolf Ahrenberg)
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/decoder.c b/decoder.c
index eaa3160..08e5f53 100644
--- a/decoder.c
+++ b/decoder.c
@@ -8,7 +8,7 @@
#include <stdlib.h>
#include "decoder.h"
-#include "config.h"
+#include "setup.h"
int cDecoder::Open()
@@ -98,3 +98,9 @@ int cDecoder::ConvertToRGB()
return 0;
}
+double cDecoder::AspectRatio()
+{
+ //printf("%d %d %f\n", m_Context->width, m_Context->height, m_Context->aspect_ratio);
+ return m_Context->aspect_ratio;
+}
+