Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
dfdc1461
Commit
dfdc1461
authored
Jan 02, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: Add filters to run arbitrary OpenCL programs
parent
202b59cd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
447 additions
and
0 deletions
+447
-0
configure
configure
+2
-0
Makefile
libavfilter/Makefile
+2
-0
allfilters.c
libavfilter/allfilters.c
+2
-0
vf_program_opencl.c
libavfilter/vf_program_opencl.c
+441
-0
No files found.
configure
View file @
dfdc1461
...
...
@@ -3235,6 +3235,7 @@ negate_filter_deps="lut_filter"
nnedi_filter_deps
=
"gpl"
ocr_filter_deps
=
"libtesseract"
ocv_filter_deps
=
"libopencv"
openclsrc_filter_deps
=
"opencl"
overlay_opencl_filter_deps
=
"opencl"
overlay_qsv_filter_deps
=
"libmfx"
overlay_qsv_filter_select
=
"qsvvpp"
...
...
@@ -3244,6 +3245,7 @@ perspective_filter_deps="gpl"
phase_filter_deps
=
"gpl"
pp7_filter_deps
=
"gpl"
pp_filter_deps
=
"gpl postproc"
program_opencl_filter_deps
=
"opencl"
pullup_filter_deps
=
"gpl"
removelogo_filter_deps
=
"avcodec avformat swscale"
repeatfields_filter_deps
=
"gpl"
...
...
libavfilter/Makefile
View file @
dfdc1461
...
...
@@ -275,6 +275,7 @@ OBJS-$(CONFIG_PP_FILTER) += vf_pp.o
OBJS-$(CONFIG_PP7_FILTER)
+=
vf_pp7.o
OBJS-$(CONFIG_PREMULTIPLY_FILTER)
+=
vf_premultiply.o
framesync.o
OBJS-$(CONFIG_PREWITT_FILTER)
+=
vf_convolution.o
OBJS-$(CONFIG_PROGRAM_OPENCL_FILTER)
+=
vf_program_opencl.o
opencl.o
framesync.o
OBJS-$(CONFIG_PSEUDOCOLOR_FILTER)
+=
vf_pseudocolor.o
OBJS-$(CONFIG_PSNR_FILTER)
+=
vf_psnr.o
framesync.o
OBJS-$(CONFIG_PULLUP_FILTER)
+=
vf_pullup.o
...
...
@@ -370,6 +371,7 @@ OBJS-$(CONFIG_LIFE_FILTER) += vsrc_life.o
OBJS-$(CONFIG_MANDELBROT_FILTER)
+=
vsrc_mandelbrot.o
OBJS-$(CONFIG_MPTESTSRC_FILTER)
+=
vsrc_mptestsrc.o
OBJS-$(CONFIG_NULLSRC_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_OPENCLSRC_FILTER)
+=
vf_program_opencl.o
opencl.o
OBJS-$(CONFIG_RGBTESTSRC_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_SMPTEBARS_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_SMPTEHDBARS_FILTER)
+=
vsrc_testsrc.o
...
...
libavfilter/allfilters.c
View file @
dfdc1461
...
...
@@ -284,6 +284,7 @@ static void register_all(void)
REGISTER_FILTER
(
PP7
,
pp7
,
vf
);
REGISTER_FILTER
(
PREMULTIPLY
,
premultiply
,
vf
);
REGISTER_FILTER
(
PREWITT
,
prewitt
,
vf
);
REGISTER_FILTER
(
PROGRAM_OPENCL
,
program_opencl
,
vf
);
REGISTER_FILTER
(
PSEUDOCOLOR
,
pseudocolor
,
vf
);
REGISTER_FILTER
(
PSNR
,
psnr
,
vf
);
REGISTER_FILTER
(
PULLUP
,
pullup
,
vf
);
...
...
@@ -378,6 +379,7 @@ static void register_all(void)
REGISTER_FILTER
(
MANDELBROT
,
mandelbrot
,
vsrc
);
REGISTER_FILTER
(
MPTESTSRC
,
mptestsrc
,
vsrc
);
REGISTER_FILTER
(
NULLSRC
,
nullsrc
,
vsrc
);
REGISTER_FILTER
(
OPENCLSRC
,
openclsrc
,
vsrc
);
REGISTER_FILTER
(
RGBTESTSRC
,
rgbtestsrc
,
vsrc
);
REGISTER_FILTER
(
SMPTEBARS
,
smptebars
,
vsrc
);
REGISTER_FILTER
(
SMPTEHDBARS
,
smptehdbars
,
vsrc
);
...
...
libavfilter/vf_program_opencl.c
0 → 100644
View file @
dfdc1461
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment