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
24a4367a
Commit
24a4367a
authored
Jul 24, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_scale: add input h/v_chr_pos parameters
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e31d2025
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
version.h
libavfilter/version.h
+1
-1
vf_scale.c
libavfilter/vf_scale.c
+6
-0
No files found.
libavfilter/version.h
View file @
24a4367a
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MINOR 81
#define LIBAVFILTER_VERSION_MINOR 81
#define LIBAVFILTER_VERSION_MICRO 10
2
#define LIBAVFILTER_VERSION_MICRO 10
3
#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_scale.c
View file @
24a4367a
...
@@ -99,6 +99,8 @@ typedef struct {
...
@@ -99,6 +99,8 @@ typedef struct {
int
out_h_chr_pos
;
int
out_h_chr_pos
;
int
out_v_chr_pos
;
int
out_v_chr_pos
;
int
in_h_chr_pos
;
int
in_v_chr_pos
;
}
ScaleContext
;
}
ScaleContext
;
static
av_cold
int
init
(
AVFilterContext
*
ctx
)
static
av_cold
int
init
(
AVFilterContext
*
ctx
)
...
@@ -326,6 +328,8 @@ static int config_props(AVFilterLink *outlink)
...
@@ -326,6 +328,8 @@ static int config_props(AVFilterLink *outlink)
av_opt_set_int
(
*
s
,
"dst_format"
,
outfmt
,
0
);
av_opt_set_int
(
*
s
,
"dst_format"
,
outfmt
,
0
);
av_opt_set_int
(
*
s
,
"sws_flags"
,
scale
->
flags
,
0
);
av_opt_set_int
(
*
s
,
"sws_flags"
,
scale
->
flags
,
0
);
av_opt_set_int
(
*
s
,
"src_h_chr_pos"
,
scale
->
in_h_chr_pos
,
0
);
av_opt_set_int
(
*
s
,
"src_v_chr_pos"
,
scale
->
in_v_chr_pos
,
0
);
av_opt_set_int
(
*
s
,
"dst_h_chr_pos"
,
scale
->
out_h_chr_pos
,
0
);
av_opt_set_int
(
*
s
,
"dst_h_chr_pos"
,
scale
->
out_h_chr_pos
,
0
);
av_opt_set_int
(
*
s
,
"dst_v_chr_pos"
,
scale
->
out_v_chr_pos
,
0
);
av_opt_set_int
(
*
s
,
"dst_v_chr_pos"
,
scale
->
out_v_chr_pos
,
0
);
...
@@ -497,6 +501,8 @@ static const AVOption scale_options[] = {
...
@@ -497,6 +501,8 @@ static const AVOption scale_options[] = {
{
"mpeg"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AVCOL_RANGE_MPEG
},
0
,
0
,
FLAGS
,
"range"
},
{
"mpeg"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AVCOL_RANGE_MPEG
},
0
,
0
,
FLAGS
,
"range"
},
{
"tv"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AVCOL_RANGE_JPEG
},
0
,
0
,
FLAGS
,
"range"
},
{
"tv"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AVCOL_RANGE_JPEG
},
0
,
0
,
FLAGS
,
"range"
},
{
"pc"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AVCOL_RANGE_MPEG
},
0
,
0
,
FLAGS
,
"range"
},
{
"pc"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
AVCOL_RANGE_MPEG
},
0
,
0
,
FLAGS
,
"range"
},
{
"in_v_chr_pos"
,
"input vertical chroma position in luma grid/256"
,
OFFSET
(
in_v_chr_pos
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
512
,
FLAGS
},
{
"in_h_chr_pos"
,
"input horizontal chroma position in luma grid/256"
,
OFFSET
(
in_h_chr_pos
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
512
,
FLAGS
},
{
"out_v_chr_pos"
,
"output vertical chroma position in luma grid/256"
,
OFFSET
(
out_v_chr_pos
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
512
,
FLAGS
},
{
"out_v_chr_pos"
,
"output vertical chroma position in luma grid/256"
,
OFFSET
(
out_v_chr_pos
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
512
,
FLAGS
},
{
"out_h_chr_pos"
,
"output horizontal chroma position in luma grid/256"
,
OFFSET
(
out_h_chr_pos
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
512
,
FLAGS
},
{
"out_h_chr_pos"
,
"output horizontal chroma position in luma grid/256"
,
OFFSET
(
out_h_chr_pos
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
512
,
FLAGS
},
{
NULL
},
{
NULL
},
...
...
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