61 const int qscale = a->
qscale;
67 component = (n <= 3 ? 0 : n - 4 + 1);
72 block[0] = a->
last_dc[component] << 3;
85 }
else if (level != 0) {
88 level = (level * qscale * quant_matrix[j]) >> 3;
100 level = (level * qscale * quant_matrix[j]) >> 3;
101 level = (level - 1) | 1;
104 level = (level * qscale * quant_matrix[j]) >> 3;
105 level = (level - 1) | 1;
124 const int block_index[6] = { 5, 4, 0, 1, 2, 3 };
128 for (i = 0; i < 6; i++) {
130 block_index[i])) < 0)
143 uint8_t *dest_y = frame->
data[0] + (mb_y * 16* linesize ) + mb_x * 16;
159 void *
data,
int *got_frame,
164 int buf_size = avpkt->
size;
176 for (i = 0; i < buf_size; i += 2) {