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
9253cc49
Commit
9253cc49
authored
May 07, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/diracdec: Replace default_bsep[] by multiplication
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
21b30947
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
diracdec.c
libavcodec/diracdec.c
+2
-3
No files found.
libavcodec/diracdec.c
View file @
9253cc49
...
@@ -872,7 +872,6 @@ static void init_planes(DiracContext *s)
...
@@ -872,7 +872,6 @@ static void init_planes(DiracContext *s)
static
int
dirac_unpack_prediction_parameters
(
DiracContext
*
s
)
static
int
dirac_unpack_prediction_parameters
(
DiracContext
*
s
)
{
{
static
const
uint8_t
default_blen
[]
=
{
4
,
12
,
16
,
24
};
static
const
uint8_t
default_blen
[]
=
{
4
,
12
,
16
,
24
};
static
const
uint8_t
default_bsep
[]
=
{
4
,
8
,
12
,
16
};
GetBitContext
*
gb
=
&
s
->
gb
;
GetBitContext
*
gb
=
&
s
->
gb
;
unsigned
idx
,
ref
;
unsigned
idx
,
ref
;
...
@@ -896,8 +895,8 @@ static int dirac_unpack_prediction_parameters(DiracContext *s)
...
@@ -896,8 +895,8 @@ static int dirac_unpack_prediction_parameters(DiracContext *s)
/*[DIRAC_STD] preset_block_params(index). Table 11.1 */
/*[DIRAC_STD] preset_block_params(index). Table 11.1 */
s
->
plane
[
0
].
xblen
=
default_blen
[
idx
-
1
];
s
->
plane
[
0
].
xblen
=
default_blen
[
idx
-
1
];
s
->
plane
[
0
].
yblen
=
default_blen
[
idx
-
1
];
s
->
plane
[
0
].
yblen
=
default_blen
[
idx
-
1
];
s
->
plane
[
0
].
xbsep
=
default_bsep
[
idx
-
1
]
;
s
->
plane
[
0
].
xbsep
=
4
*
idx
;
s
->
plane
[
0
].
ybsep
=
default_bsep
[
idx
-
1
]
;
s
->
plane
[
0
].
ybsep
=
4
*
idx
;
}
}
/*[DIRAC_STD] 11.2.4 motion_data_dimensions()
/*[DIRAC_STD] 11.2.4 motion_data_dimensions()
Calculated in function dirac_unpack_block_motion_data */
Calculated in function dirac_unpack_block_motion_data */
...
...
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