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
6a9af925
Commit
6a9af925
authored
Jan 05, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow remaining 32bit RGB packed pix_fmts in kerndeint filter.
Reviewed-by: Stefano Sabatini
parent
860b5c0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
vf_kerndeint.c
libavfilter/vf_kerndeint.c
+7
-3
kerndeint
tests/ref/lavfi/kerndeint
+7
-0
No files found.
libavfilter/vf_kerndeint.c
View file @
6a9af925
...
@@ -82,7 +82,10 @@ static int query_formats(AVFilterContext *ctx)
...
@@ -82,7 +82,10 @@ static int query_formats(AVFilterContext *ctx)
static
const
enum
PixelFormat
pix_fmts
[]
=
{
static
const
enum
PixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUYV422
,
AV_PIX_FMT_YUYV422
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_0RGB
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_0BGR
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_RGB0
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_BGR0
,
AV_PIX_FMT_NONE
AV_PIX_FMT_NONE
};
};
...
@@ -200,10 +203,11 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
...
@@ -200,10 +203,11 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
(
abs
((
int
)
prvp
[
x
]
-
(
int
)
srcp
[
x
])
>
thresh
)
||
(
abs
((
int
)
prvp
[
x
]
-
(
int
)
srcp
[
x
])
>
thresh
)
||
(
abs
((
int
)
prvpp
[
x
]
-
(
int
)
srcpp
[
x
])
>
thresh
)
||
(
abs
((
int
)
prvpp
[
x
]
-
(
int
)
srcpp
[
x
])
>
thresh
)
||
(
abs
((
int
)
prvpn
[
x
]
-
(
int
)
srcpn
[
x
])
>
thresh
))
{
(
abs
((
int
)
prvpn
[
x
]
-
(
int
)
srcpn
[
x
])
>
thresh
))
{
int
is_packed_rgb
=
av_pix_fmt_desc_get
(
inlink
->
format
)
->
flags
&
PIX_FMT_RGB
;
if
(
map
)
{
if
(
map
)
{
g
=
x
&
~
3
;
g
=
x
&
~
3
;
if
(
i
nlink
->
format
==
AV_PIX_FMT_ARGB
)
{
if
(
i
s_packed_rgb
)
{
AV_WB32
(
dstp
+
g
,
0xffffffff
);
AV_WB32
(
dstp
+
g
,
0xffffffff
);
x
=
g
+
3
;
x
=
g
+
3
;
}
else
if
(
inlink
->
format
==
AV_PIX_FMT_YUYV422
)
{
}
else
if
(
inlink
->
format
==
AV_PIX_FMT_YUYV422
)
{
...
@@ -214,7 +218,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
...
@@ -214,7 +218,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
dstp
[
x
]
=
plane
==
0
?
235
:
128
;
dstp
[
x
]
=
plane
==
0
?
235
:
128
;
}
}
}
else
{
}
else
{
if
(
i
nlink
->
format
==
AV_PIX_FMT_ARGB
)
{
if
(
i
s_packed_rgb
)
{
hi
=
255
;
hi
=
255
;
lo
=
0
;
lo
=
0
;
}
else
if
(
inlink
->
format
==
AV_PIX_FMT_YUYV422
)
{
}
else
if
(
inlink
->
format
==
AV_PIX_FMT_YUYV422
)
{
...
...
tests/ref/lavfi/kerndeint
View file @
6a9af925
0bgr 58fb0bda60562ce17e75f1c3459d0504
0rgb d29f6a7b63ade359ec81f5856633ec06
abgr 71071045b8ec66a6d0a38bb3fed1ca51
argb 93ba0daa1e945ad1a6f8c0c1cd2e1858
argb 93ba0daa1e945ad1a6f8c0c1cd2e1858
bgr0 364b8bcd1c7a384902077bc7190c5ea3
bgra 81ac8315a4c66e363bc6fa3e99d9cd2b
rgb0 ae0c2afbc266345c1372276755595105
rgba 42a6cc9b815ca0ee69c29db3616ce25e
yuv420p a935cce07c5287b92c6d5220361866ed
yuv420p a935cce07c5287b92c6d5220361866ed
yuyv422 f549c98059ba9ce50e28204256d13b5d
yuyv422 f549c98059ba9ce50e28204256d13b5d
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