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
f3f4e133
Commit
f3f4e133
authored
Jul 26, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_scale: use sws_getCoefficients()
Found-by: wm4 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
205f423e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
vf_scale.c
libavfilter/vf_scale.c
+1
-11
No files found.
libavfilter/vf_scale.c
View file @
f3f4e133
...
...
@@ -194,16 +194,6 @@ static int query_formats(AVFilterContext *ctx)
static
const
int
*
parse_yuv_type
(
const
char
*
s
,
enum
AVColorSpace
colorspace
)
{
const
static
int32_t
yuv2rgb_coeffs
[
8
][
4
]
=
{
{
117504
,
138453
,
13954
,
34903
},
{
117504
,
138453
,
13954
,
34903
},
/* ITU-R Rec. 709 (1990) */
{
104597
,
132201
,
25675
,
53279
},
/* unspecified */
{
104597
,
132201
,
25675
,
53279
},
/* reserved */
{
104448
,
132798
,
24759
,
53109
},
/* FCC */
{
104597
,
132201
,
25675
,
53279
},
/* ITU-R Rec. 624-4 System B, G */
{
104597
,
132201
,
25675
,
53279
},
/* SMPTE 170M */
{
117579
,
136230
,
16907
,
35559
}
/* SMPTE 240M (1987) */
};
if
(
!
s
)
s
=
"bt601"
;
...
...
@@ -221,7 +211,7 @@ static const int *parse_yuv_type(const char *s, enum AVColorSpace colorspace)
colorspace
=
AVCOL_SPC_BT470BG
;
}
return
yuv2rgb_coeffs
[
colorspace
]
;
return
sws_getCoefficients
(
colorspace
)
;
}
static
int
config_props
(
AVFilterLink
*
outlink
)
...
...
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