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
7c3f7e6e
Commit
7c3f7e6e
authored
Jun 17, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/jpeg2000dwt: Support 9/7 singularity cases on the encoder side
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
98410244
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
14 deletions
+24
-14
jpeg2000dwt.c
libavcodec/jpeg2000dwt.c
+12
-2
vsynth1-jpeg2000-97
tests/ref/vsynth/vsynth1-jpeg2000-97
+4
-4
vsynth2-jpeg2000-97
tests/ref/vsynth/vsynth2-jpeg2000-97
+4
-4
vsynth_lena-jpeg2000-97
tests/ref/vsynth/vsynth_lena-jpeg2000-97
+4
-4
No files found.
libavcodec/jpeg2000dwt.c
View file @
7c3f7e6e
...
...
@@ -150,8 +150,13 @@ static void sd_1d97_float(float *p, int i0, int i1)
{
int
i
;
if
(
i1
==
i0
+
1
)
if
(
i1
<=
i0
+
1
)
{
if
(
i0
==
1
)
p
[
1
]
*=
F_LFTG_X
;
else
p
[
0
]
*=
F_LFTG_K
;
return
;
}
extend97_float
(
p
,
i0
,
i1
);
i0
++
;
i1
++
;
...
...
@@ -222,8 +227,13 @@ static void sd_1d97_int(int *p, int i0, int i1)
{
int
i
;
if
(
i1
==
i0
+
1
)
if
(
i1
<=
i0
+
1
)
{
if
(
i0
==
1
)
p
[
1
]
=
(
p
[
1
]
*
I_LFTG_X
+
(
1
<<
15
))
>>
16
;
else
p
[
0
]
=
(
p
[
0
]
*
I_LFTG_K
+
(
1
<<
15
))
>>
16
;
return
;
}
extend97_int
(
p
,
i0
,
i1
);
i0
++
;
i1
++
;
...
...
tests/ref/vsynth/vsynth1-jpeg2000-97
View file @
7c3f7e6e
dfb35e733795195c6519ecc37e953931
*tests/data/fate/vsynth1-jpeg2000-97.avi
224313
6
tests/data/fate/vsynth1-jpeg2000-97.avi
30a9c13e18fe4acaf28062b5003bb671
*tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
stddev: 6.
41 PSNR: 31.99
MAXDIFF: 75 bytes: 7603200/ 7603200
95a06cbed5f085f5081653ec55a4dfe3
*tests/data/fate/vsynth1-jpeg2000-97.avi
224313
2
tests/data/fate/vsynth1-jpeg2000-97.avi
cc52cfa56b1bbd0fb011af37a2b94170
*tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
stddev: 6.
23 PSNR: 32.23
MAXDIFF: 75 bytes: 7603200/ 7603200
tests/ref/vsynth/vsynth2-jpeg2000-97
View file @
7c3f7e6e
f8880f48a46ad43623d00de15ecba2cd
*tests/data/fate/vsynth2-jpeg2000-97.avi
1467
472
tests/data/fate/vsynth2-jpeg2000-97.avi
9ec4f90641d5d0e6424184b65492367
6 *tests/data/fate/vsynth2-jpeg2000-97.out.rawvideo
stddev:
6.32 PSNR: 32.11
MAXDIFF: 57 bytes: 7603200/ 7603200
156d67def9f0c1818a3e338bf85059c6
*tests/data/fate/vsynth2-jpeg2000-97.avi
1467
526
tests/data/fate/vsynth2-jpeg2000-97.avi
f9bd95734ebc92843cfd66b418bbdb9
6 *tests/data/fate/vsynth2-jpeg2000-97.out.rawvideo
stddev:
5.44 PSNR: 33.42
MAXDIFF: 57 bytes: 7603200/ 7603200
tests/ref/vsynth/vsynth_lena-jpeg2000-97
View file @
7c3f7e6e
ba27504dcabe43d6608798c9cadc5cc
a *tests/data/fate/vsynth_lena-jpeg2000-97.avi
111895
6
tests/data/fate/vsynth_lena-jpeg2000-97.avi
9d69ac6d46152ed2d6dd6a90d5793c80
*tests/data/fate/vsynth_lena-jpeg2000-97.out.rawvideo
stddev:
5.32 PSNR: 33.61
MAXDIFF: 60 bytes: 7603200/ 7603200
52771e812599277d65585b5849836bd
a *tests/data/fate/vsynth_lena-jpeg2000-97.avi
111895
8
tests/data/fate/vsynth_lena-jpeg2000-97.avi
1e53a235d1378010e14859d4d0d740f7
*tests/data/fate/vsynth_lena-jpeg2000-97.out.rawvideo
stddev:
4.94 PSNR: 34.24
MAXDIFF: 60 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