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
7e5cbb3c
Commit
7e5cbb3c
authored
Dec 28, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cljrdec: improve scaling somewhat
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
92e2b59d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
44 deletions
+44
-44
cljr.c
libavcodec/cljr.c
+4
-4
cljr
tests/ref/fate/cljr
+36
-36
cljr
tests/ref/vsynth1/cljr
+2
-2
cljr
tests/ref/vsynth2/cljr
+2
-2
No files found.
libavcodec/cljr.c
View file @
7e5cbb3c
...
...
@@ -87,10 +87,10 @@ static int decode_frame(AVCodecContext *avctx,
uint8_t
*
cb
=
&
a
->
picture
.
data
[
1
][
y
*
a
->
picture
.
linesize
[
1
]];
uint8_t
*
cr
=
&
a
->
picture
.
data
[
2
][
y
*
a
->
picture
.
linesize
[
2
]];
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
4
)
{
luma
[
3
]
=
get_bits
(
&
gb
,
5
)
<<
3
;
luma
[
2
]
=
get_bits
(
&
gb
,
5
)
<<
3
;
luma
[
1
]
=
get_bits
(
&
gb
,
5
)
<<
3
;
luma
[
0
]
=
get_bits
(
&
gb
,
5
)
<<
3
;
luma
[
3
]
=
(
get_bits
(
&
gb
,
5
)
*
33
)
>>
2
;
luma
[
2
]
=
(
get_bits
(
&
gb
,
5
)
*
33
)
>>
2
;
luma
[
1
]
=
(
get_bits
(
&
gb
,
5
)
*
33
)
>>
2
;
luma
[
0
]
=
(
get_bits
(
&
gb
,
5
)
*
33
)
>>
2
;
luma
+=
4
;
*
(
cb
++
)
=
get_bits
(
&
gb
,
6
)
<<
2
;
*
(
cr
++
)
=
get_bits
(
&
gb
,
6
)
<<
2
;
...
...
tests/ref/fate/cljr
View file @
7e5cbb3c
0, 0, 64800, 0x
44a1c47c
0, 3169, 64800, 0x
649cc3a4
0, 6338, 64800, 0x
cab1b88c
0, 9507, 64800, 0x
f56cb788
0, 12676, 64800, 0x
5336b618
0, 15845, 64800, 0x
2704b438
0, 19013, 64800, 0x
04c7b8e4
0, 22182, 64800, 0x
3185b288
0, 25351, 64800, 0x
a537c410
0, 28520, 64800, 0x
6495c0f8
0, 31689, 64800, 0x
06a1ca1
4
0, 34858, 64800, 0x
69cdd2a0
0, 38027, 64800, 0x
4ad2d828
0, 41196, 64800, 0x
9604dea4
0, 44365, 64800, 0x
1c00e430
0, 47534, 64800, 0x
9afeefe
0
0, 50702, 64800, 0x
c13fdd78
0, 53871, 64800, 0x
8438da7c
0, 57040, 64800, 0x
a0ead278
0, 60209, 64800, 0x
beced2d8
0, 63378, 64800, 0x
85bbd7dc
0, 66547, 64800, 0x
be59ce34
0, 69716, 64800, 0x
d76eccc
c
0, 72885, 64800, 0x
e182b474
0, 76054, 64800, 0x
916cc394
0, 79223, 64800, 0x
7efebd14
0, 82391, 64800, 0x
8d28c9f0
0, 85560, 64800, 0x
00a1c960
0, 88729, 64800, 0x
c164c400
0, 91898, 64800, 0x
fd4dc544
0, 95067, 64800, 0x
01bfbe38
0, 98236, 64800, 0x
ff11b5d0
0, 101405, 64800, 0x
4876bb20
0, 104574, 64800, 0x
756ecb04
0, 107743, 64800, 0x
3b8cd540
0, 110912, 64800, 0x
063ed444
0, 0, 64800, 0x
63132a60
0, 3169, 64800, 0x
b3c729a3
0, 6338, 64800, 0x
a27b1e0e
0, 9507, 64800, 0x
b9131d00
0, 12676, 64800, 0x
af9a1bae
0, 15845, 64800, 0x
11e319c5
0, 19013, 64800, 0x
ee6e1e6b
0, 22182, 64800, 0x
418417e9
0, 25351, 64800, 0x
339d29f4
0, 28520, 64800, 0x
198926c4
0, 31689, 64800, 0x
439a304
4
0, 34858, 64800, 0x
0a4e38e1
0, 38027, 64800, 0x
6e043e7e
0, 41196, 64800, 0x
de434533
0, 44365, 64800, 0x
b58a4ad1
0, 47534, 64800, 0x
aa10571
0
0, 50702, 64800, 0x
1723440c
0, 53871, 64800, 0x
3b064116
0, 57040, 64800, 0x
853f38e4
0, 60209, 64800, 0x
52f53917
0, 63378, 64800, 0x
ea363e5a
0, 66547, 64800, 0x
4d0a344e
0, 69716, 64800, 0x
e49232f
c
0, 72885, 64800, 0x
747b1a02
0, 76054, 64800, 0x
baa82992
0, 79223, 64800, 0x
8e9322db
0, 82391, 64800, 0x
029a2fcf
0, 85560, 64800, 0x
b9a62f6a
0, 88729, 64800, 0x
553329fe
0, 91898, 64800, 0x
9a052b5b
0, 95067, 64800, 0x
e2ff2404
0, 98236, 64800, 0x
aacd1b59
0, 101405, 64800, 0x
17d820de
0, 104574, 64800, 0x
1c9e312c
0, 107743, 64800, 0x
84df3b99
0, 110912, 64800, 0x
f7d13aa1
tests/ref/vsynth1/cljr
View file @
7e5cbb3c
041982e4fa83428c621a127647d47b3f *./tests/data/vsynth1/cljr.avi
5075660 ./tests/data/vsynth1/cljr.avi
f5173ae479fc104903b203260cadf507
*./tests/data/cljr.vsynth1.out.yuv
stddev: 30.
71 PSNR: 18.38
MAXDIFF: 225 bytes: 7603200/ 7603200
e1c4c96c74de3435d0f9f6118c5ed9b5
*./tests/data/cljr.vsynth1.out.yuv
stddev: 30.
53 PSNR: 18.43
MAXDIFF: 225 bytes: 7603200/ 7603200
tests/ref/vsynth2/cljr
View file @
7e5cbb3c
fdc1926e0a599de94513f0a3472b598f *./tests/data/vsynth2/cljr.avi
5075660 ./tests/data/vsynth2/cljr.avi
3db163e55149786e7cf5499b3387bdb1
*./tests/data/cljr.vsynth2.out.yuv
stddev: 10.
80 PSNR: 27.46
MAXDIFF: 65 bytes: 7603200/ 7603200
7df03229ee6361ea11a0d83d4926cb10
*./tests/data/cljr.vsynth2.out.yuv
stddev: 10.
30 PSNR: 27.87
MAXDIFF: 65 bytes: 7603200/ 7603200
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