1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
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
af_aformat.c lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
af_amix.c lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
af_anull.c lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
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 lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
af_compand.c af_compand: make sure request_frame always outputs at least one frame 2014-07-08 07:54:00 +00:00
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 af_volume: implement replaygain clipping prevention 2014-04-13 11:25:06 +02:00
allfilters.c libavfilter/overlay_qsv: Add QSV overlay vpp filter 2017-09-17 19:59:06 +02:00
asink_anullsink.c lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
asrc_anullsrc.c lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
audio.c lavfi: Drop deprecated AVFilterBuffer* code 2015-08-28 16:01:16 +02:00
audio.h lavfi: switch to AVFrame. 2013-03-08 07:37:18 +01:00
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 lavfi: do not use av_pix_fmt_descriptors directly. 2012-10-12 12:45:39 +02:00
drawutils.h Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat 2012-10-08 07:13:26 +02:00
fifo.c lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
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 avfilter: Fix typo in Loren's email address 2013-10-23 10:25:14 +02:00
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
Makefile libavfilter/overlay_qsv: Add QSV overlay vpp filter 2017-09-17 19:59:06 +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 lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
split.c lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
thread.h cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
trim.c Add missing #includes for *INT64_MAX and *INT64_C 2013-11-23 21:55:52 +01:00
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 lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
vf_boxblur.c lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
vf_copy.c Use av_frame_copy() to simplify code where appropriate. 2014-02-24 07:25:07 +01:00
vf_crop.c Replace av_dlog with normal av_log at trace level 2015-04-19 12:41:59 +01:00
vf_cropdetect.c lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
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 lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
vf_drawbox.c lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
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_format: check input validity 2014-10-20 10:38:38 +01:00
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 lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
vf_hqdn3d.c cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
vf_hqdn3d.h lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
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_cuda.c vf_hwupload_cuda: Add min/max limits for device option 2016-12-08 15:58:31 -05:00
vf_hwupload.c lavfi: Always propagate hw_frames_ctx through links 2016-11-02 20:29:05 +00: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 lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
vf_null.c lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
vf_overlay_qsv.c libavfilter/overlay_qsv: Add QSV overlay vpp filter 2017-09-17 19:59:06 +02:00
vf_overlay.c Mark some arrays that never change as const. 2017-02-01 10:42:59 +01:00
vf_pad.c Drop pointless assert.h #includes 2016-05-03 15:45:10 +02:00
vf_pixdesctest.c lavfi: name anonymous structs 2014-04-19 16:20:57 +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_scale.c vf_scale: Add an option to pass the scaler params 2015-08-26 12:13:23 +02: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_shuffleplanes: fix the type of the mapping indices 2014-03-06 09:24:53 +01:00
vf_transpose.c lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
vf_unsharp.c lavfi: Use AV_CEIL_RSHIFT where needed 2016-01-25 12:09:48 -05:00
vf_vflip.c lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
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 lavfi: switch to AVFrame. 2013-03-08 07:37:18 +01:00
vsink_nullsink.c lavfi: do not export the filters from shared objects 2013-10-28 15:29:54 +01:00
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 lavfi: name anonymous structs 2014-04-19 16:20:57 +02:00
vsrc_testsrc.c testsrc: set output framerate 2015-11-09 08:09:41 +01:00
yadif.h vf_yadif: Relicense from GPL to LGPL 2014-01-14 00:04:59 +01:00