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
28e4f906
Commit
28e4f906
authored
Jun 06, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
golomb: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6e6dd999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
golomb.h
libavcodec/golomb.h
+7
-7
No files found.
libavcodec/golomb.h
View file @
28e4f906
...
@@ -146,7 +146,7 @@ static inline int svq3_get_ue_golomb(GetBitContext *gb){
...
@@ -146,7 +146,7 @@ static inline int svq3_get_ue_golomb(GetBitContext *gb){
* read unsigned truncated exp golomb code.
* read unsigned truncated exp golomb code.
*/
*/
static
inline
int
get_te0_golomb
(
GetBitContext
*
gb
,
int
range
){
static
inline
int
get_te0_golomb
(
GetBitContext
*
gb
,
int
range
){
a
ssert
(
range
>=
1
);
a
v_assert2
(
range
>=
1
);
if
(
range
==
1
)
return
0
;
if
(
range
==
1
)
return
0
;
else
if
(
range
==
2
)
return
get_bits1
(
gb
)
^
1
;
else
if
(
range
==
2
)
return
get_bits1
(
gb
)
^
1
;
...
@@ -157,7 +157,7 @@ static inline int get_te0_golomb(GetBitContext *gb, int range){
...
@@ -157,7 +157,7 @@ static inline int get_te0_golomb(GetBitContext *gb, int range){
* read unsigned truncated exp golomb code.
* read unsigned truncated exp golomb code.
*/
*/
static
inline
int
get_te_golomb
(
GetBitContext
*
gb
,
int
range
){
static
inline
int
get_te_golomb
(
GetBitContext
*
gb
,
int
range
){
a
ssert
(
range
>=
1
);
a
v_assert2
(
range
>=
1
);
if
(
range
==
2
)
return
get_bits1
(
gb
)
^
1
;
if
(
range
==
2
)
return
get_bits1
(
gb
)
^
1
;
else
return
get_ue_golomb
(
gb
);
else
return
get_ue_golomb
(
gb
);
...
@@ -429,7 +429,7 @@ static inline int get_te(GetBitContext *s, int r, char *file, const char *func,
...
@@ -429,7 +429,7 @@ static inline int get_te(GetBitContext *s, int r, char *file, const char *func,
static
inline
void
set_ue_golomb
(
PutBitContext
*
pb
,
int
i
){
static
inline
void
set_ue_golomb
(
PutBitContext
*
pb
,
int
i
){
int
e
;
int
e
;
a
ssert
(
i
>=
0
);
a
v_assert2
(
i
>=
0
);
#if 0
#if 0
if(i=0){
if(i=0){
...
@@ -450,8 +450,8 @@ static inline void set_ue_golomb(PutBitContext *pb, int i){
...
@@ -450,8 +450,8 @@ static inline void set_ue_golomb(PutBitContext *pb, int i){
* write truncated unsigned exp golomb code.
* write truncated unsigned exp golomb code.
*/
*/
static
inline
void
set_te_golomb
(
PutBitContext
*
pb
,
int
i
,
int
range
){
static
inline
void
set_te_golomb
(
PutBitContext
*
pb
,
int
i
,
int
range
){
a
ssert
(
range
>=
1
);
a
v_assert2
(
range
>=
1
);
a
ssert
(
i
<=
range
);
a
v_assert2
(
i
<=
range
);
if
(
range
==
2
)
put_bits
(
pb
,
1
,
i
^
1
);
if
(
range
==
2
)
put_bits
(
pb
,
1
,
i
^
1
);
else
set_ue_golomb
(
pb
,
i
);
else
set_ue_golomb
(
pb
,
i
);
...
@@ -482,7 +482,7 @@ static inline void set_se_golomb(PutBitContext *pb, int i){
...
@@ -482,7 +482,7 @@ static inline void set_se_golomb(PutBitContext *pb, int i){
static
inline
void
set_ur_golomb
(
PutBitContext
*
pb
,
int
i
,
int
k
,
int
limit
,
int
esc_len
){
static
inline
void
set_ur_golomb
(
PutBitContext
*
pb
,
int
i
,
int
k
,
int
limit
,
int
esc_len
){
int
e
;
int
e
;
a
ssert
(
i
>=
0
);
a
v_assert2
(
i
>=
0
);
e
=
i
>>
k
;
e
=
i
>>
k
;
if
(
e
<
limit
){
if
(
e
<
limit
){
...
@@ -498,7 +498,7 @@ static inline void set_ur_golomb(PutBitContext *pb, int i, int k, int limit, int
...
@@ -498,7 +498,7 @@ static inline void set_ur_golomb(PutBitContext *pb, int i, int k, int limit, int
static
inline
void
set_ur_golomb_jpegls
(
PutBitContext
*
pb
,
int
i
,
int
k
,
int
limit
,
int
esc_len
){
static
inline
void
set_ur_golomb_jpegls
(
PutBitContext
*
pb
,
int
i
,
int
k
,
int
limit
,
int
esc_len
){
int
e
;
int
e
;
a
ssert
(
i
>=
0
);
a
v_assert2
(
i
>=
0
);
e
=
(
i
>>
k
)
+
1
;
e
=
(
i
>>
k
)
+
1
;
if
(
e
<
limit
){
if
(
e
<
limit
){
...
...
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