void FFMPEGV_Real_Init() { nodedef Def; const codecinfo* i; avcodec_init(); /* video codecs */ REGISTER_DECODER (RV10, rv10); REGISTER_DECODER (RV20, rv20); REGISTER_DECODER (RV30, rv30); REGISTER_DECODER (RV40, rv40); NodeRegisterClass(&FFMPEGRealVideo); memset(&Def,0,sizeof(Def)); for (i=Info;i->Id;++i) { StringAdd(1,i->Id,NODE_NAME,i->Name); StringAdd(1,i->Id,NODE_CONTENTTYPE,i->ContentType); Def.Class = i->Id; Def.ParentClass = FFMPEG_VIDEO_REAL_CLASS; Def.Priority = PRI_DEFAULT-10; // do not override ARM optimized codecs by default Def.Flags = 0; // parent size NodeRegisterClass(&Def); } }
void RawAudio_Init() { NodeRegisterClass(&RawAudio); }
void M3U_Init() { NodeRegisterClass(&M3U); }
void Equalizer_Init() { NodeRegisterClass(&Equalizer); }
void Audio_Init() { NodeRegisterClass(&AOut); }
void FFMPEGV_Init() { nodedef Def; const codecinfo* i; avcodec_init(); /* video codecs */ REGISTER_DECODER (FLV, flv); REGISTER_DECODER (AVS, avs); REGISTER_DECODER (CAVS, cavs); REGISTER_DECODER (CINEPAK, cinepak); REGISTER_DECODER (H261, h261); REGISTER_DECODER (H263, h263); REGISTER_DECODER (H263I, h263i); REGISTER_DECODER (H264, h264); REGISTER_DECODER (INDEO2, indeo2); REGISTER_DECODER (INDEO3, indeo3); REGISTER_DECODER (MPEG2VIDEO, mpeg2video); REGISTER_DECODER (MPEG4, mpeg4); REGISTER_DECODER (MSMPEG4V1, msmpeg4v1); REGISTER_DECODER (MSMPEG4V2, msmpeg4v2); REGISTER_DECODER (MSMPEG4V3, msmpeg4v3); REGISTER_DECODER (MSRLE, msrle); REGISTER_DECODER (MSVIDEO1, msvideo1); REGISTER_DECODER (RV10, rv10); REGISTER_DECODER (RV20, rv20); REGISTER_DECODER (RV30, rv30); REGISTER_DECODER (RV40, rv40); //REGISTER_DECODER (sp5x); REGISTER_DECODER (SVQ1, svq1); REGISTER_DECODER (SVQ3, svq3); REGISTER_DECODER (THEORA, theora); REGISTER_DECODER (VC1, vc1); REGISTER_DECODER (VP3, vp3); REGISTER_DECODER (VP5, vp5); REGISTER_DECODER (VP6, vp6); REGISTER_DECODER (VP6A, vp6a); REGISTER_DECODER (VP6F, vp6f); REGISTER_DECODER (VP8, vp8); REGISTER_DECODER (WMV1, wmv1); REGISTER_DECODER (WMV2, wmv2); REGISTER_DECODER (WMV3, wmv3); REGISTER_DECODER (TSCC, tscc); /* register_avcodec(&flv_decoder); register_avcodec(&mpeg1video_decoder); register_avcodec(&mpeg2video_decoder); register_avcodec(&mpegvideo_decoder); // register_avcodec(&svq1_decoder); register_avcodec(&svq3_decoder); register_avcodec(&h263_decoder); register_avcodec(&mpeg4_decoder); register_avcodec(&msmpeg4v1_decoder); register_avcodec(&msmpeg4v2_decoder); register_avcodec(&msmpeg4v3_decoder); register_avcodec(&wmv1_decoder); register_avcodec(&wmv2_decoder); // register_avcodec(&wmv3_decoder); register_avcodec(&h264_decoder); register_avcodec(&cinepak_decoder); register_avcodec(&msvideo1_decoder); register_avcodec(&tscc_decoder); */ NodeRegisterClass(&FFMPEGVideo); memset(&Def,0,sizeof(Def)); for (i=Info;i->Id;++i) { StringAdd(1,i->Id,NODE_NAME,i->Name); StringAdd(1,i->Id,NODE_CONTENTTYPE,i->ContentType); Def.Class = i->Id; Def.ParentClass = FFMPEG_VIDEO_CLASS; Def.Priority = PRI_DEFAULT-10; // do not override ARM optimized codecs by default Def.Flags = 0; // parent size if ((i->CodecId == CODEC_ID_WMV1 && QueryPlatform(PLATFORM_WMPVERSION)!=10) || //WMP10 RGB only output -> prefer ffmpeg i->CodecId == CODEC_ID_WMV2 || i->CodecId == CODEC_ID_WMV3) Def.Priority -= 100; // prefer DMO, WMV2 J-frames are not supported by ffmpeg, WMMX support by MS codecs are faster NodeRegisterClass(&Def); } NodeRegisterClass(&WMVF); }
void NullOutput_Init() { NodeRegisterClass(&NullVideo); NodeRegisterClass(&NullAudio); }
void RawImage_Init() { NodeRegisterClass(&RawImage); }
void OverlayFlyTV_Init() { NodeRegisterClass(&FlyTV); }
void MikModClass_Init() { MikMod_Init(NULL); MikMod_RegisterAllLoaders(); NodeRegisterClass(&MikMod); }
void Advanced_Init() { NodeRegisterClass(&Advanced); Context()->Advanced = NodeEnumObject(NULL,ADVANCED_ID); }
void TTA_Init() { NodeRegisterClass(&TTA); }
void ASAP_Init() { NodeRegisterClass(&ASAPDef); }
void Audio_Init() { StringAdd(1,AUDIO_TEMPLATE_ID,NODE_NAME,T("Audio template codec")); StringAdd(1,AUDIO_TEMPLATE_ID,NODE_CONTENTTYPE,T("acodec/0x0055")); NodeRegisterClass(&Template); }
void Playlist_Init() { NodeRegisterClass(&Playlist); }
void AMRWB_Init() { NodeRegisterClass(&AMRWB); NodeRegisterClass(&AMRWBFile); }
void BenchResult_Init() { NodeRegisterClass(&BenchResult); }
void APE_Init() { NodeRegisterClass(&APE); }
void Settings_Init() { NodeRegisterClass(&Settings); }
void IDCT_Init() { NodeRegisterClass(&IDCT); NodeRegisterClass(&CodecIDCT); }
void Timer_Init() { NodeRegisterClass(&Timer); NodeRegisterClass(&SysTimer); }
void MediaInfo_Init() { NodeRegisterClass(&MediaInfo); }
void Codec_Init() { NodeRegisterClass(&Codec); }
void PLS_Init() { NodeRegisterClass(&PLS); }