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
42244ce0
Commit
42244ce0
authored
Feb 23, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intrax8: Move a comment to the place it corresponds
parent
75056254
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
intrax8.c
libavcodec/intrax8.c
+5
-6
No files found.
libavcodec/intrax8.c
View file @
42244ce0
...
@@ -152,11 +152,11 @@ static inline int x8_get_orient_vlc(IntraX8Context * w){
...
@@ -152,11 +152,11 @@ static inline int x8_get_orient_vlc(IntraX8Context * w){
return
get_vlc2
(
&
s
->
gb
,
w
->
j_orient_vlc
->
table
,
OR_VLC_BITS
,
OR_VLC_MTD
);
return
get_vlc2
(
&
s
->
gb
,
w
->
j_orient_vlc
->
table
,
OR_VLC_BITS
,
OR_VLC_MTD
);
}
}
#define extra_bits(eb)
(eb)
#define extra_bits(eb)
(eb) // 3 bits
#define extra_run
(0xFF<<8)
#define extra_run
(0xFF << 8) // 1 bit
#define extra_level
(0x00<<8)
#define extra_level
(0x00 << 8) // 1 bit
#define
run_offset(r) ((r)<<16)
#define
run_offset(r) ((r) << 16) // 6 bits
#define level_offset(l)
((l)<<24)
#define level_offset(l)
((l) << 24) // 5 bits
static
const
uint32_t
ac_decode_table
[]
=
{
static
const
uint32_t
ac_decode_table
[]
=
{
/*46*/
extra_bits
(
3
)
|
extra_run
|
run_offset
(
16
)
|
level_offset
(
0
),
/*46*/
extra_bits
(
3
)
|
extra_run
|
run_offset
(
16
)
|
level_offset
(
0
),
/*47*/
extra_bits
(
3
)
|
extra_run
|
run_offset
(
24
)
|
level_offset
(
0
),
/*47*/
extra_bits
(
3
)
|
extra_run
|
run_offset
(
24
)
|
level_offset
(
0
),
...
@@ -193,7 +193,6 @@ static const uint32_t ac_decode_table[]={
...
@@ -193,7 +193,6 @@ static const uint32_t ac_decode_table[]={
/*71*/
extra_bits
(
2
)
|
extra_level
|
run_offset
(
1
)
|
level_offset
(
3
),
/*71*/
extra_bits
(
2
)
|
extra_level
|
run_offset
(
1
)
|
level_offset
(
3
),
/*72*/
extra_bits
(
3
)
|
extra_level
|
run_offset
(
1
)
|
level_offset
(
7
),
/*72*/
extra_bits
(
3
)
|
extra_level
|
run_offset
(
1
)
|
level_offset
(
7
),
};
};
//extra_bits = 3bits; extra_run/level = 1 bit; run_offset = 6bits; level_offset = 5 bits;
#undef extra_bits
#undef extra_bits
#undef extra_run
#undef extra_run
#undef extra_level
#undef extra_level
...
...
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