comparison h264data.h @ 3316:7278f730af27 libavcodec

h264: MBAFF interlaced decoding
author lorenm
date Sun, 28 May 2006 22:44:14 +0000
parents 0b546eab515d
children c8c591fe26f8
comparison
equal deleted inserted replaced
3315:cfd452a6560b 3316:7278f730af27
341 4+6*8, 7+4*8, 5+7*8, 6+7*8, 341 4+6*8, 7+4*8, 5+7*8, 6+7*8,
342 0+2*8, 2+1*8, 1+3*8, 5+0*8, 342 0+2*8, 2+1*8, 1+3*8, 5+0*8,
343 1+4*8, 2+4*8, 6+0*8, 4+3*8, 343 1+4*8, 2+4*8, 6+0*8, 4+3*8,
344 0+7*8, 4+4*8, 7+2*8, 3+6*8, 344 0+7*8, 4+4*8, 7+2*8, 3+6*8,
345 5+5*8, 6+5*8, 6+6*8, 7+7*8, 345 5+5*8, 6+5*8, 6+6*8, 7+7*8,
346 };
347
348 static const uint8_t field_scan8x8[64]={
349 0+0*8, 0+1*8, 0+2*8, 1+0*8,
350 1+1*8, 0+3*8, 0+4*8, 1+2*8,
351 2+0*8, 1+3*8, 0+5*8, 0+6*8,
352 0+7*8, 1+4*8, 2+1*8, 3+0*8,
353 2+2*8, 1+5*8, 1+6*8, 1+7*8,
354 2+3*8, 3+1*8, 4+0*8, 3+2*8,
355 2+4*8, 2+5*8, 2+6*8, 2+7*8,
356 3+3*8, 4+1*8, 5+0*8, 4+2*8,
357 3+4*8, 3+5*8, 3+6*8, 3+7*8,
358 4+3*8, 5+1*8, 6+0*8, 5+2*8,
359 4+4*8, 4+5*8, 4+6*8, 4+7*8,
360 5+3*8, 6+1*8, 6+2*8, 5+4*8,
361 5+5*8, 5+6*8, 5+7*8, 6+3*8,
362 7+0*8, 7+1*8, 6+4*8, 6+5*8,
363 6+6*8, 6+7*8, 7+2*8, 7+3*8,
364 7+4*8, 7+5*8, 7+6*8, 7+7*8,
365 };
366
367 static const uint8_t field_scan8x8_cavlc[64]={
368 0+0*8, 1+1*8, 2+0*8, 0+7*8,
369 2+2*8, 2+3*8, 2+4*8, 3+3*8,
370 3+4*8, 4+3*8, 4+4*8, 5+3*8,
371 5+5*8, 7+0*8, 6+6*8, 7+4*8,
372 0+1*8, 0+3*8, 1+3*8, 1+4*8,
373 1+5*8, 3+1*8, 2+5*8, 4+1*8,
374 3+5*8, 5+1*8, 4+5*8, 6+1*8,
375 5+6*8, 7+1*8, 6+7*8, 7+5*8,
376 0+2*8, 0+4*8, 0+5*8, 2+1*8,
377 1+6*8, 4+0*8, 2+6*8, 5+0*8,
378 3+6*8, 6+0*8, 4+6*8, 6+2*8,
379 5+7*8, 6+4*8, 7+2*8, 7+6*8,
380 1+0*8, 1+2*8, 0+6*8, 3+0*8,
381 1+7*8, 3+2*8, 2+7*8, 4+2*8,
382 3+7*8, 5+2*8, 4+7*8, 5+4*8,
383 6+3*8, 6+5*8, 7+3*8, 7+7*8,
346 }; 384 };
347 385
348 #define MB_TYPE_REF0 MB_TYPE_ACPRED //dirty but it fits in 16bit 386 #define MB_TYPE_REF0 MB_TYPE_ACPRED //dirty but it fits in 16bit
349 #define MB_TYPE_8x8DCT 0x01000000 387 #define MB_TYPE_8x8DCT 0x01000000
350 #define IS_REF0(a) ((a)&MB_TYPE_REF0) 388 #define IS_REF0(a) ((a)&MB_TYPE_REF0)