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
9c0aba43
Commit
9c0aba43
authored
Jul 13, 2016
by
Rostislav Pehlivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dirac_vlc: remove redundant macro declaration
Signed-off-by:
Rostislav Pehlivanov
<
atomnuker@gmail.com
>
parent
e24c31b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
dirac_vlc.c
libavcodec/dirac_vlc.c
+4
-8
No files found.
libavcodec/dirac_vlc.c
View file @
9c0aba43
...
...
@@ -31,6 +31,10 @@
residual N = B ? CONVERT_TO_RESIDUE(I, B) : 0; \
av_unused int32_t N ## _bits = B
#define APPEND_RESIDUE(N, M) \
N |= M >> (N ## _bits); \
N ## _bits += (M ## _bits)
int
ff_dirac_golomb_read_32bit
(
DiracGolombLUT
*
lut_ctx
,
const
uint8_t
*
buf
,
int
bytes
,
uint8_t
*
_dst
,
int
coeffs
)
{
...
...
@@ -39,10 +43,6 @@ int ff_dirac_golomb_read_32bit(DiracGolombLUT *lut_ctx, const uint8_t *buf,
DiracGolombLUT
*
future
[
4
],
*
l
=
&
lut_ctx
[
2
*
LUT_SIZE
+
buf
[
0
]];
INIT_RESIDUE
(
res
,
0
,
1
);
#define APPEND_RESIDUE(N, M) \
N |= M >> (N ## _bits); \
N ## _bits += (M ## _bits)
for
(
b
=
1
;
b
<=
bytes
;
b
++
)
{
future
[
0
]
=
&
lut_ctx
[
buf
[
b
]];
future
[
1
]
=
future
[
0
]
+
1
*
LUT_SIZE
;
...
...
@@ -83,10 +83,6 @@ int ff_dirac_golomb_read_16bit(DiracGolombLUT *lut_ctx, const uint8_t *buf,
DiracGolombLUT
*
future
[
4
],
*
l
=
&
lut_ctx
[
2
*
LUT_SIZE
+
buf
[
0
]];
INIT_RESIDUE
(
res
,
0
,
1
);
#define APPEND_RESIDUE(N, M) \
N |= M >> (N ## _bits); \
N ## _bits += (M ## _bits)
for
(
b
=
1
;
b
<=
bytes
;
b
++
)
{
future
[
0
]
=
&
lut_ctx
[
buf
[
b
]];
future
[
1
]
=
future
[
0
]
+
1
*
LUT_SIZE
;
...
...
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