summaryrefslogtreecommitdiff
path: root/osdpip.c
diff options
context:
space:
mode:
authorAndreas Regel <andreas.regel@powarman.de>2004-01-28 19:11:00 +0100
committerAndreas Regel <andreas.regel@powarman.de>2004-01-28 19:11:00 +0100
commit64fe6b70d0a5b34a80ff458fbf1664018d5c0182 (patch)
tree4fe036adaf90fef0d0dc910b84dbc11269e40008 /osdpip.c
parent310f5b2a62343d0c9b7624c09efe35828785ef26 (diff)
downloadvdr-plugin-osdpip-64fe6b70d0a5b34a80ff458fbf1664018d5c0182.tar.gz
vdr-plugin-osdpip-64fe6b70d0a5b34a80ff458fbf1664018d5c0182.tar.bz2
Release version 0.0.3v0.0.3
- new TS->ES remuxer: now using VDR's cRemux for TS->PES and some own code for PES->ES - now using libavcodec from ffmpeg instead of mpeg2dec - frames to decode configurable (I-frames, I-/P-frames, all frames) - frame dropping configurable - added new color depths: - 128 shades greyscale - 128 colors with variable palette using Wu's quantizer (patch needed) - changed osd size setting to 6 configurable values
Diffstat (limited to 'osdpip.c')
-rw-r--r--osdpip.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/osdpip.c b/osdpip.c
index 7507777..59abe13 100644
--- a/osdpip.c
+++ b/osdpip.c
@@ -1,18 +1,25 @@
/*
- * osdpip.c: A plugin for the Video Disk Recorder
+ * OSD Picture in Picture plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
- *
- * $Id$
*/
+extern "C"
+{
+#ifdef HAVE_FFMPEG_STATIC
+# include <avcodec.h>
+#else
+# include <ffmpeg/avcodec.h>
+#endif
+}
+
#include "osd.h"
#include "config.h"
#include "i18n.h"
#include <vdr/plugin.h>
-static const char *VERSION = "0.0.2";
+static const char *VERSION = "0.0.3";
static const char *DESCRIPTION = "OSD Picture-in-Picture";
static const char *MAINMENUENTRY = "Picture-in-Picture";
@@ -50,6 +57,11 @@ bool cPluginOsdpip::ProcessArgs(int argc, char *argv[]) {
}
bool cPluginOsdpip::Initialize(void) {
+ // must be called before using avcodec lib
+ avcodec_init();
+ // register all the codecs (you can also register only the codec
+ // you wish to have smaller code)
+ avcodec_register_all();
return true;
}