mirror of https://git.ffmpeg.org/ffmpeg.git
lavf/qsvvpp: add P010 output format support
Signed-off-by: Zhong Li <zhong.li@intel.com>
This commit is contained in:
parent
ef56c28b25
commit
e62f625163
|
@ -153,6 +153,7 @@ static int map_frame_to_surface(AVFrame *frame, mfxFrameSurface1 *surface)
|
||||||
{
|
{
|
||||||
switch (frame->format) {
|
switch (frame->format) {
|
||||||
case AV_PIX_FMT_NV12:
|
case AV_PIX_FMT_NV12:
|
||||||
|
case AV_PIX_FMT_P010:
|
||||||
surface->Data.Y = frame->data[0];
|
surface->Data.Y = frame->data[0];
|
||||||
surface->Data.UV = frame->data[1];
|
surface->Data.UV = frame->data[1];
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -367,6 +367,7 @@ static int query_formats(AVFilterContext *ctx)
|
||||||
};
|
};
|
||||||
static const enum AVPixelFormat out_pix_fmts[] = {
|
static const enum AVPixelFormat out_pix_fmts[] = {
|
||||||
AV_PIX_FMT_NV12,
|
AV_PIX_FMT_NV12,
|
||||||
|
AV_PIX_FMT_P010,
|
||||||
AV_PIX_FMT_QSV,
|
AV_PIX_FMT_QSV,
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue