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
64f716b4
Commit
64f716b4
authored
Jan 07, 2010
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More doxy
Originally committed as revision 21060 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7cd9fe48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
h263.c
libavcodec/h263.c
+7
-0
No files found.
libavcodec/h263.c
View file @
64f716b4
...
@@ -341,6 +341,10 @@ void h263_encode_gob_header(MpegEncContext * s, int mb_line)
...
@@ -341,6 +341,10 @@ void h263_encode_gob_header(MpegEncContext * s, int mb_line)
}
}
}
}
/**
* Returns the number of bits that encoding the 8x8 block in block would need.
* @param[in] block_last_index last index in scantable order that refers to a non zero element in block.
*/
static
inline
int
get_block_rate
(
MpegEncContext
*
s
,
DCTELEM
block
[
64
],
int
block_last_index
,
uint8_t
scantable
[
64
]){
static
inline
int
get_block_rate
(
MpegEncContext
*
s
,
DCTELEM
block
[
64
],
int
block_last_index
,
uint8_t
scantable
[
64
]){
int
last
=
0
;
int
last
=
0
;
int
j
;
int
j
;
...
@@ -364,6 +368,9 @@ static inline int get_block_rate(MpegEncContext * s, DCTELEM block[64], int bloc
...
@@ -364,6 +368,9 @@ static inline int get_block_rate(MpegEncContext * s, DCTELEM block[64], int bloc
return
rate
;
return
rate
;
}
}
/**
* Returns the optimal value (0 or 1) for the ac_pred element for the given MB in mpeg4.
*/
static
inline
int
decide_ac_pred
(
MpegEncContext
*
s
,
DCTELEM
block
[
6
][
64
],
int
dir
[
6
],
uint8_t
*
st
[
6
],
int
zigzag_last_index
[
6
])
static
inline
int
decide_ac_pred
(
MpegEncContext
*
s
,
DCTELEM
block
[
6
][
64
],
int
dir
[
6
],
uint8_t
*
st
[
6
],
int
zigzag_last_index
[
6
])
{
{
int
score
=
0
;
int
score
=
0
;
...
...
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