[FFmpeg-devel] [PATCH 0/3] enable multi-slices in vaapi_h264/265 encoder

mypopy at gmail.com mypopy at gmail.com
Mon Aug 13 03:30:09 EEST 2018


On Mon, Jul 30, 2018 at 7:49 PM Jun Zhao <mypopydev at gmail.com> wrote:
>
> V6: - Use rectangular slices and refine the code.
>
> V5: - In h265_vaapi encoder, when setting slice number > max slice number
>       supported by driver, report error and return. Same as h264_vaapi.
>     - Clean the logic when setting first_slice_segment_in_pic_flags.
>
> V4: - Change the array malloc function.
>     - Clean the pointless condition check when free the memory.
>
> V3: - Making pic->slices be VAAPIEncodeSlice* instead of VAAPIEncodeSlice**.
>     - Fix resource (vaBuffer) lead when realloc pic->param_buffers fail.
>     - Adjust max_slices location in VAAPIEncodeContext.
>     - Re-work distributing the macro-blocks for multi-slices function.
>
> V2: - Change the slice/parameter buffers to dynamic alloc and split the mutil-slice support for AVC/HEVC.
>
> Jun Zhao (3):
>   lavc/vaapi_encode: Add max slices number query.
>   lavc/vaapi_encode_h264: respect "slices" option in h264 vaapi encoder
>   lavc/vaapi_encode_h265: respect "slices" option in h265 vaapi encoder
>
>  libavcodec/vaapi_encode.c      |    4 ++++
>  libavcodec/vaapi_encode.h      |    4 ++++
>  libavcodec/vaapi_encode_h264.c |   31 +++++++++++++++++++++++++------
>  libavcodec/vaapi_encode_h265.c |   30 ++++++++++++++++++++++++------
>  4 files changed, 57 insertions(+), 12 deletions(-)
>

Ping, some guys can you help to review the patches?


More information about the ffmpeg-devel mailing list