Lines Matching refs:rlco
683 static u32 encode_plane(u8 *input, u8 *refp, __be16 **rlco, __be16 *rlco_max, in encode_plane() argument
689 __be16 *rlco_start = *rlco; in encode_plane()
731 size = rlc(cf->coeffs, *rlco, blocktype); in encode_plane()
733 !memcmp(*rlco + 1, *rlco - size + 1, 2 * size - 2)) { in encode_plane()
734 __be16 *last_rlco = *rlco - size; in encode_plane()
737 if (!((*last_rlco ^ **rlco) & pframe_bit) && in encode_plane()
741 *rlco += size; in encode_plane()
743 *rlco += size; in encode_plane()
745 if (*rlco >= rlco_max) { in encode_plane()
770 *rlco = (__be16 *)out; in encode_plane()
784 __be16 *rlco = cf->rlc_data; in fwht_encode_frame() local
788 rlco_max = rlco + size / 2 - 256; in fwht_encode_frame()
789 encoding = encode_plane(frm->luma, ref_frm->luma, &rlco, rlco_max, cf, in fwht_encode_frame()
801 rlco_max = rlco + chroma_size / 2 - 256; in fwht_encode_frame()
802 encoding |= encode_plane(frm->cb, ref_frm->cb, &rlco, rlco_max, in fwht_encode_frame()
809 rlco_max = rlco + chroma_size / 2 - 256; in fwht_encode_frame()
810 encoding |= encode_plane(frm->cr, ref_frm->cr, &rlco, rlco_max, in fwht_encode_frame()
820 rlco_max = rlco + size / 2 - 256; in fwht_encode_frame()
821 encoding |= encode_plane(frm->alpha, ref_frm->alpha, &rlco, in fwht_encode_frame()
830 cf->size = (rlco - cf->rlc_data) * sizeof(*rlco); in fwht_encode_frame()
834 static bool decode_plane(struct fwht_cframe *cf, const __be16 **rlco, in decode_plane() argument
852 if (end_of_rlco_buf + 1 < *rlco + width * height / 2) in decode_plane()
855 memcpy(dst, *rlco, width); in decode_plane()
857 *rlco += width / 2; in decode_plane()
885 stat = derlc(rlco, cf->coeffs, end_of_rlco_buf); in decode_plane()
916 const __be16 *rlco = cf->rlc_data; in fwht_decode_frame() local
918 (cf->size / sizeof(*rlco)) - 1; in fwht_decode_frame()
920 if (!decode_plane(cf, &rlco, height, width, ref->luma, ref_stride, in fwht_decode_frame()
936 if (!decode_plane(cf, &rlco, h, w, ref->cb, ref_chroma_stride, in fwht_decode_frame()
942 if (!decode_plane(cf, &rlco, h, w, ref->cr, ref_chroma_stride, in fwht_decode_frame()
951 if (!decode_plane(cf, &rlco, height, width, ref->alpha, ref_stride, in fwht_decode_frame()