Lines Matching refs:rlco

618 static u32 encode_plane(u8 *input, u8 *refp, __be16 **rlco, __be16 *rlco_max,  in encode_plane()  argument
624 __be16 *rlco_start = *rlco; in encode_plane()
664 size = rlc(cf->coeffs, *rlco, blocktype); in encode_plane()
666 !memcmp(*rlco + 1, *rlco - size + 1, 2 * size - 2)) { in encode_plane()
667 __be16 *last_rlco = *rlco - size; in encode_plane()
670 if (!((*last_rlco ^ **rlco) & pframe_bit) && in encode_plane()
674 *rlco += size; in encode_plane()
676 *rlco += size; in encode_plane()
678 if (*rlco >= rlco_max) in encode_plane()
696 *rlco = (__be16 *)out; in encode_plane()
705 __be16 *rlco = cf->rlc_data; in encode_frame() local
709 rlco_max = rlco + size / 2 - 256; in encode_frame()
710 encoding = encode_plane(frm->luma, ref_frm->luma, &rlco, rlco_max, cf, in encode_frame()
716 rlco_max = rlco + size / 8 - 256; in encode_frame()
717 encoding |= encode_plane(frm->cb, ref_frm->cb, &rlco, rlco_max, cf, in encode_frame()
723 rlco_max = rlco + size / 8 - 256; in encode_frame()
724 encoding |= encode_plane(frm->cr, ref_frm->cr, &rlco, rlco_max, cf, in encode_frame()
730 cf->size = (rlco - cf->rlc_data) * sizeof(*rlco); in encode_frame()
734 static void decode_plane(struct cframe *cf, const __be16 **rlco, u8 *ref, in decode_plane() argument
743 memcpy(ref, *rlco, width * height); in decode_plane()
744 *rlco += width * height / 2; in decode_plane()
767 stat = derlc(rlco, cf->coeffs); in decode_plane()
789 const __be16 *rlco = cf->rlc_data; in decode_frame() local
791 decode_plane(cf, &rlco, ref->luma, cf->height, cf->width, in decode_frame()
793 decode_plane(cf, &rlco, ref->cb, cf->height / 2, cf->width / 2, in decode_frame()
795 decode_plane(cf, &rlco, ref->cr, cf->height / 2, cf->width / 2, in decode_frame()