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
3bb6ce1a
Commit
3bb6ce1a
authored
Dec 09, 2015
by
Kieran Kunhya
Committed by
Rostislav Pehlivanov
Dec 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diracdec: Rename lowdelay_subband to decode_subband because it is shared with HQ profile
parent
3f07f12f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
diracdec.c
libavcodec/diracdec.c
+8
-10
No files found.
libavcodec/diracdec.c
View file @
3bb6ce1a
...
...
@@ -719,11 +719,9 @@ static void decode_component(DiracContext *s, int comp)
return; \
} \
/* [DIRAC_STD] 13.5.5.2 Luma slice subband data. luma_slice_band(level,orient,sx,sy) --> if b2 == NULL */
/* [DIRAC_STD] 13.5.5.3 Chroma slice subband data. chroma_slice_band(level,orient,sx,sy) --> if b2 != NULL */
static
void
lowdelay_subband
(
DiracContext
*
s
,
GetBitContext
*
gb
,
int
quant
,
int
slice_x
,
int
slice_y
,
int
bits_end
,
SubBand
*
b1
,
SubBand
*
b2
)
static
void
decode_subband
(
DiracContext
*
s
,
GetBitContext
*
gb
,
int
quant
,
int
slice_x
,
int
slice_y
,
int
bits_end
,
SubBand
*
b1
,
SubBand
*
b2
)
{
int
left
=
b1
->
width
*
slice_x
/
s
->
lowdelay
.
num_x
;
int
right
=
b1
->
width
*
(
slice_x
+
1
)
/
s
->
lowdelay
.
num_x
;
...
...
@@ -792,8 +790,8 @@ static int decode_lowdelay_slice(AVCodecContext *avctx, void *arg)
for
(
level
=
0
;
level
<
s
->
wavelet_depth
;
level
++
)
for
(
orientation
=
!!
level
;
orientation
<
4
;
orientation
++
)
{
quant
=
FFMAX
(
quant_base
-
s
->
lowdelay
.
quant
[
level
][
orientation
],
0
);
lowdelay
_subband
(
s
,
gb
,
quant
,
slice
->
slice_x
,
slice
->
slice_y
,
luma_end
,
&
s
->
plane
[
0
].
band
[
level
][
orientation
],
NULL
);
decode
_subband
(
s
,
gb
,
quant
,
slice
->
slice_x
,
slice
->
slice_y
,
luma_end
,
&
s
->
plane
[
0
].
band
[
level
][
orientation
],
NULL
);
}
/* consume any unused bits from luma */
...
...
@@ -805,9 +803,9 @@ static int decode_lowdelay_slice(AVCodecContext *avctx, void *arg)
for
(
level
=
0
;
level
<
s
->
wavelet_depth
;
level
++
)
for
(
orientation
=
!!
level
;
orientation
<
4
;
orientation
++
)
{
quant
=
FFMAX
(
quant_base
-
s
->
lowdelay
.
quant
[
level
][
orientation
],
0
);
lowdelay
_subband
(
s
,
gb
,
quant
,
slice
->
slice_x
,
slice
->
slice_y
,
chroma_end
,
&
s
->
plane
[
1
].
band
[
level
][
orientation
],
&
s
->
plane
[
2
].
band
[
level
][
orientation
]);
decode
_subband
(
s
,
gb
,
quant
,
slice
->
slice_x
,
slice
->
slice_y
,
chroma_end
,
&
s
->
plane
[
1
].
band
[
level
][
orientation
],
&
s
->
plane
[
2
].
band
[
level
][
orientation
]);
}
return
0
;
...
...
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