Lines Matching defs:rlco

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