comparison dv.c @ 1270:f5318caa93f4 libavcodec

seems i guessed correctly (last 411 chroma block isnt scaled but cut and reordered)
author michaelni
date Fri, 16 May 2003 21:47:02 +0000
parents b8e1c17b8d7d
children 8edad1e372d1
comparison
equal deleted inserted replaced
1269:2498a7045b37 1270:f5318caa93f4
474 linesize = s->linesize[6 - j]; 474 linesize = s->linesize[6 - j];
475 c_ptr = s->current_picture[6 - j] + c_offset; 475 c_ptr = s->current_picture[6 - j] + c_offset;
476 ptr = pixels; 476 ptr = pixels;
477 for(y = 0;y < 8; y++) { 477 for(y = 0;y < 8; y++) {
478 /* convert to 411P */ 478 /* convert to 411P */
479 c_ptr1 = c_ptr + linesize; 479 c_ptr1 = c_ptr + 8*linesize;
480 c_ptr1[0] = c_ptr[0] = (ptr[0] + ptr[1]) >> 1; 480 c_ptr[0]= ptr[0]; c_ptr1[0]= ptr[4];
481 c_ptr1[1] = c_ptr[1] = (ptr[2] + ptr[3]) >> 1; 481 c_ptr[1]= ptr[1]; c_ptr1[1]= ptr[5];
482 c_ptr1[2] = c_ptr[2] = (ptr[4] + ptr[5]) >> 1; 482 c_ptr[2]= ptr[2]; c_ptr1[2]= ptr[6];
483 c_ptr1[3] = c_ptr[3] = (ptr[6] + ptr[7]) >> 1; 483 c_ptr[3]= ptr[3]; c_ptr1[3]= ptr[7];
484 c_ptr += linesize * 2; 484 c_ptr += linesize;
485 ptr += 8; 485 ptr += 8;
486 } 486 }
487 } else { 487 } else {
488 /* don't ask me why they inverted Cb and Cr ! */ 488 /* don't ask me why they inverted Cb and Cr ! */
489 idct_put(s->current_picture[6 - j] + c_offset, 489 idct_put(s->current_picture[6 - j] + c_offset,