[FFmpeg-cvslog] lavf/qsvvpp: add P010 output format support

Zhong Li git at videolan.org
Mon Jun 10 16:12:08 EEST 2019


ffmpeg | branch: master | Zhong Li <zhong.li at intel.com> | Fri May 31 08:44:48 2019 +0800| [e62f625163f8cde794ebe02bc228735b4e65c772] | committer: Zhong Li

lavf/qsvvpp: add P010 output format support

Signed-off-by: Zhong Li <zhong.li at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e62f625163f8cde794ebe02bc228735b4e65c772
---

 libavfilter/qsvvpp.c     | 1 +
 libavfilter/vf_vpp_qsv.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c
index b5ef74efa4..8d5ff2eb65 100644
--- a/libavfilter/qsvvpp.c
+++ b/libavfilter/qsvvpp.c
@@ -153,6 +153,7 @@ static int map_frame_to_surface(AVFrame *frame, mfxFrameSurface1 *surface)
 {
     switch (frame->format) {
     case AV_PIX_FMT_NV12:
+    case AV_PIX_FMT_P010:
         surface->Data.Y  = frame->data[0];
         surface->Data.UV = frame->data[1];
         break;
diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
index 41a9f38962..dd05e8baff 100644
--- a/libavfilter/vf_vpp_qsv.c
+++ b/libavfilter/vf_vpp_qsv.c
@@ -367,6 +367,7 @@ static int query_formats(AVFilterContext *ctx)
     };
     static const enum AVPixelFormat out_pix_fmts[] = {
         AV_PIX_FMT_NV12,
+        AV_PIX_FMT_P010,
         AV_PIX_FMT_QSV,
         AV_PIX_FMT_NONE
     };



More information about the ffmpeg-cvslog mailing list