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
8f8c0800
Commit
8f8c0800
authored
Jun 06, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Originally committed as revision 1932 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bc634f6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
cabac.c
libavcodec/cabac.c
+1
-1
cabac.h
libavcodec/cabac.h
+5
-1
No files found.
libavcodec/cabac.c
View file @
8f8c0800
...
...
@@ -158,7 +158,7 @@ STOP_TIMER("put_cabac_u")
for(i=0; i<SIZE; i++){
START_TIMER
put_cabac_ueg(&c, state, r[i],
0,
3, 0, 1, 2);
put_cabac_ueg(&c, state, r[i], 3, 0, 1, 2);
STOP_TIMER("put_cabac_ueg")
}
...
...
libavcodec/cabac.h
View file @
8f8c0800
...
...
@@ -199,12 +199,16 @@ static inline void put_cabac_u(CABACContext *c, uint8_t * state, int v, int max,
/**
* put unary exp golomb k-th order binarization.
*/
static
inline
void
put_cabac_ueg
(
CABACContext
*
c
,
uint8_t
*
state
,
int
v
,
int
sign
,
int
max
,
int
is_signed
,
int
k
,
int
max_index
){
static
inline
void
put_cabac_ueg
(
CABACContext
*
c
,
uint8_t
*
state
,
int
v
,
int
max
,
int
is_signed
,
int
k
,
int
max_index
){
int
i
;
if
(
v
==
0
)
put_cabac
(
c
,
state
,
0
);
else
{
const
int
sign
=
v
<
0
;
if
(
is_signed
)
v
=
ABS
(
v
);
if
(
v
<
max
){
for
(
i
=
0
;
i
<
v
;
i
++
){
put_cabac
(
c
,
state
,
1
);
...
...
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