MythTV  master
privatedecoder.cpp
Go to the documentation of this file.
1 #include "privatedecoder.h"
2 
3 #if defined(Q_OS_MACX)
4 #include "privatedecoder_vda.h"
5 #endif
6 
7 #ifdef USING_OPENMAX
8 #include "privatedecoder_omx.h"
9 #endif
10 
11 #ifdef USING_CRYSTALHD
13 #endif
14 
16 {
17 #if defined(Q_OS_MACX)
19 #endif
20 
21 #ifdef USING_OPENMAX
23 #endif
24 
25 #ifdef USING_CRYSTALHD
27 #endif
28 
29 #if !(defined(Q_OS_MACX) || USING_OPENMAX || USING_CRYSTALHD)
30  Q_UNUSED(opts);
31 #endif
32 }
33 
34 PrivateDecoder* PrivateDecoder::Create(const QString &decoder,
35  PlayerFlags flags,
36  AVCodecContext *avctx)
37 {
38 #if defined(Q_OS_MACX)
40  if (vda && vda->Init(decoder, flags, avctx))
41  return vda;
42  delete vda;
43 #endif
44 
45 #ifdef USING_OPENMAX
47  if (omx && omx->Init(decoder, flags, avctx))
48  return omx;
49  delete omx;
50 #endif
51 
52 #ifdef USING_CRYSTALHD
54  if (chd && chd->Init(decoder, flags, avctx))
55  return chd;
56  delete chd;
57 #endif
58 
59 #if !(defined(Q_OS_MACX) || USING_OPENMAX || USING_CRYSTALHD)
60  Q_UNUSED(decoder);
61  Q_UNUSED(flags);
62  Q_UNUSED(avctx);
63 #endif
64 
65  return nullptr;
66 }
bool Init(const QString &decoder, PlayerFlags flags, AVCodecContext *avctx) override
PlayerFlags
Definition: mythplayer.h:88
static void GetDecoders(render_opts &opts)
static PrivateDecoder * Create(const QString &decoder, PlayerFlags flags, AVCodecContext *avctx)
bool Init(const QString &decoder, PlayerFlags flags, AVCodecContext *avctx) override
static void GetDecoders(render_opts &opts)
static void GetDecoders(render_opts &opts)
static void GetDecoders(render_opts &opts)
bool Init(const QString &decoder, PlayerFlags flags, AVCodecContext *avctx) override