Lines Matching defs:rlco

684 static u32 encode_plane(u8 *input, u8 *refp, __be16 **rlco, __be16 *rlco_max,
690 __be16 *rlco_start = *rlco;
732 size = rlc(cf->coeffs, *rlco, blocktype);
734 !memcmp(*rlco + 1, *rlco - size + 1, 2 * size - 2)) {
735 __be16 *last_rlco = *rlco - size;
738 if (!((*last_rlco ^ **rlco) & pframe_bit) &&
742 *rlco += size;
744 *rlco += size;
746 if (*rlco >= rlco_max) {
771 *rlco = (__be16 *)out;
785 __be16 *rlco = cf->rlc_data;
789 rlco_max = rlco + size / 2 - 256;
790 encoding = encode_plane(frm->luma, ref_frm->luma, &rlco, rlco_max, cf,
802 rlco_max = rlco + chroma_size / 2 - 256;
803 encoding |= encode_plane(frm->cb, ref_frm->cb, &rlco, rlco_max,
810 rlco_max = rlco + chroma_size / 2 - 256;
811 encoding |= encode_plane(frm->cr, ref_frm->cr, &rlco, rlco_max,
821 rlco_max = rlco + size / 2 - 256;
822 encoding |= encode_plane(frm->alpha, ref_frm->alpha, &rlco,
831 cf->size = (rlco - cf->rlc_data) * sizeof(*rlco);
835 static bool decode_plane(struct fwht_cframe *cf, const __be16 **rlco,
853 if (end_of_rlco_buf + 1 < *rlco + width * height / 2)
856 memcpy(dst, *rlco, width);
858 *rlco += width / 2;
864 * When decoding each macroblock the rlco pointer will be increased
886 stat = derlc(rlco, cf->coeffs, end_of_rlco_buf);
917 const __be16 *rlco = cf->rlc_data;
919 (cf->size / sizeof(*rlco)) - 1;
921 if (!decode_plane(cf, &rlco, height, width, ref->luma, ref_stride,
937 if (!decode_plane(cf, &rlco, h, w, ref->cb, ref_chroma_stride,
943 if (!decode_plane(cf, &rlco, h, w, ref->cr, ref_chroma_stride,
952 if (!decode_plane(cf, &rlco, height, width, ref->alpha, ref_stride,