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) {
94 "ac-tex damaged at %d %d\n", a->
mb_x, a->
mb_y);
98 level = (level * qscale * quant_matrix[j]) >> 3;
109 "ac-tex damaged at %d %d\n", a->
mb_x, a->
mb_y);
115 level = (level * qscale * quant_matrix[j]) >> 3;
116 level = (level - 1) | 1;
119 level = (level * qscale * quant_matrix[j]) >> 3;
120 level = (level - 1) | 1;
135 static const int block_index[6] = { 5, 4, 0, 1, 2, 3 };
139 for (i = 0; i < 6; i++) {
141 block_index[i])) < 0)
154 uint8_t *dest_y = frame->
data[0] + (mb_y * 16* linesize ) + mb_x * 16;
170 void *
data,
int *got_frame,
175 int buf_size = avpkt->
size;