summaryrefslogtreecommitdiff
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-07 15:12:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-01-07 15:12:31 +0000
commit64f716b499914e55a09e013a4b721c69a46724fd (patch)
tree40564d3f3aff692d38e6b0c7157def2a0eff433c /libavcodec/h263.c
parent7cd9fe488d82586a558be54b3e5c665780493f2c (diff)
More doxy
Originally committed as revision 21060 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index c73893986e..6df9be71ff 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -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]){
int last=0;
int j;
@@ -364,6 +368,9 @@ static inline int get_block_rate(MpegEncContext * s, DCTELEM block[64], int bloc
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])
{
int score= 0;