diff options
author | phintuka <phintuka> | 2008-07-20 10:54:32 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-07-20 10:54:32 +0000 |
commit | 290de806e10b1d1f5f89dd97e0b47c7bae5e0a93 (patch) | |
tree | 1fd1bab9886567d41ebbb0998990573c92982916 /config.c | |
parent | 67c8d5d4c3c1db2c986412c68b868adbad4f5f15 (diff) | |
download | xineliboutput-290de806e10b1d1f5f89dd97e0b47c7bae5e0a93.tar.gz xineliboutput-290de806e10b1d1f5f89dd97e0b47c7bae5e0a93.tar.bz2 |
Config entries for video decoder selection
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.c,v 1.67 2008-07-20 10:44:02 phintuka Exp $ + * $Id: config.c,v 1.68 2008-07-20 10:54:32 phintuka Exp $ * */ @@ -234,6 +234,20 @@ const char * const config_t::s_osdScalings[] = { NULL }; +const char * const config_t::s_decoders_MPEG2[] = { + trNOOP("automatic"), + "libmpeg2", + "FFmpeg", + NULL +}; + +const char * const config_t::s_decoders_H264[] = { + trNOOP("automatic"), + "FFmpeg", + "CoreAVC", + NULL +}; + static const char exts_playlist[][4] = { "asx", "m3u", @@ -551,6 +565,9 @@ config_t::config_t() { scr_tunning = 0; // Fine-tune xine egine SCR (to sync video to graphics output) scr_hz = 90000; // Current SCR speed (Hz), default is 90000 + decoder_mpeg2 = DECODER_MPEG2_auto; + decoder_h264 = DECODER_H264_auto; + strn0cpy(browse_files_dir, VideoDirectory, sizeof(browse_files_dir)); strn0cpy(browse_music_dir, VideoDirectory, sizeof(browse_music_dir)); strn0cpy(browse_images_dir, VideoDirectory, sizeof(browse_images_dir)); @@ -777,6 +794,8 @@ bool config_t::SetupParse(const char *Name, const char *Value) else if (!strcasecmp(Name, "Video.IBPTrickSpeed")) ibp_trickspeed = atoi(Value); else if (!strcasecmp(Name, "Video.MaxTrickSpeed")) max_trickspeed = atoi(Value); else if (!strcasecmp(Name, "Video.AspectRatio")) vo_aspect_ratio = atoi(Value); + else if (!strcasecmp(Name, "Video.Decoder.MPEG2")) decoder_mpeg2 = strstra(Value, s_decoders_MPEG2, 0); + else if (!strcasecmp(Name, "Video.Decoder.H264")) decoder_h264 = strstra(Value, s_decoders_H264, 0); else if (!strcasecmp(Name, "Post.pp.Enable")) ffmpeg_pp = atoi(Value); else if (!strcasecmp(Name, "Post.pp.Quality")) ffmpeg_pp_quality = atoi(Value); |