71 { 0, 0, 0, 4, 4, 4, 4, 0};
77 { 0x10, 0x13, 0x17, 0x1A, 0x1E, 0x21, 0x25, 0x28,
78 0x2C, 0x2F, 0x33, 0x36, 0x3A, 0x3D, 0x41, 0x44,
79 0x48, 0x4B, 0x4F, 0x52, 0x56, 0x59, 0x5C, 0x60,
80 0x63, 0x67, 0x6A, 0x6E, 0x71, 0x75, 0x78, 0x7C,
81 0x7F, 0x83, 0x86, 0x8A, 0x8D, 0x91, 0x94, 0x98,
82 0x9B, 0x9F, 0xA2, 0xA5, 0xA9, 0xAC, 0xB0, 0xB3,
83 0xB7, 0xBA, 0xBE, 0xC1, 0xC5, 0xC8, 0xCC, 0xCF,
84 0xD3, 0xD6, 0xDA, 0xDD, 0xE1, 0xE4, 0xE8, 0xEB};
87 { 0x60, 0x67, 0x6D, 0x73, 0x7A, 0x80, 0x86, 0x8D,
88 0x93, 0x99, 0xA0, 0xA6, 0xAC, 0xB3, 0xB9, 0xC0};
95 uint8_t *y_plane, *cr_plane, *cb_plane;
99 cr_plane = frame->
data[1] + (x / 4) + (y / 4) * frame->
linesize[1];
100 cb_plane = frame->
data[2] + (x / 4) + (y / 4) * frame->
linesize[2];
107 for(i = 0; i < 16; i++){
117 int f0,
int f1,
int Y0,
int Y1,
int chroma)
121 for(mask = 0x80, i = 0;
mask; mask >>= 1, i++) {
128 for(mask = 0x80, i = 8;
mask; mask >>= 1, i++) {
154 Luma[0] = Y[0]; Luma[1] = Y[1]; Luma[2] = Y[2]; Luma[3] = Y[3];
155 Luma[4] = Y[0]; Luma[5] = Y[1]; Luma[6] = Y[2]; Luma[7] = Y[3];
156 Luma[8] = Y[0]; Luma[9] = Y[1]; Luma[10] = Y[2]; Luma[11] = Y[3];
157 Luma[12] = Y[0]; Luma[13] = Y[1]; Luma[14] = Y[2]; Luma[15] = Y[3];
160 Luma[0] = Y[1]; Luma[1] = Y[2]; Luma[2] = Y[3]; Luma[3] = Y[3];
161 Luma[4] = Y[0]; Luma[5] = Y[1]; Luma[6] = Y[2]; Luma[7] = Y[3];
162 Luma[8] = Y[0]; Luma[9] = Y[1]; Luma[10] = Y[2]; Luma[11] = Y[3];
163 Luma[12] = Y[0]; Luma[13] = Y[0]; Luma[14] = Y[1]; Luma[15] = Y[2];
166 Luma[0] = Y[1]; Luma[1] = Y[2]; Luma[2] = Y[3]; Luma[3] = Y[3];
167 Luma[4] = Y[1]; Luma[5] = Y[2]; Luma[6] = Y[2]; Luma[7] = Y[3];
168 Luma[8] = Y[0]; Luma[9] = Y[1]; Luma[10] = Y[1]; Luma[11] = Y[2];
169 Luma[12] = Y[0]; Luma[13] = Y[0]; Luma[14] = Y[1]; Luma[15] = Y[2];
172 Luma[0] = Y[2]; Luma[1] = Y[3]; Luma[2] = Y[3]; Luma[3] = Y[3];
173 Luma[4] = Y[1]; Luma[5] = Y[2]; Luma[6] = Y[2]; Luma[7] = Y[3];
174 Luma[8] = Y[0]; Luma[9] = Y[1]; Luma[10] = Y[1]; Luma[11] = Y[2];
175 Luma[12] = Y[0]; Luma[13] = Y[0]; Luma[14] = Y[0]; Luma[15] = Y[1];
178 Luma[0] = Y[3]; Luma[1] = Y[3]; Luma[2] = Y[3]; Luma[3] = Y[3];
179 Luma[4] = Y[2]; Luma[5] = Y[2]; Luma[6] = Y[2]; Luma[7] = Y[2];
180 Luma[8] = Y[1]; Luma[9] = Y[1]; Luma[10] = Y[1]; Luma[11] = Y[1];
181 Luma[12] = Y[0]; Luma[13] = Y[0]; Luma[14] = Y[0]; Luma[15] = Y[0];
184 Luma[0] = Y[3]; Luma[1] = Y[3]; Luma[2] = Y[3]; Luma[3] = Y[2];
185 Luma[4] = Y[3]; Luma[5] = Y[2]; Luma[6] = Y[2]; Luma[7] = Y[1];
186 Luma[8] = Y[2]; Luma[9] = Y[1]; Luma[10] = Y[1]; Luma[11] = Y[0];
187 Luma[12] = Y[1]; Luma[13] = Y[0]; Luma[14] = Y[0]; Luma[15] = Y[0];
190 Luma[0] = Y[3]; Luma[1] = Y[3]; Luma[2] = Y[2]; Luma[3] = Y[2];
191 Luma[4] = Y[3]; Luma[5] = Y[2]; Luma[6] = Y[1]; Luma[7] = Y[1];
192 Luma[8] = Y[2]; Luma[9] = Y[2]; Luma[10] = Y[1]; Luma[11] = Y[0];
193 Luma[12] = Y[1]; Luma[13] = Y[1]; Luma[14] = Y[0]; Luma[15] = Y[0];
196 Luma[0] = Y[3]; Luma[1] = Y[3]; Luma[2] = Y[2]; Luma[3] = Y[1];
197 Luma[4] = Y[3]; Luma[5] = Y[2]; Luma[6] = Y[1]; Luma[7] = Y[0];
198 Luma[8] = Y[3]; Luma[9] = Y[2]; Luma[10] = Y[1]; Luma[11] = Y[0];
199 Luma[12] = Y[2]; Luma[13] = Y[1]; Luma[14] = Y[0]; Luma[15] = Y[0];
202 Luma[0] = Y[0]; Luma[1] = Y[0]; Luma[2] = Y[1]; Luma[3] = Y[1];
203 Luma[4] = Y[0]; Luma[5] = Y[0]; Luma[6] = Y[1]; Luma[7] = Y[1];
204 Luma[8] = Y[2]; Luma[9] = Y[2]; Luma[10] = Y[3]; Luma[11] = Y[3];
205 Luma[12] = Y[2]; Luma[13] = Y[2]; Luma[14] = Y[3]; Luma[15] = Y[3];
213 void *
data,
int *got_frame,
217 int buf_size = avpkt->
size;
245 idx = bytestream2_get_byteu(&s->
gb);
246 if((idx & 0xF8) == 0x70) {
249 modifier = bytestream2_get_byte(&s->
gb);
251 av_log(avctx,
AV_LOG_INFO,
"warning: modifier must be 0 or 1, got %i\n", modifier);
263 skip = bytestream2_get_byte(&s->
gb);
264 if ((blocks + skip) >= s->
blocks)
268 while(x >= s->
width) {
290 chroma = bytestream2_get_byte(&s->
gb);
293 for (i = 0; i < 4; i++) {
294 code = (idx >> (6 - i*2)) & 3;
298 chroma = bytestream2_get_byte(&s->
gb);
301 ty =
y + block_coords[(i * 2) + 1];
304 tmp = bytestream2_get_byte(&s->
gb);
324 tmp = bytestream2_get_be24(&s->
gb);
326 Y[0] = (tmp >> 18) & 0x3F;
327 Y[1] = (tmp >> 12) & 0x3F;
328 Y[2] = (tmp >> 6) & 0x3F;
332 tmp = bytestream2_get_be16(&s->
gb);
334 angle = (tmp >> 12) & 0xF;
350 tmp = bytestream2_get_be24u(&s->
gb);
351 Luma[0] = (tmp >> 18) & 0x3F;
352 Luma[1] = (tmp >> 12) & 0x3F;
353 Luma[2] = (tmp >> 6) & 0x3F;
354 Luma[3] = tmp & 0x3F;
356 tmp = bytestream2_get_be24u(&s->
gb);
357 Luma[4] = (tmp >> 18) & 0x3F;
358 Luma[5] = (tmp >> 12) & 0x3F;
359 Luma[6] = (tmp >> 6) & 0x3F;
360 Luma[7] = tmp & 0x3F;
362 tmp = bytestream2_get_be24u(&s->
gb);
363 Luma[8] = (tmp >> 18) & 0x3F;
364 Luma[9] = (tmp >> 12) & 0x3F;
365 Luma[10] = (tmp >> 6) & 0x3F;
366 Luma[11] = tmp & 0x3F;
368 tmp = bytestream2_get_be24u(&s->
gb);
369 Luma[12] = (tmp >> 18) & 0x3F;
370 Luma[13] = (tmp >> 12) & 0x3F;
371 Luma[14] = (tmp >> 6) & 0x3F;
372 Luma[15] = tmp & 0x3F;
378 tmp = bytestream2_get_byteu(&s->
gb);
380 angle = (tmp >> 4) & 0x7;
381 tmp = (tmp << 8) + bytestream2_get_byteu(&s->
gb);
382 Y[0] = (tmp >> 6) & 0x3F;
384 Y[2] = bytestream2_get_byteu(&s->
gb) & 0x3F;
385 Y[3] = bytestream2_get_byteu(&s->
gb) & 0x3F;
389 f0 = bytestream2_get_byteu(&s->
gb);
391 Y[0] = bytestream2_get_byteu(&s->
gb) & 0x3F;
392 Y[1] = bytestream2_get_byteu(&s->
gb) & 0x3F;
417 "Insufficient data\n");
422 .
name =
"ultimotion",