00001 #include "privatedecoder.h" 00002 00003 #if defined(Q_OS_MACX) 00004 #include "privatedecoder_vda.h" 00005 #endif 00006 00007 #ifdef USING_CRYSTALHD 00008 #include "privatedecoder_crystalhd.h" 00009 #endif 00010 00011 void PrivateDecoder::GetDecoders(render_opts &opts) 00012 { 00013 #if defined(Q_OS_MACX) 00014 PrivateDecoderVDA::GetDecoders(opts); 00015 #endif 00016 00017 #ifdef USING_CRYSTALHD 00018 PrivateDecoderCrystalHD::GetDecoders(opts); 00019 #endif 00020 } 00021 00022 PrivateDecoder* PrivateDecoder::Create(const QString &decoder, 00023 PlayerFlags flags, 00024 AVCodecContext *avctx) 00025 { 00026 #if defined(Q_OS_MACX) 00027 PrivateDecoderVDA *vda = new PrivateDecoderVDA(); 00028 if (vda && vda->Init(decoder, flags, avctx)) 00029 return vda; 00030 delete vda; 00031 #endif 00032 00033 #ifdef USING_CRYSTALHD 00034 PrivateDecoderCrystalHD *chd = new PrivateDecoderCrystalHD(); 00035 if (chd && chd->Init(decoder, flags, avctx)) 00036 return chd; 00037 delete chd; 00038 #endif 00039 00040 return NULL; 00041 }
1.6.3