Lines Matching +full:4 +full:c
4 (C) 2004-2006 Luc Saillard (luc@saillard.org)
24 * 0: use a C version of this tests: { a<0?0:(a>255?255:a) }
129 p0[k + 0x30] = (4 * pw) + 0x80; in build_table_color()
133 p0[k + 0x70] = (-4 * pw) + 0x80; in build_table_color()
166 * yyyy = get_bits(4)
181 * op == 2 when (i%4)==0
186 static const unsigned char hash_table_ops[64*4] = {
260 {4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4,},
262 {4, 5, 5, 4, 4, 5, 5, 4, 4, 5, 5, 4, 4, 5, 5, 4,},
268 {4, 5, 5, 4, 5, 4, 4, 5, 5, 4, 4, 5, 4, 5, 5, 4,},
313 else if (flags == 4) in pwc_dec23_init()
347 * Copy the 4x4 image block to Y plane buffer
353 const int *c = src; in copy_image_block_Y() local
356 *d++ = cm[c[0] >> scalebits]; in copy_image_block_Y()
357 *d++ = cm[c[1] >> scalebits]; in copy_image_block_Y()
358 *d++ = cm[c[2] >> scalebits]; in copy_image_block_Y()
359 *d++ = cm[c[3] >> scalebits]; in copy_image_block_Y()
362 *d++ = cm[c[4] >> scalebits]; in copy_image_block_Y()
363 *d++ = cm[c[5] >> scalebits]; in copy_image_block_Y()
364 *d++ = cm[c[6] >> scalebits]; in copy_image_block_Y()
365 *d++ = cm[c[7] >> scalebits]; in copy_image_block_Y()
368 *d++ = cm[c[8] >> scalebits]; in copy_image_block_Y()
369 *d++ = cm[c[9] >> scalebits]; in copy_image_block_Y()
370 *d++ = cm[c[10] >> scalebits]; in copy_image_block_Y()
371 *d++ = cm[c[11] >> scalebits]; in copy_image_block_Y()
374 *d++ = cm[c[12] >> scalebits]; in copy_image_block_Y()
375 *d++ = cm[c[13] >> scalebits]; in copy_image_block_Y()
376 *d++ = cm[c[14] >> scalebits]; in copy_image_block_Y()
377 *d++ = cm[c[15] >> scalebits]; in copy_image_block_Y()
380 const int *c = src; in copy_image_block_Y()
382 for (i = 0; i < 4; i++, c++) in copy_image_block_Y()
383 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
386 for (i = 0; i < 4; i++, c++) in copy_image_block_Y()
387 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
390 for (i = 0; i < 4; i++, c++) in copy_image_block_Y()
391 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
394 for (i = 0; i < 4; i++, c++) in copy_image_block_Y()
395 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
400 * Copy the 4x4 image block to a CrCb plane buffer
408 const int *c = src; in copy_image_block_CrCb() local
411 *d++ = cm[c[0] >> scalebits]; in copy_image_block_CrCb()
412 *d++ = cm[c[4] >> scalebits]; in copy_image_block_CrCb()
413 *d++ = cm[c[1] >> scalebits]; in copy_image_block_CrCb()
414 *d++ = cm[c[5] >> scalebits]; in copy_image_block_CrCb()
415 *d++ = cm[c[2] >> scalebits]; in copy_image_block_CrCb()
416 *d++ = cm[c[6] >> scalebits]; in copy_image_block_CrCb()
417 *d++ = cm[c[3] >> scalebits]; in copy_image_block_CrCb()
418 *d++ = cm[c[7] >> scalebits]; in copy_image_block_CrCb()
421 *d++ = cm[c[12] >> scalebits]; in copy_image_block_CrCb()
422 *d++ = cm[c[8] >> scalebits]; in copy_image_block_CrCb()
423 *d++ = cm[c[13] >> scalebits]; in copy_image_block_CrCb()
424 *d++ = cm[c[9] >> scalebits]; in copy_image_block_CrCb()
425 *d++ = cm[c[14] >> scalebits]; in copy_image_block_CrCb()
426 *d++ = cm[c[10] >> scalebits]; in copy_image_block_CrCb()
427 *d++ = cm[c[15] >> scalebits]; in copy_image_block_CrCb()
428 *d++ = cm[c[11] >> scalebits]; in copy_image_block_CrCb()
432 const int *c2 = src + 4; in copy_image_block_CrCb()
435 for (i = 0; i < 4; i++, c1++, c2++) { in copy_image_block_CrCb()
441 for (i = 0; i < 4; i++, c1++, c2++) { in copy_image_block_CrCb()
485 * Decode a 4x4 pixel block
512 channel_v = ((channel_v & 1) << 2) | (channel_v & 2) | ((channel_v & 4) >> 2); in decode_block()
531 op = hash_table_ops[htable_idx * 4]; in decode_block()
547 __get_nbits(pdec, 4, yyyy); in decode_block()
570 offset1 += hash_table_ops [htable_idx * 4 + 2]; in decode_block()
573 rows = ptable0004[offset1 + hash_table_ops [htable_idx * 4 + 3]]; in decode_block()
578 shift = hash_table_ops[htable_idx * 4 + 1]; in decode_block()
602 get_nbits(pdec, 4, compression_index); in DecompressBand23()
605 nblocks = compressed_image_width / 4; in DecompressBand23()
610 /* Each block decode a square of 4x4 */ in DecompressBand23()
614 planar_y += 4; in DecompressBand23()
624 /* Each block decode a square of 4x4 */ in DecompressBand23()
660 bandlines_left = pdev->height / 4; in pwc_dec23_decompress()
661 bytes_per_block = pdev->width * 4; in pwc_dec23_decompress()
666 pout_planar_v = dst + plane_size + plane_size / 4; in pwc_dec23_decompress()