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
2f296e39
Commit
2f296e39
authored
Jun 13, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: allow building without swscale.
parent
a4880283
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
+13
-9
configure
configure
+2
-2
Makefile
libavfilter/Makefile
+3
-1
allfilters.c
libavfilter/allfilters.c
+1
-4
avfiltergraph.c
libavfilter/avfiltergraph.c
+7
-2
No files found.
configure
View file @
2f296e39
...
...
@@ -1531,16 +1531,16 @@ frei0r_src_filter_extralibs='$ldl'
hqdn3d_filter_deps
=
"gpl"
resample_filter_deps
=
"avresample"
ocv_filter_deps
=
"libopencv"
scale_filter_deps
=
"swscale"
yadif_filter_deps
=
"gpl"
# libraries
avdevice_deps
=
"avcodec avformat"
avfilter_deps
=
"swscale"
avformat_deps
=
"avcodec"
# programs
avconv_deps
=
"avcodec avfilter avformat avresample swscale format_filter
setpts_filter"
s
cale_filter s
etpts_filter"
avplay_deps
=
"avcodec avformat swscale sdl"
avplay_select
=
"rdft"
avprobe_deps
=
"avcodec avformat"
...
...
libavfilter/Makefile
View file @
2f296e39
NAME
=
avfilter
FFLIBS
=
avutil
swscale
FFLIBS
=
avutil
FFLIBS-$(CONFIG_ASYNCTS_FILTER)
+=
avresample
FFLIBS-$(CONFIG_MOVIE_FILTER)
+=
avformat
avcodec
FFLIBS-$(CONFIG_RESAMPLE_FILTER)
+=
avresample
FFLIBS-$(CONFIG_SCALE_FILTER)
+=
swscale
HEADERS
=
avfilter.h
\
avfiltergraph.h
\
...
...
@@ -63,6 +64,7 @@ OBJS-$(CONFIG_OCV_FILTER) += vf_libopencv.o
OBJS-$(CONFIG_OVERLAY_FILTER)
+=
vf_overlay.o
OBJS-$(CONFIG_PAD_FILTER)
+=
vf_pad.o
OBJS-$(CONFIG_PIXDESCTEST_FILTER)
+=
vf_pixdesctest.o
OBJS-$(CONFIG_SCALE_FILTER)
+=
vf_scale.o
OBJS-$(CONFIG_SELECT_FILTER)
+=
vf_select.o
OBJS-$(CONFIG_SETDAR_FILTER)
+=
vf_aspect.o
OBJS-$(CONFIG_SETPTS_FILTER)
+=
vf_setpts.o
...
...
libavfilter/allfilters.c
View file @
2f296e39
...
...
@@ -73,6 +73,7 @@ void avfilter_register_all(void)
REGISTER_FILTER
(
OVERLAY
,
overlay
,
vf
);
REGISTER_FILTER
(
PAD
,
pad
,
vf
);
REGISTER_FILTER
(
PIXDESCTEST
,
pixdesctest
,
vf
);
REGISTER_FILTER
(
SCALE
,
scale
,
vf
);
REGISTER_FILTER
(
SELECT
,
select
,
vf
);
REGISTER_FILTER
(
SETDAR
,
setdar
,
vf
);
REGISTER_FILTER
(
SETPTS
,
setpts
,
vf
);
...
...
@@ -113,8 +114,4 @@ void avfilter_register_all(void)
extern
AVFilter
avfilter_asink_abuffer
;
avfilter_register
(
&
avfilter_asink_abuffer
);
}
{
extern
AVFilter
avfilter_vf_scale
;
avfilter_register
(
&
avfilter_vf_scale
);
}
}
libavfilter/avfiltergraph.c
View file @
2f296e39
...
...
@@ -213,11 +213,16 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
/* couldn't merge format lists. auto-insert conversion filter */
switch
(
link
->
type
)
{
case
AVMEDIA_TYPE_VIDEO
:
if
(
!
(
filter
=
avfilter_get_by_name
(
"scale"
)))
{
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"'scale' filter "
"not present, cannot convert pixel formats.
\n
"
);
return
AVERROR
(
EINVAL
);
}
snprintf
(
inst_name
,
sizeof
(
inst_name
),
"auto-inserted scaler %d"
,
scaler_count
++
);
snprintf
(
scale_args
,
sizeof
(
scale_args
),
"0:0:%s"
,
graph
->
scale_sws_opts
);
if
((
ret
=
avfilter_graph_create_filter
(
&
convert
,
avfilter_get_by_name
(
"scale"
),
if
((
ret
=
avfilter_graph_create_filter
(
&
convert
,
filter
,
inst_name
,
scale_args
,
NULL
,
graph
))
<
0
)
return
ret
;
...
...
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