ffmpeg/libavfilter
Huang, Zhengxu a5a6ac1a12 libavfilter/overlay_qsv: Add QSV overlay vpp filter
The filter supports two inputs and (implicitly) scaling the second input
during composition, unlike the software overlay.

The code has been separated into common interface and qsv overlay
implementation. The common part mainly creates the qsv session and
manages the surface which is nearly the same for all qsv filters.
So the qsvvpp.c/qsvvpp.h API can be used by other QSV vpp filters
to reduce code redundancy.

Usage:
 -hwaccel qsv -c:v mpeg2_qsv -r 25 -i in.m2v -hwaccel qsv -c:v h264_qsv
 -i in.h264 -filter_complex
 "overlay_qsv=eof_action=repeat:x=(W-w)/2:y=(H-h)/2"  -b 2M -maxrate 3M
 -c:v h264_qsv -y out.h264

Two inputs should have different sizes otherwise one will be completely
covered or you need to scale the second input as follows:
  -hwaccel qsv -c:v mpeg2_qsv -r 25 -i in.m2v -hwaccel qsv -c:v h264_qsv
  -i in.h264 -filter_complex
  "overlay_qsv=w=720:h=576:x=(W-w)/2:y=(H-h)/2" -b 2M -maxrate 3M -c:v
  h264_qsv -y out.h264

  Signed-off-by: ChaoX A Liu <chaox.a.liu@gmail.com>
  Signed-off-by: Zhengxu Huang <zhengxu.maxwell@gmail.com>
  Signed-off-by: Andrew Zhang <huazh407@gmail.com>
  Change-Id: I5c381febb0af6e2f9622c54ba00490ab99d48297
  Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
2017-09-17 19:59:06 +02:00
..
tests filtfmts-test: Mark filter as const 2017-04-10 09:04:41 -04:00
x86 build: Generalize yasm/nasm-related variable names 2017-03-01 10:18:15 +01:00
Makefile libavfilter/overlay_qsv: Add QSV overlay vpp filter 2017-09-17 19:59:06 +02:00
af_aformat.c
af_amix.c
af_anull.c
af_ashowinfo.c lavfi: Move avcodec header to the only filter needing it 2015-05-19 18:56:40 +01:00
af_asyncts.c af_asyncts: Use llabs instead of labs for 64-bit variable 2016-11-15 09:41:08 +01:00
af_bs2b.c af_bs2b: Add missing casts to complex pointer assignments 2017-06-21 12:24:13 +02:00
af_channelmap.c lavfi: Drop deprecated way of passing options for a few filters 2017-03-23 09:57:32 +01:00
af_channelsplit.c
af_compand.c
af_hdcd.c High Definition Compatible Digital (HDCD) decoder filter, using libhdcd 2016-08-29 19:09:59 +02:00
af_join.c lavfi: Drop deprecated way of passing options for a few filters 2017-03-23 09:57:32 +01:00
af_resample.c cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
af_volume.c Mark some arrays that never change as const. 2017-02-01 10:42:59 +01:00
af_volume.h
allfilters.c libavfilter/overlay_qsv: Add QSV overlay vpp filter 2017-09-17 19:59:06 +02:00
asink_anullsink.c
asrc_anullsrc.c
audio.c lavfi: Drop deprecated AVFilterBuffer* code 2015-08-28 16:01:16 +02:00
audio.h
avfilter.c lavfi: Drop deprecated non-const filter retrieval 2017-03-23 10:09:11 +01:00
avfilter.h lavfi: Drop deprecated non-const filter retrieval 2017-03-23 10:09:11 +01:00
avfiltergraph.c lavfi: Drop deprecated non-const filter retrieval 2017-03-23 10:09:11 +01:00
buffersink.c lavfi: Drop deprecated AVFilterBuffer* code 2015-08-28 16:01:16 +02:00
buffersink.h lavfi: Drop deprecated AVFilterBuffer* code 2015-08-28 16:01:16 +02:00
buffersrc.c lavfi: Drop deprecated way of passing options for a few filters 2017-03-23 09:57:32 +01:00
buffersrc.h cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
drawutils.c
drawutils.h
fifo.c
formats.c lavfi: do not exclude hwaccel formats from ff_all_formats() 2015-09-28 15:42:38 +02:00
formats.h cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
gradfun.h
graphparser.c lavfi: Drop deprecated non-const filter retrieval 2017-03-23 10:09:11 +01:00
interlace.h cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
internal.h lavfi: Always propagate hw_frames_ctx through links 2016-11-02 20:29:05 +00:00
libavfilter.v build: Change structure of the linker version script templates 2016-05-29 16:43:11 +02:00
pthread.c cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
qsvvpp.c libavfilter/overlay_qsv: Add QSV overlay vpp filter 2017-09-17 19:59:06 +02:00
qsvvpp.h libavfilter/overlay_qsv: Add QSV overlay vpp filter 2017-09-17 19:59:06 +02:00
setpts.c cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
settb.c
split.c
thread.h cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
trim.c
version.h lavfi: Drop deprecated non-const filter retrieval 2017-03-23 10:09:11 +01:00
vf_aspect.c lavfi: Drop deprecated way of passing options for a few filters 2017-03-23 09:57:32 +01:00
vf_blackframe.c
vf_boxblur.c
vf_copy.c
vf_crop.c Replace av_dlog with normal av_log at trace level 2015-04-19 12:41:59 +01:00
vf_cropdetect.c
vf_deinterlace_qsv.c lavf/vf_deinterlace_qsv: Enable the qsv deinterlace vpp 2017-07-25 13:27:52 +02:00
vf_deinterlace_vaapi.c vf_deinterlace_vaapi: Add support for field rate output 2017-04-02 17:53:57 +01:00
vf_delogo.c
vf_drawbox.c
vf_drawtext.c Convert all AVClass struct declarations to designated initializers. 2017-06-12 11:01:10 +02:00
vf_fade.c vf_fade: Make sure to not miss the last lines of a frame 2017-02-16 12:58:50 +02:00
vf_fieldorder.c Replace av_dlog with normal av_log at trace level 2015-04-19 12:41:59 +01:00
vf_format.c
vf_fps.c vf_fps: set frame_rate. 2015-11-09 08:09:41 +01:00
vf_framepack.c lavu: add AV_CEIL_RSHIFT and use it in various places 2016-01-11 15:32:56 -05:00
vf_frei0r.c vf_frei0r: Drop overly verbose and broken debug output 2016-05-04 18:40:50 +02:00
vf_gradfun.c cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
vf_hflip.c
vf_hqdn3d.c cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
vf_hqdn3d.h
vf_hwdownload.c lavfi: Always propagate hw_frames_ctx through links 2016-11-02 20:29:05 +00:00
vf_hwmap.c vf_hwmap: Properly free a locally derived device 2017-06-18 17:01:31 +01:00
vf_hwupload.c lavfi: Always propagate hw_frames_ctx through links 2016-11-02 20:29:05 +00:00
vf_hwupload_cuda.c vf_hwupload_cuda: Add min/max limits for device option 2016-12-08 15:58:31 -05:00
vf_interlace.c lavfi: Use AV_CEIL_RSHIFT where needed 2016-01-25 12:09:48 -05:00
vf_libopencv.c Mark some arrays that never change as const. 2017-02-01 10:42:59 +01:00
vf_lut.c
vf_null.c
vf_overlay.c Mark some arrays that never change as const. 2017-02-01 10:42:59 +01:00
vf_overlay_qsv.c libavfilter/overlay_qsv: Add QSV overlay vpp filter 2017-09-17 19:59:06 +02:00
vf_pad.c Drop pointless assert.h #includes 2016-05-03 15:45:10 +02:00
vf_pixdesctest.c
vf_scale.c vf_scale: Add an option to pass the scaler params 2015-08-26 12:13:23 +02:00
vf_scale_npp.c scale_npp: explicitly set the output frames context for passthrough mode 2017-02-11 11:37:45 +01:00
vf_scale_qsv.c lavfi: Always propagate hw_frames_ctx through links 2016-11-02 20:29:05 +00:00
vf_scale_vaapi.c lavfi: Always propagate hw_frames_ctx through links 2016-11-02 20:29:05 +00:00
vf_select.c cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
vf_showinfo.c vf_showinfo: Display spherical properties 2017-03-23 10:09:18 +01:00
vf_shuffleplanes.c
vf_transpose.c
vf_unsharp.c lavfi: Use AV_CEIL_RSHIFT where needed 2016-01-25 12:09:48 -05:00
vf_vflip.c
vf_vpp_qsv.c libavfilter/vf_vpp: Add common filters of the qsv vpp 2017-09-17 19:57:13 +02:00
vf_yadif.c yadif: Account for the buffer alignment while processing the frame edges 2017-08-22 22:31:19 +02:00
video.c lavfi: Make default get_video_buffer work with hardware frames 2016-11-02 20:07:15 +00:00
video.h
vsink_nullsink.c
vsrc_color.c vsrc_color: Drop unneeded variable 2015-11-30 10:58:46 -05:00
vsrc_movie.c Convert all AVClass struct declarations to designated initializers. 2017-06-12 11:01:10 +02:00
vsrc_nullsrc.c
vsrc_testsrc.c testsrc: set output framerate 2015-11-09 08:09:41 +01:00
yadif.h