Message ID | 79d133af-1e5e-1781-8e8c-70ca3f101b4a@gmail.com |
---|---|
State | Superseded |
Headers | show |
On Thu, Aug 24, 2017 at 09:13:09 +0800, Jun Zhao wrote: > + // Supported max-slices number per frame. (0 means driver cannot > + // support max mutil-slices query) ^^^^^ multi Moritz
On 2017/9/13 20:18, Moritz Barsnick wrote: > On Thu, Aug 24, 2017 at 09:13:09 +0800, Jun Zhao wrote: >> + // Supported max-slices number per frame. (0 means driver cannot >> + // support max mutil-slices query) > ^^^^^ multi > > Moritz Tks. will fix the typo. > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index f49e0e3b91..011aedd9d9 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -971,6 +971,7 @@ static av_cold int vaapi_encode_config_attributes(AVCodecContext *avctx) { VAConfigAttribRTFormat }, { VAConfigAttribRateControl }, { VAConfigAttribEncMaxRefFrames }, + { VAConfigAttribEncMaxSlices }, { VAConfigAttribEncPackedHeaders }, }; @@ -1101,6 +1102,9 @@ static av_cold int vaapi_encode_config_attributes(AVCodecContext *avctx) } } break; + case VAConfigAttribEncMaxSlices: + ctx->max_slices = attr[i].value; + break; case VAConfigAttribEncPackedHeaders: if (ctx->va_packed_headers & ~attr[i].value) { // This isn't fatal, but packed headers are always diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h index 364b5b8028..dafbbf5045 100644 --- a/libavcodec/vaapi_encode.h +++ b/libavcodec/vaapi_encode.h @@ -164,6 +164,10 @@ typedef struct VAAPIEncodeContext { } quality_params; #endif + // Supported max-slices number per frame. (0 means driver cannot + // support max mutil-slices query) + int max_slices; + // Per-sequence parameter structure (VAEncSequenceParameterBuffer*). void *codec_sequence_params;