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
afe03092
Commit
afe03092
authored
Jun 28, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: move put_bits_left in put_bits.h
parent
07c52e2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
dv.c
libavcodec/dv.c
+0
-5
put_bits.h
libavcodec/put_bits.h
+8
-0
No files found.
libavcodec/dv.c
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
)
...
...
libavcodec/put_bits.h
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.
*/
...
...
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