Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
9dbf9389
Commit
9dbf9389
authored
23 years ago
by
Fabrice Bellard
Browse files
Options
Downloads
Patches
Plain Diff
added get_bits_count()
Originally committed as revision 120 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2456e28d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/common.h
+5
-1
5 additions, 1 deletion
libavcodec/common.h
with
5 additions
and
1 deletion
libavcodec/common.h
+
5
−
1
View file @
9dbf9389
...
...
@@ -170,7 +170,7 @@ void init_put_bits(PutBitContext *s,
void
*
opaque
,
void
(
*
write_data
)(
void
*
,
UINT8
*
,
int
));
void
put_bits
(
PutBitContext
*
s
,
int
n
,
unsigned
int
value
);
INT64
get_bit_count
(
PutBitContext
*
s
);
INT64
get_bit_count
(
PutBitContext
*
s
);
/* XXX: change function name */
void
align_put_bits
(
PutBitContext
*
s
);
void
flush_put_bits
(
PutBitContext
*
s
);
...
...
@@ -252,6 +252,10 @@ static inline void skip_bits1(GetBitContext *s){
}
}
static
inline
int
get_bits_count
(
GetBitContext
*
s
)
{
return
(
s
->
buf_ptr
-
s
->
buf
)
*
8
-
s
->
bit_cnt
;
}
void
align_get_bits
(
GetBitContext
*
s
);
int
init_vlc
(
VLC
*
vlc
,
int
nb_bits
,
int
nb_codes
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment