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
e0135a4b
Commit
e0135a4b
authored
Jun 11, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/rotate: add angle command
parent
6397264e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
filters.texi
doc/filters.texi
+13
-0
version.h
libavfilter/version.h
+1
-1
vf_rotate.c
libavfilter/vf_rotate.c
+24
-0
No files found.
doc/filters.texi
View file @
e0135a4b
...
@@ -5883,6 +5883,19 @@ rotate=2*PI*t:ow='min(iw,ih)/sqrt(2)':oh=ow:c=none
...
@@ -5883,6 +5883,19 @@ rotate=2*PI*t:ow='min(iw,ih)/sqrt(2)':oh=ow:c=none
@end example
@end example
@end itemize
@end itemize
@subsection Commands
The filter supports the following commands:
@table @option
@item a, angle
Set the angle expression.
The command accepts the same syntax of the corresponding option.
If the specified expression is not valid, it is kept at its current
value.
@end table
@section sab
@section sab
Apply Shape Adaptive Blur.
Apply Shape Adaptive Blur.
...
...
libavfilter/version.h
View file @
e0135a4b
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MINOR 76
#define LIBAVFILTER_VERSION_MINOR 76
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_MICRO 10
1
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
LIBAVFILTER_VERSION_MINOR, \
...
...
libavfilter/vf_rotate.c
View file @
e0135a4b
...
@@ -409,6 +409,29 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -409,6 +409,29 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return
ff_filter_frame
(
outlink
,
out
);
return
ff_filter_frame
(
outlink
,
out
);
}
}
static
int
process_command
(
AVFilterContext
*
ctx
,
const
char
*
cmd
,
const
char
*
args
,
char
*
res
,
int
res_len
,
int
flags
)
{
RotContext
*
rot
=
ctx
->
priv
;
int
ret
;
if
(
!
strcmp
(
cmd
,
"angle"
)
||
!
strcmp
(
cmd
,
"a"
))
{
AVExpr
*
old
=
rot
->
angle_expr
;
ret
=
av_expr_parse
(
&
rot
->
angle_expr
,
args
,
var_names
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
ctx
);
if
(
ret
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error when parsing the expression '%s' for angle command
\n
"
,
args
);
rot
->
angle_expr
=
old
;
return
ret
;
}
av_expr_free
(
old
);
}
else
ret
=
AVERROR
(
ENOSYS
);
return
ret
;
}
static
const
AVFilterPad
rotate_inputs
[]
=
{
static
const
AVFilterPad
rotate_inputs
[]
=
{
{
{
.
name
=
"default"
,
.
name
=
"default"
,
...
@@ -434,6 +457,7 @@ AVFilter avfilter_vf_rotate = {
...
@@ -434,6 +457,7 @@ AVFilter avfilter_vf_rotate = {
.
init
=
init
,
.
init
=
init
,
.
uninit
=
uninit
,
.
uninit
=
uninit
,
.
query_formats
=
query_formats
,
.
query_formats
=
query_formats
,
.
process_command
=
process_command
,
.
inputs
=
rotate_inputs
,
.
inputs
=
rotate_inputs
,
.
outputs
=
rotate_outputs
,
.
outputs
=
rotate_outputs
,
.
priv_class
=
&
rotate_class
,
.
priv_class
=
&
rotate_class
,
...
...
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