home *** CD-ROM | disk | FTP | other *** search
/ Geek 6 / Geek-006.iso / video / conversores / mpgavi.exe / FILTER.TXT < prev    next >
Text File  |  1999-10-16  |  4KB  |  89 lines

  1. -------------------------
  2. MPEG2AVI v0.16B3 10/15/99
  3. -------------------------
  4.  
  5. (Since v0.15B3, there have been no changes to the filtering operations.
  6.  The fast-filter is now implemented with MMX instructions, making it
  7.  much faster than HiQ mode.)
  8.  
  9. These notes are a bit terse.  They will be re-organized for the
  10. next release.
  11.  
  12.         MPEG2AVI fast filter vs. HiQ filter
  13.         ----------------------------------------------
  14.               v0.15B1            |        v0.14
  15.                                  |
  16.         half-res   |    full-res | half-res   full-res
  17.           '-2'     |             |   '-2'
  18.         -------------------------|--------------------
  19.         *HiQ  '-q0'  *HiQ  '-q0' |  *fast       *HiQ
  20.          fast '-q1'   fast '-q1' |
  21.         
  22.            * = default
  23.         
  24.         
  25.         MPEG2AVI v0.15 offers two filters for its normal (full-resolution) and
  26.         special half-res mode.
  27.         
  28.         ---------------------|--------------------------------
  29.         fast-filer HALF-RES  |  arithmetic average on 4 Y-pixels
  30.           '-q1'       '-2'   |  no filtering performed on U/V pixels
  31.                              |
  32.                    FULL-RES  |  pixel replication on U/V pixels
  33.                              |  (1 U/V pixel => 4 identical U/V pixels)
  34.                              |  no filtering on Y plane
  35.         ---------------------|--------------------------------
  36.          HiQ-filer HALF-RES  |  low-pass FIR filter on Y-plane
  37.           '-q0'       '-2'   |  no filtering on U/V plane
  38.                              |
  39.                    FULL-RES  |  upscaling interpolative FIR filter on U/V plane
  40.                              |  no filtering on Y plane
  41.  
  42. ---------------------
  43. Usage recommendations : "fast filter" vs "HiQuality"
  44. ---------------------
  45.  
  46.         "RGB" vs "YUV"
  47.         All PC displays store color-information in the "RGB" format.  A pixel
  48.         is divided into three additive color components, red green and blue.
  49.  
  50.         Human visual perception operates differently.  First of all, human
  51.         eyes are more sensitive to brightness (luminance), than to color
  52.         information.
  53.  
  54.         Therefore, a color-format which partitions pixels by brightness/color
  55.         is better for video-compression.  Nearly all VideoForWindows codecs
  56.         discard 1/2 the color (U/V) data during input.  When encoding with
  57.         these codecs, postfiltering the decoded MPEG pictures' U/V plane is
  58.         a waste of time
  59.  
  60.         Thus, MPEG2AVI's "fast-filter" will produce output faster, while
  61.         maintaining comparable video quality (depends on the codec.)
  62.         
  63.         MPEG2AVI's HiQ-filter should be used if reserved for special situations, like
  64.         uncompressed AVI mode, where maximum quality is desired.
  65.  
  66. -------------------------
  67. MPEG2AVI and downsampling
  68. -------------------------
  69.  
  70.         As an exception to the above, the use of downsampling ( -3X or -3Y )
  71.         necessitates the HiQ-filter.
  72.  
  73.         MPEG2AVI v0.15 implements a simplistic downsampler: an arithmetic
  74.         pixel averager.  Output pixel values are calculated as weighted
  75.         means of input-pixels, with a weighting policy controlled by
  76.         Bressenham's line-algorithm.  The mean-weighted outut
  77.         simulates low-pass filtering, but the filtering is less
  78.         effective against bitmaps consisting of replicated pixel blocks.
  79.  
  80.         Pixel-averaging is fast, and smooth for scaling factors between 
  81.         0.5 and 1.0.  There is only 1 downsampling algorithm : the 
  82.         filter-quality option ('-q0', '-q1') does not apply to downsampling,
  83.         only pre-filtering.
  84.         
  85.         All downsampling algorithms diminish image detail.  Simultaneous
  86.         X & Y downsampling should be avoided if possible.
  87.  
  88.  
  89.