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
0e921e97
Commit
0e921e97
authored
Dec 23, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add get_ue_golomb_31()
Originally committed as revision 16298 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
be8497b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
golomb.h
libavcodec/golomb.h
+17
-0
No files found.
libavcodec/golomb.h
View file @
0e921e97
...
...
@@ -74,6 +74,23 @@ static inline int get_ue_golomb(GetBitContext *gb){
}
}
/**
* read unsigned exp golomb code, constraint to a max of 31
*/
static
inline
int
get_ue_golomb_31
(
GetBitContext
*
gb
){
unsigned
int
buf
;
OPEN_READER
(
re
,
gb
);
UPDATE_CACHE
(
re
,
gb
);
buf
=
GET_CACHE
(
re
,
gb
);
buf
>>=
32
-
9
;
LAST_SKIP_BITS
(
re
,
gb
,
ff_golomb_vlc_len
[
buf
]);
CLOSE_READER
(
re
,
gb
);
return
ff_ue_golomb_vlc_code
[
buf
];
}
static
inline
int
svq3_get_ue_golomb
(
GetBitContext
*
gb
){
uint32_t
buf
;
...
...
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