Lines Matching defs:block
164 static inline int get_cbp(MpegEncContext *s, int16_t block[6][64])
175 * Encode an 8x8 block.
176 * @param block the 8x8 block
177 * @param n block index (0-3 are luma, 4-5 are chroma)
179 static void h261_encode_block(H261EncContext *h, int16_t *block, int n)
188 level = block[0];
192 block[0] = 254;
197 block[0] = 1;
204 } else if ((block[0] == 1 || block[0] == -1) &&
207 put_bits(&s->pb, 2, block[0] > 0 ? 2 : 3);
218 level = block[j];
247 void ff_h261_encode_mb(MpegEncContext *s, int16_t block[6][64],
262 cbp = get_cbp(s, block);
264 /* mvd indicates if this block is motion compensated */
329 /* encode each block */
330 h261_encode_block(h, block[i], i);