66 const int qscale = a->
qscale;
72 component = (n <= 3 ? 0 : n - 4 + 1);
77 block[0] = a->
last_dc[component] << 3;
90 }
else if (level != 0) {
93 level = (level * qscale * quant_matrix[j]) >> 3;
105 level = (level * qscale * quant_matrix[j]) >> 3;
106 level = (level - 1) | 1;
109 level = (level * qscale * quant_matrix[j]) >> 3;
110 level = (level - 1) | 1;
129 static const int block_index[6] = { 5, 4, 0, 1, 2, 3 };
133 for (i = 0; i < 6; i++) {
135 block_index[i])) < 0)
148 uint8_t *dest_y = frame->
data[0] + (mb_y * 16* linesize ) + mb_x * 16;
164 void *
data,
int *got_frame,
169 int buf_size = avpkt->
size;