Changeset cc872f332621b1f639362e6b2a3d57e9dd9bc533

Show
Ignore:
Timestamp:
09/06/08 10:05:34 (4 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1212998734 +0200
git-parent:

[13d659d285019565598b0f202d68c2628bead821]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1212872036 +0200
Message:

Revive postprocessing. It is now a video filter (the interface code
needs to be changed accordingly). It "works" but I can't spot any
difference between postproc-q 6 and postproc-q 0 using the
redefined-nintendo.mpg test video ... I'd appreciate feedback on that
point.

Files:

Legend:

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

    r47db573 rcc872f3  
    5050    $(NULL) 
    5151 
    52 SOURCES_postproc = \ 
    53     $(NULL) 
    54  
    5552libvlc_LTLIBRARIES += \ 
    5653    $(LTLIBavcodec) \ 
    5754    $(LTLIBavformat) \ 
    5855    $(LTLIBswscale) \ 
    59     $(LTLIBimgresample) \ 
    60     $(LTLIBpostproc) 
     56    $(LTLIBimgresample) 
    6157 
    6258EXTRA_LTLIBRARIES += \ 
     
    6460    libavformat_plugin.la \ 
    6561    libswscale_plugin.la \ 
    66     libimgresample_plugin.la \ 
    67     libpostproc_plugin.la 
     62    libimgresample_plugin.la 
    6863 
    6964# FIXME SOURCES_ffmpegaltivec = \ 
  • modules/codec/ffmpeg/avcodec.c

    r3a49e9f rcc872f3  
    126126        change_integer_list( nloopf_list, nloopf_list_text, 0 ); 
    127127 
    128     add_integer( "ffmpeg-pp-q", 0, NULL, PP_Q_TEXT, PP_Q_LONGTEXT, false ); 
    129     add_string( "ffmpeg-pp-name", "default", NULL, LIBAVCODEC_PP_TEXT, 
    130         LIBAVCODEC_PP_LONGTEXT, true ); 
    131128    add_integer( "ffmpeg-debug", 0, NULL, DEBUG_TEXT, DEBUG_LONGTEXT, 
    132129                 true ); 
  • modules/codec/ffmpeg/avcodec.h

    rb8b6f0b rcc872f3  
    9292    "(-1=None, 0=Default, 1=B-frames, 2=P-frames, 3=B+P frames, 4=all frames)." ) 
    9393 
    94 #define PP_Q_TEXT N_("Post processing quality") 
    95 #define PP_Q_LONGTEXT N_( \ 
    96     "Quality of post processing. Valid range is 0 to 6\n" \ 
    97     "Higher levels require considerable more CPU power, but produce " \ 
    98     "better looking pictures." ) 
    99  
    10094#define DEBUG_TEXT N_( "Debug mask" ) 
    10195#define DEBUG_LONGTEXT N_( "Set ffmpeg debug mask" ) 
     
    120114    "speedup for high definition streams." ) 
    121115 
    122 #define LIBAVCODEC_PP_TEXT N_("FFmpeg post processing filter chains") 
    123 /* FIXME (cut/past from ffmpeg */ 
    124 #define LIBAVCODEC_PP_LONGTEXT \ 
    125 N_("<filterName>[:<option>[:<option>...]][[,|/][-]<filterName>[:<option>...]]...\n" \ 
    126 "long form example:\n" \ 
    127 "vdeblock:autoq/hdeblock:autoq/linblenddeint    default,-vdeblock\n" \ 
    128 "short form example:\n" \ 
    129 "vb:a/hb:a/lb de,-vb\n" \ 
    130 "more examples:\n" \ 
    131 "tn:64:128:256\n" \ 
    132 "Filters                        Options\n" \ 
    133 "short  long name       short   long option     Description\n" \ 
    134 "*      *               a       autoq           cpu power dependent enabler\n" \ 
    135 "                       c       chrom           chrominance filtring enabled\n" \ 
    136 "                       y       nochrom         chrominance filtring disabled\n" \ 
    137 "hb     hdeblock        (2 Threshold)           horizontal deblocking filter\n" \ 
    138 "       1. difference factor: default=64, higher -> more deblocking\n" \ 
    139 "       2. flatness threshold: default=40, lower -> more deblocking\n" \ 
    140 "                       the h & v deblocking filters share these\n" \ 
    141 "                       so u cant set different thresholds for h / v\n" \ 
    142 "vb     vdeblock        (2 Threshold)           vertical deblocking filter\n" \ 
    143 "h1     x1hdeblock                              Experimental h deblock filter 1\n" \ 
    144 "v1     x1vdeblock                              Experimental v deblock filter 1\n" \ 
    145 "dr     dering                                  Deringing filter\n" \ 
    146 "al     autolevels                              automatic brightness / contrast\n" \ 
    147 "                       f       fullyrange      stretch luminance to (0..255)\n" \ 
    148 "lb     linblenddeint                           linear blend deinterlacer\n" \ 
    149 "li     linipoldeint                            linear interpolating deinterlace\n" \ 
    150 "ci     cubicipoldeint                          cubic interpolating deinterlacer\n" \ 
    151 "md     mediandeint                             median deinterlacer\n" \ 
    152 "fd     ffmpegdeint                             ffmpeg deinterlacer\n" \ 
    153 "de     default                                 hb:a,vb:a,dr:a,al\n" \ 
    154 "fa     fast                                    h1:a,v1:a,dr:a,al\n" \ 
    155 "tn     tmpnoise        (3 Thresholds)          Temporal Noise Reducer\n" \ 
    156 "                       1. <= 2. <= 3.          larger -> stronger filtering\n" \ 
    157 "fq     forceQuant      <quantizer>             Force quantizer\n") 
    158  
    159116/* 
    160117 * Encoder options 
  • modules/video_filter/Modules.am

    r446404d rcc872f3  
    4141SOURCES_blendbench = blendbench.c 
    4242SOURCES_chain = chain.c 
     43SOURCES_postproc = postproc.c 
    4344noinst_HEADERS = filter_common.h filter_picture.h