summaryrefslogtreecommitdiff
path: root/dxr3ffmpeg.c
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2004-09-13 16:23:16 +0000
committeraustriancoder <austriancoder>2004-09-13 16:23:16 +0000
commit05bc5bd2466f42a18fe467ee611f0a2e42bade39 (patch)
treec330021f2c5bc1b9d15c8d8dd8b13a6fa7ed29a5 /dxr3ffmpeg.c
parent433938312aba894f3487064387a59336f0e76acc (diff)
downloadvdr-plugin-dxr3-05bc5bd2466f42a18fe467ee611f0a2e42bade39.tar.gz
vdr-plugin-dxr3-05bc5bd2466f42a18fe467ee611f0a2e42bade39.tar.bz2
added and converted comments into a doxygen friendly format
Diffstat (limited to 'dxr3ffmpeg.c')
-rw-r--r--dxr3ffmpeg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dxr3ffmpeg.c b/dxr3ffmpeg.c
index 286b2f3..dabd793 100644
--- a/dxr3ffmpeg.c
+++ b/dxr3ffmpeg.c
@@ -20,11 +20,11 @@
*/
#include "dxr3ffmpeg.h"
-
#include "dxr3configdata.h"
#include "dxr3log.h"
// ==================================
+//! constructor
cDxr3Ffmepg::cDxr3Ffmepg()
{
avcodec_init();
@@ -32,6 +32,7 @@ cDxr3Ffmepg::cDxr3Ffmepg()
}
// ==================================
+//! look if Codec is supported by ffmpeg
bool cDxr3Ffmepg::FindCodec(struct Dxr3Codec& Codec)
{
// find codec
@@ -39,6 +40,7 @@ bool cDxr3Ffmepg::FindCodec(struct Dxr3Codec& Codec)
if (!Codec.codec)
{
+ // codec is't supported by ffmpeg
if (cDxr3ConfigData::Instance().GetDebug())
{
cLog::Instance() << "cDxr3Ffmepg::OpenCodec(struct Dxr3Codec& Codec) codec not found (" << Codec.id << ")\n";
@@ -53,6 +55,7 @@ bool cDxr3Ffmepg::FindCodec(struct Dxr3Codec& Codec)
}
// ==================================
+//! try to open Codec
bool cDxr3Ffmepg::OpenCodec(struct Dxr3Codec& Codec)
{
// try to open codec
@@ -60,6 +63,7 @@ bool cDxr3Ffmepg::OpenCodec(struct Dxr3Codec& Codec)
if (result < 0)
{
+ // we could not open codec
if (cDxr3ConfigData::Instance().GetDebug())
{
cLog::Instance() << "cDxr3Ffmepg::OpenCodec(struct Dxr3Codec& Codec) coudnt open codec (" << Codec.id << ")\n";
@@ -75,6 +79,7 @@ bool cDxr3Ffmepg::OpenCodec(struct Dxr3Codec& Codec)
}
// ==================================
+// close codec
void cDxr3Ffmepg::CloseCodec(struct Dxr3Codec& Codec)
{
if (Codec.Open)