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
afe03092
Commit
afe03092
authored
11 years ago
by
Luca Barbato
Browse files
Options
Downloads
Patches
Plain Diff
lavc: move put_bits_left in put_bits.h
parent
07c52e2c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/dv.c
+0
-5
0 additions, 5 deletions
libavcodec/dv.c
libavcodec/put_bits.h
+8
-0
8 additions, 0 deletions
libavcodec/put_bits.h
with
8 additions
and
5 deletions
libavcodec/dv.c
+
0
−
5
View file @
afe03092
...
...
@@ -340,11 +340,6 @@ static av_cold int dvvideo_init_encoder(AVCodecContext *avctx)
static
const
int
vs_total_ac_bits
=
(
100
*
4
+
68
*
2
)
*
5
;
static
const
int
mb_area_start
[
5
]
=
{
1
,
6
,
21
,
43
,
64
};
static
inline
int
put_bits_left
(
PutBitContext
*
s
)
{
return
(
s
->
buf_end
-
s
->
buf
)
*
8
-
put_bits_count
(
s
);
}
#if CONFIG_SMALL
/* Converts run and level (where level != 0) pair into VLC, returning bit size */
static
av_always_inline
int
dv_rl2vlc
(
int
run
,
int
level
,
int
sign
,
uint32_t
*
vlc
)
...
...
This diff is collapsed.
Click to expand it.
libavcodec/put_bits.h
+
8
−
0
View file @
afe03092
...
...
@@ -74,6 +74,14 @@ static inline int put_bits_count(PutBitContext *s)
return
(
s
->
buf_ptr
-
s
->
buf
)
*
8
+
32
-
s
->
bit_left
;
}
/**
* @return the number of bits available in the bitstream.
*/
static
inline
int
put_bits_left
(
PutBitContext
*
s
)
{
return
(
s
->
buf_end
-
s
->
buf_ptr
)
*
8
-
32
+
s
->
bit_left
;
}
/**
* Pad the end of the output stream with zeros.
*/
...
...
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