git.videolan.org Git - ffmpeg.git/rss log

FFmpeg git repo

http://git.videolan.org/?p=ffmpeg.git;a=summary

Les articles publiés sur le site

  • avcodec/ffv1enc : replace the remaining log2() by magic

    30 mars, par Michael Niedermayer
    avcodec/ffv1enc: replace the remaining log2() by magic
    
    big secret, reading a float as the corresponding integer is a good
    approximation of log2() for numbers not too close to 1.0. At the same
    time it maintains strict monotonicity
    
    this reduces run time from 19sec to 17sec for the slowest of my testcases
    (with default remap_optimizer 3)
    
    Compression is about the same:
    
    -rw-r----- 1 michael michael  497603370 Mar 30 15:23 float-303503-fixed-40-optim-3-1log2F.nut
    -rw-r----- 1 michael michael  497603374 Mar 28 11:27 float-303503-fixed-40-optim-3b.nut
    -rw-r----- 1 michael michael  549938852 Mar 28 11:27 float-303503-float16-40-optim-3b.nut
    -rw-r----- 1 michael michael  549938857 Mar 30 15:23 float-303503-float16-40-optim-3-1log2F.nut
    -rw-r----- 1 michael michael 1150827841 Mar 28 11:28 float-303503-float-40-optim-3b.nut
    -rw-r----- 1 michael michael 1150832913 Mar 30 15:22 float-303503-float-40-optim-3ref-log2F2.nut
    
    Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
    
    • [DH] libavcodec/ffv1enc.c
  • avcodec/ffv1enc : replace 3 double precision log2() by 1 single precision log2()

    30 mars, par Michael Niedermayer
    avcodec/ffv1enc: replace 3 double precision log2() by 1 single precision log2()
    
    This makes the remap finding heuristic much faster
    
    Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
    
    • [DH] libavcodec/ffv1enc.c
  • avcodec/hevc/hevcdec : Use bitfield instead of array of flags

    30 mars, par Andreas Rheinhardt
    avcodec/hevc/hevcdec: Use bitfield instead of array of flags
    
    It is simpler, avoids several loops and also makes GCC no longer
    emit bogus -Wstringop-overflow= warnings.
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/hevc/hevcdec.c
  • avcodec/ac3dec : Read spx flags at once, not one bit at a time

    30 mars, par Andreas Rheinhardt
    avcodec/ac3dec: Read spx flags at once, not one bit at a time
    
    Doing so gets rid of a stupid GCC -Wstringop-overflow= warning
    (GCC somehow believes that fbw_channels can be 7 with the old
    form of the code, so that channel_uses_spx[7] would be written
    to, but now it no longer believes so).
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/ac3dec.c
  • avcodec/dct : Make declarations and definitions match

    30 mars, par Andreas Rheinhardt
    avcodec/dct: Make declarations and definitions match
    
    GCC considers declarations using a parameter of pointer
    type (or equivalently a parameter using an array of unspecified
    dimensions) to be inconsistent with a declaration using
    a known-length array type and emits a -Warray-parameter warning
    for several ff_j_rev_dct* functions for this.
    
    This patch makes the declarations match the actual definitions
    to suppress these (IMO nonsensical) warnings.
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/dct.h
    • [DH] libavcodec/jrevdct.c