[FFmpeg-devel] [PATCH v4 29/38] vaapi_encode: Support configurable slices

Michael Niedermayer michael at niedermayer.cc
Wed Sep 19 11:24:41 EEST 2018


On Tue, Sep 18, 2018 at 11:31:07PM +0100, Mark Thompson wrote:
> This adds common code to query driver support and set appropriate
> address/size information for each slice.  It only supports rectangular
> slices for now, since that is the most common use-case.
> 
> Also immediately use that to replace the ad-hoc code doing the same
> thing for MPEG-2.
> ---
>  libavcodec/vaapi_encode.c       | 149 +++++++++++++++++++++++++++++++-
>  libavcodec/vaapi_encode.h       |  22 +++++
>  libavcodec/vaapi_encode_mpeg2.c |  18 ++--
>  3 files changed, 177 insertions(+), 12 deletions(-)

breaks build (on ubuntu)

CC	libavcodec/vaapi_encode.o
libavcodec/vaapi_encode.c: In function ‘vaapi_encode_init_slice_structure’:
libavcodec/vaapi_encode.c:1561:34: error: ‘VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS’ undeclared (first use in this function)
     } else if (slice_structure & VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS) {
                                  ^
libavcodec/vaapi_encode.c:1561:34: note: each undeclared identifier is reported only once for each function it appears in
make: *** [libavcodec/vaapi_encode.o] Error 1
make: Target `all' not remade because of errors.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180919/b4b031b6/attachment.sig>


More information about the ffmpeg-devel mailing list