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
611a6f59
Commit
611a6f59
authored
Jan 23, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_bits: move tracing macros to end of file
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
fb5c841d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
get_bits.h
libavcodec/get_bits.h
+21
-21
No files found.
libavcodec/get_bits.h
View file @
611a6f59
...
@@ -525,6 +525,27 @@ static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2],
...
@@ -525,6 +525,27 @@ static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2],
return
code
;
return
code
;
}
}
static
inline
int
decode012
(
GetBitContext
*
gb
){
int
n
;
n
=
get_bits1
(
gb
);
if
(
n
==
0
)
return
0
;
else
return
get_bits1
(
gb
)
+
1
;
}
static
inline
int
decode210
(
GetBitContext
*
gb
){
if
(
get_bits1
(
gb
))
return
0
;
else
return
2
-
get_bits1
(
gb
);
}
static
inline
int
get_bits_left
(
GetBitContext
*
gb
)
{
return
gb
->
size_in_bits
-
get_bits_count
(
gb
);
}
//#define TRACE
//#define TRACE
#ifdef TRACE
#ifdef TRACE
...
@@ -585,25 +606,4 @@ static inline int get_xbits_trace(GetBitContext *s, int n, char *file,
...
@@ -585,25 +606,4 @@ static inline int get_xbits_trace(GetBitContext *s, int n, char *file,
#define tprintf(p, ...) {}
#define tprintf(p, ...) {}
#endif
#endif
static
inline
int
decode012
(
GetBitContext
*
gb
){
int
n
;
n
=
get_bits1
(
gb
);
if
(
n
==
0
)
return
0
;
else
return
get_bits1
(
gb
)
+
1
;
}
static
inline
int
decode210
(
GetBitContext
*
gb
){
if
(
get_bits1
(
gb
))
return
0
;
else
return
2
-
get_bits1
(
gb
);
}
static
inline
int
get_bits_left
(
GetBitContext
*
gb
)
{
return
gb
->
size_in_bits
-
get_bits_count
(
gb
);
}
#endif
/* AVCODEC_GET_BITS_H */
#endif
/* AVCODEC_GET_BITS_H */
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