diff options
author | Wenbin Chen <wenbin.chen@intel.com> | 2022-12-05 14:32:13 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2022-12-08 14:21:07 +0800 |
commit | 20f29411912efcfaa92f2eb02a9fddfcd5073271 (patch) | |
tree | 0e2917ac6d7962ba15d717485e0f2e6fd8e0ecc7 /libavfilter/qsvvpp.h | |
parent | d4f853f4ed39f51afbc14b3a7fe3bd7a435eb851 (diff) | |
download | ffmpeg-20f29411912efcfaa92f2eb02a9fddfcd5073271.tar.gz |
libavfilter/qsvvpp: Change the alignment to meet the requirement of YUV420P format
When process yuv420 frames, FFmpeg uses same alignment on Y/U/V
planes. VPL and MSDK use Y plane's pitch / 2 as U/V planes's
pitch, which makes U/V planes 16-bytes aligned. We need to set
a separate alignment to meet runtime's behaviour.
Now alignment is changed to 16 so that the linesizes of U/V planes
meet the requirment of VPL/MSDK. Add get_buffer.video callback to
qsv filters to change the default get_buffer behaviour.
Now the commandline works fine:
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 3082x1884 \
-i ./3082x1884.yuv -vf 'vpp_qsv=w=2466:h=1508' -f rawvideo \
-pix_fmt yuv420p 2466_1508.yuv
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
Diffstat (limited to 'libavfilter/qsvvpp.h')
-rw-r--r-- | libavfilter/qsvvpp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/qsvvpp.h b/libavfilter/qsvvpp.h index a8cfcc565a..6f7c9bfc15 100644 --- a/libavfilter/qsvvpp.h +++ b/libavfilter/qsvvpp.h @@ -127,4 +127,5 @@ int ff_qsvvpp_print_warning(void *log_ctx, mfxStatus err, int ff_qsvvpp_create_mfx_session(void *ctx, void *loader, mfxIMPL implementation, mfxVersion *pver, mfxSession *psession); +AVFrame *ff_qsvvpp_get_video_buffer(AVFilterLink *inlink, int w, int h); #endif /* AVFILTER_QSVVPP_H */ |