Example #1
0
        private static unsafe void HighbdTMPredictor(ushort *dst, int stride, int bs, ushort *above, ushort *left, int bd)
        {
            int r, c;
            int yTopLeft = above[-1];

            for (r = 0; r < bs; r++)
            {
                for (c = 0; c < bs; c++)
                {
                    dst[c] = BitUtils.ClipPixelHighbd(left[r] + above[c] - yTopLeft, bd);
                }

                dst += stride;
            }
        }