Commit 74696c22 authored by michael's avatar michael

More doxy


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21060 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 33ad53c1
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment