[x265] [PATCH] framefilter: Fix memcpy for pel-pixel datatype change
Deepthi Nandakumar
deepthi at multicorewareinc.com
Mon Sep 16 06:35:24 CEST 2013
# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1379304694 -19800
# Node ID 881444f5910b2b0e0f286a6ca47fcc743515cbb2
# Parent 6bab41a554b36133865fe3378964cb9e76c24ebd
framefilter: Fix memcpy for pel-pixel datatype change
diff -r 6bab41a554b3 -r 881444f5910b source/encoder/framefilter.cpp
--- a/source/encoder/framefilter.cpp Fri Sep 13 17:24:05 2013 +0530
+++ b/source/encoder/framefilter.cpp Mon Sep 16 09:41:34 2013 +0530
@@ -248,13 +248,13 @@
for (int y = 0; y < recon->getLumaMarginY(); y++)
{
- memcpy(pixY - (y + 1) * stride, pixY, stride * sizeof(Pel));
+ memcpy(pixY - (y + 1) * stride, pixY, stride * sizeof(pixel));
}
for (int y = 0; y < recon->getChromaMarginY(); y++)
{
- memcpy(pixU - (y + 1) * strideC, pixU, strideC * sizeof(Pel));
- memcpy(pixV - (y + 1) * strideC, pixV, strideC * sizeof(Pel));
+ memcpy(pixU - (y + 1) * strideC, pixU, strideC *
sizeof(pixel));
+ memcpy(pixV - (y + 1) * strideC, pixV, strideC *
sizeof(pixel));
}
}
@@ -269,13 +269,13 @@
for (int y = 0; y < recon->getLumaMarginY(); y++)
{
- memcpy(pixY + (y + 1) * stride, pixY, stride * sizeof(Pel));
+ memcpy(pixY + (y + 1) * stride, pixY, stride * sizeof(pixel));
}
for (int y = 0; y < recon->getChromaMarginY(); y++)
{
- memcpy(pixU + (y + 1) * strideC, pixU, strideC * sizeof(Pel));
- memcpy(pixV + (y + 1) * strideC, pixV, strideC * sizeof(Pel));
+ memcpy(pixU + (y + 1) * strideC, pixU, strideC *
sizeof(pixel));
+ memcpy(pixV + (y + 1) * strideC, pixV, strideC *
sizeof(pixel));
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130916/7b2cb2ca/attachment-0001.html>
More information about the x265-devel
mailing list