mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/vaapi-vp9: add support for profile 2 (bpp > 8)
Signed-off-by: Mark Thompson <sw@jkqxz.net>
This commit is contained in:
parent
b1f630f1a6
commit
49e8e5fc56
@ -38,6 +38,7 @@ static void fill_picture_parameters(AVCodecContext *avctx,
|
|||||||
pp->first_partition_size = h->h.compressed_header_size;
|
pp->first_partition_size = h->h.compressed_header_size;
|
||||||
|
|
||||||
pp->profile = h->h.profile;
|
pp->profile = h->h.profile;
|
||||||
|
pp->bit_depth = h->h.bpp;
|
||||||
|
|
||||||
pp->filter_level = h->h.filter.level;
|
pp->filter_level = h->h.filter.level;
|
||||||
pp->sharpness_level = h->h.filter.sharpness;
|
pp->sharpness_level = h->h.filter.sharpness;
|
||||||
|
@ -258,7 +258,8 @@ static int update_size(AVCodecContext *ctx, int w, int h)
|
|||||||
if ((res = ff_set_dimensions(ctx, w, h)) < 0)
|
if ((res = ff_set_dimensions(ctx, w, h)) < 0)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
if (s->pix_fmt == AV_PIX_FMT_YUV420P) {
|
switch (s->pix_fmt) {
|
||||||
|
case AV_PIX_FMT_YUV420P:
|
||||||
#if CONFIG_VP9_DXVA2_HWACCEL
|
#if CONFIG_VP9_DXVA2_HWACCEL
|
||||||
*fmtp++ = AV_PIX_FMT_DXVA2_VLD;
|
*fmtp++ = AV_PIX_FMT_DXVA2_VLD;
|
||||||
#endif
|
#endif
|
||||||
@ -268,6 +269,13 @@ static int update_size(AVCodecContext *ctx, int w, int h)
|
|||||||
#if CONFIG_VP9_VAAPI_HWACCEL
|
#if CONFIG_VP9_VAAPI_HWACCEL
|
||||||
*fmtp++ = AV_PIX_FMT_VAAPI;
|
*fmtp++ = AV_PIX_FMT_VAAPI;
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
|
case AV_PIX_FMT_YUV420P10:
|
||||||
|
case AV_PIX_FMT_YUV420P12:
|
||||||
|
#if CONFIG_VP9_VAAPI_HWACCEL
|
||||||
|
*fmtp++ = AV_PIX_FMT_VAAPI;
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
*fmtp++ = s->pix_fmt;
|
*fmtp++ = s->pix_fmt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user