]> git.sesse.net Git - ffmpeg/commit
lavc/vaapi_encode: add tile slice encoding support
authorLinjie Fu <linjie.fu@intel.com>
Tue, 12 May 2020 13:47:12 +0000 (21:47 +0800)
committerLinjie Fu <linjie.fu@intel.com>
Mon, 20 Jul 2020 07:26:50 +0000 (15:26 +0800)
commita7c2cdf0f6bc53d2bdf05fc92f20415a3de7045f
tree61cec168a8e76c63fded2be732a7f5e60aaf17ee
parent65f4d561c9dbd0a20ed9ed8c229dbbf3b89262ce
lavc/vaapi_encode: add tile slice encoding support

Add functions to initialize tile slice structure and make tile slice:
 - vaapi_encode_init_tile_slice_structure
 - vaapi_encode_make_tile_slice

Tile slice is not allowed to cross the boundary of a tile due to
the constraints of media-driver. Currently adding support for one
slice per tile.

N x N tile encoding is supposed to be supported with the the
capability of ARBITRARY_MACROBLOCKS slice structures.

N X 1 tile encoding should also work in ARBITRARY_ROWS slice
structure.

Signed-off-by: Linjie Fu <linjie.justin.fu@gmail.com>
libavcodec/vaapi_encode.c
libavcodec/vaapi_encode.h