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

Murugan Vairavel murugan at multicorewareinc.com
Mon Mar 24 10:54:01 CET 2014


On Fri, Mar 21, 2014 at 8:44 PM, chen <chenm003 at 163.com> wrote:

> 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
>
Yes it will do 8-bit to 10-bit upshift only. Should i need to change the
function name???

>
> >+{
> >+    for (int r = 0; r < height; r++)
> >+    {
> >+        for (int c = 0; c < width; c++)
> >+        {
> >+            dst[c] = ((pixel)src[c]) << 2;
> >+        }
> >+
> >+        dst += dstStride;
> >+        src += srcStride;
> >+    }
> >+}
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>



-- 
With Regards,

Murugan. V
+919659287478
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140324/9a1f0b75/attachment.html>


More information about the x265-devel mailing list