[x265] [PATCH 1 of 3] primitives: added C primitives for upShift/downShift of input pixels

chen chenm003 at 163.com
Fri Mar 21 16:14:05 CET 2014


At 2014-03-21 13:35:29,murugan at multicorewareinc.com wrote:
># HG changeset patch
># User Murugan Vairavel <murugan at multicorewareinc.com>
># Date 1395379028 -19800
>#      Fri Mar 21 10:47:08 2014 +0530
># Node ID 0c4fdd43325e6501698a281862b1c027238a9c9d
># Parent  fe3fcd9838c02fb65fed8638a13dea9f06f8a9be
>primitives: added C primitives for upShift/downShift of input pixels

>+void planecopy_cp_c(uint8_t *src, intptr_t srcStride, pixel *dst, intptr_t dstStride, int width, int height)
this function for 8 to 10 convert only

>+{
>+    for (int r = 0; r < height; r++)
>+    {
>+        for (int c = 0; c < width; c++)
>+        {
>+            dst[c] = ((pixel)src[c]) << 2;
>+        }
>+
>+        dst += dstStride;
>+        src += srcStride;
>+    }
>+}


More information about the x265-devel mailing list