Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b2491566
Commit
b2491566
authored
Dec 30, 2019
by
Zhao Zhili
Committed by
Nicolas George
Dec 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/buffersrc: deprecate sws_param option
parent
e20c6d95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
filters.texi
doc/filters.texi
+4
-4
buffersrc.c
libavfilter/buffersrc.c
+12
-2
version.h
libavfilter/version.h
+4
-1
No files found.
doc/filters.texi
View file @
b2491566
...
@@ -21209,9 +21209,9 @@ Specify the frame rate expected for the video stream.
...
@@ -21209,9 +21209,9 @@ Specify the frame rate expected for the video stream.
The sample (pixel) aspect ratio of the input video.
The sample (pixel) aspect ratio of the input video.
@item sws_param
@item sws_param
Specify the optional parameters to be used for the scale filter which
This option is deprecated and ignored. Prepend @code{sws_flags=@var{flags};}
is automatically inserted when an input change is detected in the
to the filtergraph description to specify swscale flags for automatically
in
put size or format
.
in
serted scalers. See @ref{Filtergraph syntax}
.
@item hw_frames_ctx
@item hw_frames_ctx
When using a hardware pixel format, this should be a reference to an
When using a hardware pixel format, this should be a reference to an
...
@@ -21236,7 +21236,7 @@ buffer=size=320x240:pixfmt=6:time_base=1/24:pixel_aspect=1/1
...
@@ -21236,7 +21236,7 @@ buffer=size=320x240:pixfmt=6:time_base=1/24:pixel_aspect=1/1
Alternatively, the options can be specified as a flat string, but this
Alternatively, the options can be specified as a flat string, but this
syntax is deprecated:
syntax is deprecated:
@var{width}:@var{height}:@var{pix_fmt}:@var{time_base.num}:@var{time_base.den}:@var{pixel_aspect.num}:@var{pixel_aspect.den}
[:@var{sws_param}]
@var{width}:@var{height}:@var{pix_fmt}:@var{time_base.num}:@var{time_base.den}:@var{pixel_aspect.num}:@var{pixel_aspect.den}
@section cellauto
@section cellauto
...
...
libavfilter/buffersrc.c
View file @
b2491566
...
@@ -51,7 +51,9 @@ typedef struct BufferSourceContext {
...
@@ -51,7 +51,9 @@ typedef struct BufferSourceContext {
int
w
,
h
;
int
w
,
h
;
enum
AVPixelFormat
pix_fmt
;
enum
AVPixelFormat
pix_fmt
;
AVRational
pixel_aspect
;
AVRational
pixel_aspect
;
#if FF_API_SWS_PARAM_OPTION
char
*
sws_param
;
char
*
sws_param
;
#endif
AVBufferRef
*
hw_frames_ctx
;
AVBufferRef
*
hw_frames_ctx
;
...
@@ -271,10 +273,16 @@ static av_cold int init_video(AVFilterContext *ctx)
...
@@ -271,10 +273,16 @@ static av_cold int init_video(AVFilterContext *ctx)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
}
}
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"w:%d h:%d pixfmt:%s tb:%d/%d fr:%d/%d sar:%d/%d
sws_param:%s
\n
"
,
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"w:%d h:%d pixfmt:%s tb:%d/%d fr:%d/%d sar:%d/%d
\n
"
,
c
->
w
,
c
->
h
,
av_get_pix_fmt_name
(
c
->
pix_fmt
),
c
->
w
,
c
->
h
,
av_get_pix_fmt_name
(
c
->
pix_fmt
),
c
->
time_base
.
num
,
c
->
time_base
.
den
,
c
->
frame_rate
.
num
,
c
->
frame_rate
.
den
,
c
->
time_base
.
num
,
c
->
time_base
.
den
,
c
->
frame_rate
.
num
,
c
->
frame_rate
.
den
,
c
->
pixel_aspect
.
num
,
c
->
pixel_aspect
.
den
,
(
char
*
)
av_x_if_null
(
c
->
sws_param
,
""
));
c
->
pixel_aspect
.
num
,
c
->
pixel_aspect
.
den
);
#if FF_API_SWS_PARAM_OPTION
if
(
c
->
sws_param
)
av_log
(
ctx
,
AV_LOG_WARNING
,
"sws_param option is deprecated and ignored
\n
"
);
#endif
return
0
;
return
0
;
}
}
...
@@ -296,7 +304,9 @@ static const AVOption buffer_options[] = {
...
@@ -296,7 +304,9 @@ static const AVOption buffer_options[] = {
{
"pixel_aspect"
,
"sample aspect ratio"
,
OFFSET
(
pixel_aspect
),
AV_OPT_TYPE_RATIONAL
,
{
.
dbl
=
0
},
0
,
DBL_MAX
,
V
},
{
"pixel_aspect"
,
"sample aspect ratio"
,
OFFSET
(
pixel_aspect
),
AV_OPT_TYPE_RATIONAL
,
{
.
dbl
=
0
},
0
,
DBL_MAX
,
V
},
{
"time_base"
,
NULL
,
OFFSET
(
time_base
),
AV_OPT_TYPE_RATIONAL
,
{
.
dbl
=
0
},
0
,
DBL_MAX
,
V
},
{
"time_base"
,
NULL
,
OFFSET
(
time_base
),
AV_OPT_TYPE_RATIONAL
,
{
.
dbl
=
0
},
0
,
DBL_MAX
,
V
},
{
"frame_rate"
,
NULL
,
OFFSET
(
frame_rate
),
AV_OPT_TYPE_RATIONAL
,
{
.
dbl
=
0
},
0
,
DBL_MAX
,
V
},
{
"frame_rate"
,
NULL
,
OFFSET
(
frame_rate
),
AV_OPT_TYPE_RATIONAL
,
{
.
dbl
=
0
},
0
,
DBL_MAX
,
V
},
#if FF_API_SWS_PARAM_OPTION
{
"sws_param"
,
NULL
,
OFFSET
(
sws_param
),
AV_OPT_TYPE_STRING
,
.
flags
=
V
},
{
"sws_param"
,
NULL
,
OFFSET
(
sws_param
),
AV_OPT_TYPE_STRING
,
.
flags
=
V
},
#endif
{
NULL
},
{
NULL
},
};
};
...
...
libavfilter/version.h
View file @
b2491566
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 70
#define LIBAVFILTER_VERSION_MINOR 70
#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, \
...
@@ -59,6 +59,9 @@
...
@@ -59,6 +59,9 @@
#ifndef FF_API_FILTER_GET_SET
#ifndef FF_API_FILTER_GET_SET
#define FF_API_FILTER_GET_SET (LIBAVFILTER_VERSION_MAJOR < 8)
#define FF_API_FILTER_GET_SET (LIBAVFILTER_VERSION_MAJOR < 8)
#endif
#endif
#ifndef FF_API_SWS_PARAM_OPTION
#define FF_API_SWS_PARAM_OPTION (LIBAVFILTER_VERSION_MAJOR < 8)
#endif
#ifndef FF_API_NEXT
#ifndef FF_API_NEXT
#define FF_API_NEXT (LIBAVFILTER_VERSION_MAJOR < 8)
#define FF_API_NEXT (LIBAVFILTER_VERSION_MAJOR < 8)
#endif
#endif
...
...
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