Changeset f5c5a773147fccc0255acabd50961e042ade393f

Show
Ignore:
Timestamp:
03/31/06 00:58:23 (2 years ago)
Author:
Christophe Mutricy <xtophe@videolan.org>
git-committer:
Christophe Mutricy <xtophe@videolan.org> 1143759503 +0000
git-parent:

[ea48b014dd494d61a93768090944f392a0e78c2b]

git-author:
Christophe Mutricy <xtophe@videolan.org> 1143759503 +0000
Message:

String review in codec. 1st part. ffmpeg.h to be improve. refs #438

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/codec/Modules.am

    r369ccbe rf5c5a77  
    1414SOURCES_mpeg_audio = mpeg_audio.c 
    1515SOURCES_libmpeg2 = libmpeg2.c 
     16SOURCES_libvc1 = libvc1.c 
    1617SOURCES_rawvideo = rawvideo.c 
    1718SOURCES_quicktime = quicktime.c 
  • modules/codec/adpcm.c

    r150509e rf5c5a77  
    148148        p_dec->fmt_in.audio.i_channels > 5 ) 
    149149    { 
    150         msg_Err( p_dec, "bad channels count(1-5)" ); 
     150        msg_Err( p_dec, "invalid number of channel (not between 1 and 5): %i",  
     151                 p_dec->fmt_in.audio.i_channels ); 
    151152        return VLC_EGENERIC; 
    152153    } 
     
    237238    } 
    238239 
    239     msg_Dbg( p_dec, "format: samplerate:%dHz channels:%d bits/sample:%d " 
     240    msg_Dbg( p_dec, "format: samplerate:%d Hz channels:%d bits/sample:%d " 
    240241             "blockalign:%d samplesperblock:%d", 
    241242             p_dec->fmt_in.audio.i_rate, p_dec->fmt_in.audio.i_channels, 
  • modules/codec/araw.c

    r2cb472d rf5c5a77  
    205205        p_dec->fmt_in.audio.i_channels > 8 ) 
    206206    { 
    207         msg_Err( p_dec, "bad channels count (1-8)" ); 
     207        msg_Err( p_dec, "bad channels count (1-8): %i", 
     208                 p_dec->fmt_in.audio.i_channels ); 
    208209        return VLC_EGENERIC; 
    209210    } 
  • modules/codec/cmml/cmml.c

    ra1e597b rf5c5a77  
    9999 
    100100#ifdef CMML_DEBUG 
    101     msg_Dbg( p_dec, "I am at %p", p_dec ); 
     101    msg_Dbg( p_dec, "i am at %p", p_dec ); 
    102102#endif 
    103103 
  • modules/codec/dirac.c

    r2cb472d rf5c5a77  
    6666#define ENC_QUALITY_TEXT N_("Encoding quality") 
    6767#define ENC_QUALITY_LONGTEXT N_( \ 
    68   "Allows you to specify a quality between 1.0 (low) and 10.0 (high)." ) 
     68  "Quality of the encoding between 1.0 (low) and 10.0 (high)." ) 
    6969 
    7070vlc_module_begin(); 
  • modules/codec/dvbsub.c

    r22f2830 rf5c5a77  
    44 ***************************************************************************** 
    55 * Copyright (C) 2003 ANEVIA 
    6  * Copyright (C) 2003-2005 VideoLAN (Centrale Réseaux) and its contributors 
     6 * Copyright (C) 2003-2005 the VideoLAN team 
    77 * $Id$ 
    88 * 
     
    5353  "You can enforce the subpicture position on the video " \ 
    5454  "(0=center, 1=left, 2=right, 4=top, 8=bottom, you can " \ 
    55   "also use combinations of these values).") 
     55  "also use combinations of these values (e.g. 6=top-right)).") 
    5656 
    5757#define ENC_POSX_TEXT N_("X coordinate of the encoded subpicture") 
     
    103103    add_integer( ENC_CFG_PREFIX "x", -1, NULL, ENC_POSX_TEXT, ENC_POSX_LONGTEXT, VLC_FALSE ); 
    104104    add_integer( ENC_CFG_PREFIX "y", -1, NULL, ENC_POSY_TEXT, ENC_POSY_LONGTEXT, VLC_FALSE ); 
    105     add_integer( ENC_CFG_PREFIX "timeout", 15, NULL, TIMEOUT_TEXT, TIMEOUT_LONGTEXT, VLC_FALSE );     
     105    add_integer( ENC_CFG_PREFIX "timeout", 15, NULL, TIMEOUT_TEXT, TIMEOUT_LONGTEXT, VLC_FALSE ); 
    106106vlc_module_end(); 
    107107 
     
    923923    if( i_coding_method > 1 ) 
    924924    { 
    925         msg_Dbg( p_dec, "Unknown DVB subtitling coding %d is not handled!", i_coding_method ); 
     925        msg_Dbg( p_dec, "unknown DVB subtitling coding %d is not handled!", i_coding_method ); 
    926926        bs_skip( s, 8 * (i_segment_length - 2) - 6 ); 
    927927        return; 
  • modules/codec/ffmpeg/ffmpeg.c

    r32438ff rf5c5a77  
    8787#if defined(MODULE_NAME_is_ffmpegaltivec) \ 
    8888     || (defined(CAN_COMPILE_ALTIVEC) && !defined(NO_ALTIVEC_IN_FFMPEG)) 
    89     set_description( _("AltiVec ffmpeg audio/video decoder/encoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); 
     89    set_description( _("AltiVec FFmpeg audio/video decoder/encoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); 
    9090    /*add_requirement( ALTIVEC );*/ 
    9191    set_capability( "decoder", 71 ); 
    9292#else 
    93     set_description( _("ffmpeg audio/video decoder/encoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); 
     93    set_description( _("FFmpeg audio/video decoder/encoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") ); 
    9494    set_capability( "decoder", 70 ); 
    9595#endif 
     
    125125    set_capability( "chroma", 50 ); 
    126126    set_callbacks( E_(OpenChroma), E_(CloseChroma) ); 
    127     set_description( _("ffmpeg chroma conversion") ); 
     127    set_description( _("FFmpeg chroma conversion") ); 
    128128 
    129129    /* encoder submodule */ 
    130130    add_submodule(); 
    131131    set_section( N_("Encoding") , NULL ); 
    132     set_description( _("ffmpeg audio/video encoder") ); 
     132    set_description( _("FFmpeg audio/video encoder") ); 
    133133    set_capability( "encoder", 100 ); 
    134134    set_callbacks( E_(OpenEncoder), E_(CloseEncoder) ); 
     
    188188    /* demux submodule */ 
    189189    add_submodule(); 
    190     set_description( _("ffmpeg demuxer" ) ); 
     190    set_description( _("FFmpeg demuxer" ) ); 
    191191    set_capability( "demux2", 2 ); 
    192192    set_callbacks( E_(OpenDemux), E_(CloseDemux) ); 
     
    196196    set_capability( "video filter2", 50 ); 
    197197    set_callbacks( E_(OpenFilter), E_(CloseFilter) ); 
    198     set_description( _("ffmpeg video filter") ); 
     198    set_description( _("FFmpeg video filter") ); 
    199199 
    200200    /* crop/padd submodule */ 
     
    202202    set_capability( "crop padd", 10 ); 
    203203    set_callbacks( E_(OpenCropPadd), E_(CloseFilter) ); 
    204     set_description( _("ffmpeg crop padd filter") ); 
     204    set_description( _("FFmpeg crop padd filter") ); 
    205205 
    206206    /* video filter submodule */ 
     
    208208    set_capability( "video filter2", 0 ); 
    209209    set_callbacks( E_(OpenDeinterlace), E_(CloseDeinterlace) ); 
    210     set_description( _("ffmpeg deinterlace video filter") ); 
     210    set_description( _("FFmpeg deinterlace video filter") ); 
    211211    add_shortcut( "ffmpeg-deinterlace" ); 
    212212 
  • modules/codec/ffmpeg/ffmpeg.h

    r32438ff rf5c5a77  
    8686 *****************************************************************************/ 
    8787#define DR_TEXT N_("Direct rendering") 
     88/* FIXME Does somebody who knows what it does, explain */ 
     89#define DR_LONGTEXT N_("Direct rendering") 
    8890 
    8991#define ERROR_TEXT N_("Error resilience") 
    9092#define ERROR_LONGTEXT N_( \ 
    91     "ffmpeg can do error resilience.\n" \ 
     93    "Ffmpeg can do error resilience.\n" \ 
    9294    "However, with a buggy encoder (such as the ISO MPEG-4 encoder from M$) " \ 
    9395    "this can produce a lot of errors.\n" \ 
     
    9698#define BUGS_TEXT N_("Workaround bugs") 
    9799#define BUGS_LONGTEXT N_( \ 
    98     "Try to fix some bugs\n" \ 
     100    "Try to fix some bugs:\n" \ 
    99101    "1  autodetect\n" \ 
    100102    "2  old msmpeg4\n" \ 
     
    103105    "16 no padding\n" \ 
    104106    "32 ac vlc\n" \ 
    105     "64 Qpel chroma") 
     107    "64 Qpel chroma.") 
    106108 
    107109#define HURRYUP_TEXT N_("Hurry up") 
    108110#define HURRYUP_LONGTEXT N_( \ 
    109     "Allow the decoder to partially decode or skip frame(s) " \ 
     111    "The decoder can partially decode or skip frame(s) " \ 
    110112    "when there is not enough time. It's useful with low CPU power " \ 
    111113    "but it can produce distorted pictures.") 
     
    135137    "this provides a big speedup." ) 
    136138 
    137 #define LIBAVCODEC_PP_TEXT N_("ffmpeg post processing filter chains") 
     139#define LIBAVCODEC_PP_TEXT N_("FFmpeg post processing filter chains") 
    138140/* FIXME (cut/past from ffmpeg */ 
    139141#define LIBAVCODEC_PP_LONGTEXT \ 
     
    178180 
    179181#define ENC_KEYINT_TEXT N_( "Ratio of key frames" ) 
    180 #define ENC_KEYINT_LONGTEXT N_( "Allows you to specify the number of frames " \ 
     182#define ENC_KEYINT_LONGTEXT N_( "Number of frames " \ 
    181183  "that will be coded for one key frame." ) 
    182184 
    183185#define ENC_BFRAMES_TEXT N_( "Ratio of B frames" ) 
    184 #define ENC_BFRAMES_LONGTEXT N_( "Allows you to specify the number of " \ 
     186#define ENC_BFRAMES_LONGTEXT N_( "Number of " \ 
    185187  "B frames that will be coded between two reference frames." ) 
    186188 
    187189#define ENC_VT_TEXT N_( "Video bitrate tolerance" ) 
    188 #define ENC_VT_LONGTEXT N_( "Allows you to specify the video bitrate " \ 
    189   "tolerance in kbit/s." ) 
     190#define ENC_VT_LONGTEXT N_( "Video bitrate tolerance in kbit/s." ) 
    190191 
    191192#define ENC_INTERLACE_TEXT N_( "Enable interlaced encoding" ) 
    192 #define ENC_INTERLACE_LONGTEXT N_( "Allows you to enable dedicated " \ 
     193#define ENC_INTERLACE_LONGTEXT N_( "Enable dedicated " \ 
    193194  "algorithms for interlaced frames." ) 
    194195 
    195196#define ENC_INTERLACE_ME_TEXT N_( "Enable interlaced motion estimation" ) 
    196 #define ENC_INTERLACE_ME_LONGTEXT N_( "Allows you to enable interlaced " \ 
     197#define ENC_INTERLACE_ME_LONGTEXT N_( "Enable interlaced " \ 
    197198  "motion estimation algorithms. It requires more CPU." ) 
    198199 
    199 #define ENC_PRE_ME_TEXT N_( "Enable pre motion estimation" ) 
    200 #define ENC_PRE_ME_LONGTEXT N_( "Allows you to enable the pre motion " \ 
    201   "estimation."
     200#define ENC_PRE_ME_TEXT N_( "Enable pre-motion estimation" ) 
     201#define ENC_PRE_ME_LONGTEXT N_( "Enable the pre-motion " \ 
     202  "estimation algorithm."
    202203 
    203204#define ENC_RC_STRICT_TEXT N_( "Enable strict rate control" ) 
    204 #define ENC_RC_STRICT_LONGTEXT N_( "Allows you to enable the strict rate " \ 
     205#define ENC_RC_STRICT_LONGTEXT N_( "Enable the strict rate " \ 
    205206  "control algorithm." ) 
    206207 
    207208#define ENC_RC_BUF_TEXT N_( "Rate control buffer size" ) 
    208 #define ENC_RC_BUF_LONGTEXT N_( "Allows you to specify the rate control " \ 
    209   "buffer size." ) 
     209#define ENC_RC_BUF_LONGTEXT N_( "Rate control " \ 
     210  "buffer size (in kbytes)." ) 
    210211 
    211212#define ENC_RC_BUF_AGGR_TEXT N_( "Rate control buffer aggressiveness" ) 
     
    214215 
    215216#define ENC_IQUANT_FACTOR_TEXT N_( "I quantization factor" ) 
    216 #define ENC_IQUANT_FACTOR_LONGTEXT N_( "Allows you to specify the "
    217   "quantization factor of I frames, compared with P frames (for instance " \ 
     217#define ENC_IQUANT_FACTOR_LONGTEXT N_(
     218  "Quantization factor of I frames, compared with P frames (for instance " \ 
    218219  "1.0 => same qscale for I and P frames)." ) 
    219220 
    220221#define ENC_NOISE_RED_TEXT N_( "Noise reduction" ) 
    221 #define ENC_NOISE_RED_LONGTEXT N_( "Allows you to enable a simple noise " \ 
     222#define ENC_NOISE_RED_LONGTEXT N_( "Enable a simple noise " \ 
    222223  "reduction algorithm to lower the encoding length and bitrate, at the " \ 
    223224  "expense of lower quality frames." ) 
     
    230231 
    231232#define ENC_HQ_TEXT N_( "Quality level" ) 
    232 #define ENC_HQ_LONGTEXT N_( "Allows you to specify the quality level " \ 
     233#define ENC_HQ_LONGTEXT N_( "Quality level " \ 
    233234  "for the encoding of motions vectors (this can slow down the encoding " \ 
    234235  "very much)." ) 
    235236 
    236237#define ENC_HURRYUP_TEXT N_( "Hurry up" ) 
    237 #define ENC_HURRYUP_LONGTEXT N_( "Allows you to specify if the encoder " \ 
    238   "should make on-the-fly quality tradeoffs if your CPU can't keep up with " \ 
     238#define ENC_HURRYUP_LONGTEXT N_( "The encoder " \ 
     239  "can make on-the-fly quality tradeoffs if your CPU can't keep up with " \ 
    239240  "the encoding rate. It will disable trellis quantization, then the rate " \ 
    240241  "distortion of motion vectors (hq), and raise the noise reduction " \ 
     
    250251 
    251252#define ENC_TRELLIS_TEXT N_( "Enable trellis quantization" ) 
    252 #define ENC_TRELLIS_LONGTEXT N_( "Allows you to enable trellis " \ 
     253#define ENC_TRELLIS_LONGTEXT N_( "Enable trellis " \ 
    253254  "quantization (rate distortion for block coefficients)." ) 
    254255 
    255256#define ENC_QSCALE_TEXT N_( "Use fixed video quantizer scale" ) 
    256 #define ENC_QSCALE_LONGTEXT N_( "Allows you to specify a fixed video " \ 
     257#define ENC_QSCALE_LONGTEXT N_( "A fixed video " \ 
    257258  "quantizer scale for VBR encoding (accepted values: 0.01 to 255.0)." ) 
    258259 
    259260#define ENC_STRICT_TEXT N_( "Strict standard compliance" ) 
    260 #define ENC_STRICT_LONGTEXT N_( "Allows you to force a strict standard " \ 
     261#define ENC_STRICT_LONGTEXT N_( "Force a strict standard " \ 
    261262  "compliance when encoding (accepted values: -1, 0, 1)." ) 
    262263 
    263264#define ENC_LUMI_MASKING_TEXT N_( "Luminance masking" ) 
    264 #define ENC_LUMI_MASKING_LONGTEXT N_( "Allows you to raise the quantizer for " \ 
     265#define ENC_LUMI_MASKING_LONGTEXT N_( "Raise the quantizer for " \ 
    265266  "very bright macroblocks (default: 0.0)." ) 
    266267 
    267268#define ENC_DARK_MASKING_TEXT N_( "Darkness masking" ) 
    268 #define ENC_DARK_MASKING_LONGTEXT N_( "Allows you to raise the quantizer for " \ 
     269#define ENC_DARK_MASKING_LONGTEXT N_( "Raise the quantizer for " \ 
    269270  "very dark macroblocks (default: 0.0)." ) 
    270271 
    271272#define ENC_P_MASKING_TEXT N_( "Motion masking" ) 
    272 #define ENC_P_MASKING_LONGTEXT N_( "Allows you to raise the quantizer for " \ 
     273#define ENC_P_MASKING_LONGTEXT N_( "Raise the quantizer for " \ 
    273274  "macroblocks with a high temporal complexity (default: 0.0)." ) 
    274275 
    275276#define ENC_BORDER_MASKING_TEXT N_( "Border masking" ) 
    276 #define ENC_BORDER_MASKING_LONGTEXT N_( "Allows you to raise the quantizer " \ 
     277#define ENC_BORDER_MASKING_LONGTEXT N_( "Raise the quantizer " \ 
    277278  "for macroblocks at the border of the frame (default: 0.0)." ) 
    278279