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
d32eed5c
Commit
d32eed5c
authored
Dec 04, 2011
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yadif: support 10bit YUV
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
4f3667ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vf_yadif.c
libavfilter/vf_yadif.c
+5
-2
No files found.
libavfilter/vf_yadif.c
View file @
d32eed5c
...
...
@@ -145,7 +145,7 @@ static void filter(AVFilterContext *ctx, AVFilterBufferRef *dstpic,
int
w
=
dstpic
->
video
->
w
;
int
h
=
dstpic
->
video
->
h
;
int
refs
=
yadif
->
cur
->
linesize
[
i
];
int
df
=
(
yadif
->
csp
->
comp
[
i
].
depth_minus1
+
1
)
/
8
;
int
df
=
(
yadif
->
csp
->
comp
[
i
].
depth_minus1
+
8
)
/
8
;
if
(
i
==
1
||
i
==
2
)
{
/* Why is this not part of the per-plane description thing? */
...
...
@@ -212,7 +212,7 @@ static void return_frame(AVFilterContext *ctx, int is_second)
if
(
!
yadif
->
csp
)
yadif
->
csp
=
&
av_pix_fmt_descriptors
[
link
->
format
];
if
(
yadif
->
csp
->
comp
[
0
].
depth_minus1
==
15
)
if
(
yadif
->
csp
->
comp
[
0
].
depth_minus1
/
8
==
1
)
yadif
->
filter_line
=
filter_line_c_16bit
;
filter
(
ctx
,
yadif
->
out
,
tff
^
!
is_second
,
tff
);
...
...
@@ -354,6 +354,9 @@ static int query_formats(AVFilterContext *ctx)
AV_NE
(
PIX_FMT_GRAY16BE
,
PIX_FMT_GRAY16LE
),
PIX_FMT_YUV440P
,
PIX_FMT_YUVJ440P
,
AV_NE
(
PIX_FMT_YUV420P10BE
,
PIX_FMT_YUV420P10LE
),
AV_NE
(
PIX_FMT_YUV422P10BE
,
PIX_FMT_YUV422P10LE
),
AV_NE
(
PIX_FMT_YUV444P10BE
,
PIX_FMT_YUV444P10LE
),
AV_NE
(
PIX_FMT_YUV420P16BE
,
PIX_FMT_YUV420P16LE
),
AV_NE
(
PIX_FMT_YUV422P16BE
,
PIX_FMT_YUV422P16LE
),
AV_NE
(
PIX_FMT_YUV444P16BE
,
PIX_FMT_YUV444P16LE
),
...
...
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