Lines Matching defs:block

115 /* Fill BlockInfo struct with information about a 4x4 block of the image */
116 static int get_block_info(BlockInfo *bi, int block)
118 bi->row = block / bi->blocks_per_row;
119 bi->col = block % bi->blocks_per_row;
121 // test for right edge block
128 // test for bottom edge block
135 return block ? (bi->col * 4) + (bi->row * bi->rowstride * 4) : 0;
262 * Determine the fit of one channel to another within a 4x4 block. This
382 * Encode a block using the 4-color opcode and palette. return number of
383 * blocks encoded (until we implement multi-block 4 color runs this will
416 * Copy a 4x4 block from the current frame buffer to the previous frame buffer.
432 * update statistics for the specified block. If first_block,
438 * The routine returns 0 if this block is too different to be part of
440 * block can be part of the same 1-color block run.
443 * the statistics of this block. Otherwise, the stats are unchanged
444 * and don't include the current block.
446 static int update_block_stats(RpzaContext *s, BlockInfo *bi, uint16_t *block,
477 The *_blk variables will include the current block.
492 Update stats for this block's pixels
496 total_rgb_blk[0] += R(block[x]);
497 total_rgb_blk[1] += G(block[x]);
498 total_rgb_blk[2] += B(block[x]);
500 min_color_blk[0] = FFMIN(R(block[x]), min_color_blk[0]);
501 min_color_blk[1] = FFMIN(G(block[x]), min_color_blk[1]);
502 min_color_blk[2] = FFMIN(B(block[x]), min_color_blk[2]);
504 max_color_blk[0] = FFMAX(R(block[x]), max_color_blk[0]);
505 max_color_blk[1] = FFMAX(G(block[x]), max_color_blk[1]);
506 max_color_blk[2] = FFMAX(B(block[x]), max_color_blk[2]);
508 block += bi->rowstride;
512 Calculate average color including current block.
530 Set the output variables to include this block.
591 // multi-block opcodes cannot span multiple rows.
621 * block to avoid artifacts during gradual fade in/outs.
653 /* update this block in the previous frame buffer */
661 // multi-block opcodes cannot span multiple rows.
675 /* update this block in the previous frame buffer */
691 // get max component diff for block
764 /* update this block in the previous frame buffer */