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/magicyuvenc : Avoid excessive logmessages

    17 avril, par Andreas Rheinhardt
    avcodec/magicyuvenc: Avoid excessive logmessages
    
    AVERROR(ENOMEM) is enough.
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/magicyuvenc.c
  • avcodec/magicyuvenc : Restrict number of slice-planes to 256

    17 avril, par Andreas Rheinhardt
    avcodec/magicyuvenc: Restrict number of slice-planes to 256
    
    Every frame contains an array of uint8_t with values
    0..(s->planes * s->nb_slices - 1), so this needs to fit
    into an uint8_t.
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/magicyuvenc.c
  • avcodec/magicyuvenc : Switch to unchecked bytestream2 API

    17 avril, par Andreas Rheinhardt
    avcodec/magicyuvenc: Switch to unchecked bytestream2 API
    
    We have already calculated the size of the packet
    and therefore don't need to rely on these implicit checks.
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/magicyuvenc.c
  • avcodec/magicyuvenc : Calculate proper packet size in advance

    17 avril, par Andreas Rheinhardt
    avcodec/magicyuvenc: Calculate proper packet size in advance
    
    This can be easily done because we have a count of the number of
    values and the length of the associated codes. This allows
    to switch to ff_get_encode_buffer() and thereby avoids an implicit
    intermediate buffer.
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/magicyuvenc.c
  • avcodec/magicyuvenc : Simplify padding slice

    17 avril, par Andreas Rheinhardt
    avcodec/magicyuvenc: Simplify padding slice
    
    Do it before writing the actual slice to be able to use
    a single AV_WN32().
    
    Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
    
    • [DH] libavcodec/magicyuvenc.c