mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-02 03:06:28 +02:00
a5a6ac1a12
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>
116 lines
6.1 KiB
Makefile
116 lines
6.1 KiB
Makefile
NAME = avfilter
|
|
DESC = Libav video filtering library
|
|
|
|
HEADERS = avfilter.h \
|
|
buffersink.h \
|
|
buffersrc.h \
|
|
version.h \
|
|
|
|
OBJS = allfilters.o \
|
|
audio.o \
|
|
avfilter.o \
|
|
avfiltergraph.o \
|
|
buffersink.o \
|
|
buffersrc.o \
|
|
drawutils.o \
|
|
fifo.o \
|
|
formats.o \
|
|
graphparser.o \
|
|
video.o \
|
|
|
|
OBJS-$(HAVE_THREADS) += pthread.o
|
|
|
|
# subsystems
|
|
OBJS-$(CONFIG_QSVVPP) += qsvvpp.o
|
|
|
|
# audio filters
|
|
OBJS-$(CONFIG_AFORMAT_FILTER) += af_aformat.o
|
|
OBJS-$(CONFIG_AMIX_FILTER) += af_amix.o
|
|
OBJS-$(CONFIG_ANULL_FILTER) += af_anull.o
|
|
OBJS-$(CONFIG_ASETPTS_FILTER) += setpts.o
|
|
OBJS-$(CONFIG_ASETTB_FILTER) += settb.o
|
|
OBJS-$(CONFIG_ASHOWINFO_FILTER) += af_ashowinfo.o
|
|
OBJS-$(CONFIG_ASPLIT_FILTER) += split.o
|
|
OBJS-$(CONFIG_ASYNCTS_FILTER) += af_asyncts.o
|
|
OBJS-$(CONFIG_ATRIM_FILTER) += trim.o
|
|
OBJS-$(CONFIG_BS2B_FILTER) += af_bs2b.o
|
|
OBJS-$(CONFIG_CHANNELMAP_FILTER) += af_channelmap.o
|
|
OBJS-$(CONFIG_CHANNELSPLIT_FILTER) += af_channelsplit.o
|
|
OBJS-$(CONFIG_COMPAND_FILTER) += af_compand.o
|
|
OBJS-$(CONFIG_HDCD_FILTER) += af_hdcd.o
|
|
OBJS-$(CONFIG_JOIN_FILTER) += af_join.o
|
|
OBJS-$(CONFIG_RESAMPLE_FILTER) += af_resample.o
|
|
OBJS-$(CONFIG_VOLUME_FILTER) += af_volume.o
|
|
|
|
OBJS-$(CONFIG_ANULLSINK_FILTER) += asink_anullsink.o
|
|
OBJS-$(CONFIG_ANULLSRC_FILTER) += asrc_anullsrc.o
|
|
|
|
# video filters
|
|
OBJS-$(CONFIG_BLACKFRAME_FILTER) += vf_blackframe.o
|
|
OBJS-$(CONFIG_BOXBLUR_FILTER) += vf_boxblur.o
|
|
OBJS-$(CONFIG_COPY_FILTER) += vf_copy.o
|
|
OBJS-$(CONFIG_CROP_FILTER) += vf_crop.o
|
|
OBJS-$(CONFIG_CROPDETECT_FILTER) += vf_cropdetect.o
|
|
OBJS-$(CONFIG_DEINTERLACE_QSV_FILTER) += vf_deinterlace_qsv.o
|
|
OBJS-$(CONFIG_DEINTERLACE_VAAPI_FILTER) += vf_deinterlace_vaapi.o
|
|
OBJS-$(CONFIG_DELOGO_FILTER) += vf_delogo.o
|
|
OBJS-$(CONFIG_DRAWBOX_FILTER) += vf_drawbox.o
|
|
OBJS-$(CONFIG_DRAWTEXT_FILTER) += vf_drawtext.o
|
|
OBJS-$(CONFIG_FADE_FILTER) += vf_fade.o
|
|
OBJS-$(CONFIG_FIELDORDER_FILTER) += vf_fieldorder.o
|
|
OBJS-$(CONFIG_FORMAT_FILTER) += vf_format.o
|
|
OBJS-$(CONFIG_FPS_FILTER) += vf_fps.o
|
|
OBJS-$(CONFIG_FRAMEPACK_FILTER) += vf_framepack.o
|
|
OBJS-$(CONFIG_FREI0R_FILTER) += vf_frei0r.o
|
|
OBJS-$(CONFIG_GRADFUN_FILTER) += vf_gradfun.o
|
|
OBJS-$(CONFIG_HFLIP_FILTER) += vf_hflip.o
|
|
OBJS-$(CONFIG_HQDN3D_FILTER) += vf_hqdn3d.o
|
|
OBJS-$(CONFIG_HWDOWNLOAD_FILTER) += vf_hwdownload.o
|
|
OBJS-$(CONFIG_HWMAP_FILTER) += vf_hwmap.o
|
|
OBJS-$(CONFIG_HWUPLOAD_CUDA_FILTER) += vf_hwupload_cuda.o
|
|
OBJS-$(CONFIG_HWUPLOAD_FILTER) += vf_hwupload.o
|
|
OBJS-$(CONFIG_INTERLACE_FILTER) += vf_interlace.o
|
|
OBJS-$(CONFIG_LUT_FILTER) += vf_lut.o
|
|
OBJS-$(CONFIG_LUTRGB_FILTER) += vf_lut.o
|
|
OBJS-$(CONFIG_LUTYUV_FILTER) += vf_lut.o
|
|
OBJS-$(CONFIG_NEGATE_FILTER) += vf_lut.o
|
|
OBJS-$(CONFIG_NOFORMAT_FILTER) += vf_format.o
|
|
OBJS-$(CONFIG_NULL_FILTER) += vf_null.o
|
|
OBJS-$(CONFIG_OCV_FILTER) += vf_libopencv.o
|
|
OBJS-$(CONFIG_OVERLAY_FILTER) += vf_overlay.o
|
|
OBJS-$(CONFIG_OVERLAY_QSV_FILTER) += vf_overlay_qsv.o
|
|
OBJS-$(CONFIG_PAD_FILTER) += vf_pad.o
|
|
OBJS-$(CONFIG_PIXDESCTEST_FILTER) += vf_pixdesctest.o
|
|
OBJS-$(CONFIG_SCALE_FILTER) += vf_scale.o
|
|
OBJS-$(CONFIG_SCALE_NPP_FILTER) += vf_scale_npp.o
|
|
OBJS-$(CONFIG_SCALE_QSV_FILTER) += vf_scale_qsv.o
|
|
OBJS-$(CONFIG_SCALE_VAAPI_FILTER) += vf_scale_vaapi.o
|
|
OBJS-$(CONFIG_SELECT_FILTER) += vf_select.o
|
|
OBJS-$(CONFIG_SETDAR_FILTER) += vf_aspect.o
|
|
OBJS-$(CONFIG_SETPTS_FILTER) += setpts.o
|
|
OBJS-$(CONFIG_SETSAR_FILTER) += vf_aspect.o
|
|
OBJS-$(CONFIG_SETTB_FILTER) += settb.o
|
|
OBJS-$(CONFIG_SHOWINFO_FILTER) += vf_showinfo.o
|
|
OBJS-$(CONFIG_SHUFFLEPLANES_FILTER) += vf_shuffleplanes.o
|
|
OBJS-$(CONFIG_SPLIT_FILTER) += split.o
|
|
OBJS-$(CONFIG_TRANSPOSE_FILTER) += vf_transpose.o
|
|
OBJS-$(CONFIG_TRIM_FILTER) += trim.o
|
|
OBJS-$(CONFIG_UNSHARP_FILTER) += vf_unsharp.o
|
|
OBJS-$(CONFIG_VFLIP_FILTER) += vf_vflip.o
|
|
OBJS-$(CONFIG_VPP_QSV_FILTER) += vf_vpp_qsv.o
|
|
OBJS-$(CONFIG_YADIF_FILTER) += vf_yadif.o
|
|
|
|
OBJS-$(CONFIG_NULLSINK_FILTER) += vsink_nullsink.o
|
|
|
|
OBJS-$(CONFIG_COLOR_FILTER) += vsrc_color.o
|
|
OBJS-$(CONFIG_FREI0R_SRC_FILTER) += vf_frei0r.o
|
|
OBJS-$(CONFIG_MOVIE_FILTER) += vsrc_movie.o
|
|
OBJS-$(CONFIG_NULLSRC_FILTER) += vsrc_nullsrc.o
|
|
OBJS-$(CONFIG_RGBTESTSRC_FILTER) += vsrc_testsrc.o
|
|
OBJS-$(CONFIG_TESTSRC_FILTER) += vsrc_testsrc.o
|
|
|
|
SKIPHEADERS-$(CONFIG_QSVVPP) += qsvvpp.h
|
|
|
|
TOOLS = graph2dot
|
|
TESTPROGS = filtfmts
|