[x265] [PATCH] TComYuv.cpp, passed partEnum removed widthd height for copyPartToPartLuma function
Praveen Tiwari
praveen at multicorewareinc.com
Wed Nov 13 09:06:35 CET 2013
Please, ignore this patch, need some more updation.
On Wed, Nov 13, 2013 at 12:59 PM, <praveen at multicorewareinc.com> wrote:
> # HG changeset patch
> # User Praveen Tiwari
> # Date 1384327440 -19800
> # Node ID 1e0476f339c9fc39d59b48c76ca053898e64a73a
> # Parent 90c2763ee0272247dabce845f4fcc3c3e73316fb
> TComYuv.cpp, passed partEnum removed widthd height for copyPartToPartLuma
> function
>
> diff -r 90c2763ee027 -r 1e0476f339c9 source/Lib/TLibCommon/TComYuv.cpp
> --- a/source/Lib/TLibCommon/TComYuv.cpp Tue Nov 12 16:55:09 2013 +0530
> +++ b/source/Lib/TLibCommon/TComYuv.cpp Wed Nov 13 12:54:00 2013 +0530
> @@ -245,8 +245,9 @@
>
> void TComYuv::copyPartToPartYuv(TComYuv* dstPicYuv, uint32_t partIdx,
> uint32_t width, uint32_t height, bool bLuma, bool bChroma)
> {
> + int part = partitionFromSizes(width, height);
> if (bLuma)
> - copyPartToPartLuma(dstPicYuv, partIdx, width, height);
> + copyPartToPartLuma(dstPicYuv, partIdx, part);
> if (bChroma)
> copyPartToPartChroma(dstPicYuv, partIdx, width >> m_hChromaShift,
> height >> m_vChromaShift);
> }
> @@ -259,7 +260,7 @@
> copyPartToPartChroma(dstPicYuv, partIdx, width >> m_hChromaShift,
> height >> m_vChromaShift);
> }
>
> -void TComYuv::copyPartToPartLuma(TComYuv* dstPicYuv, uint32_t partIdx,
> uint32_t width, uint32_t height)
> +void TComYuv::copyPartToPartLuma(TComYuv* dstPicYuv, uint32_t partIdx,
> uint32_t part)
> {
> Pel* src = getLumaAddr(partIdx);
> Pel* dst = dstPicYuv->getLumaAddr(partIdx);
> @@ -269,7 +270,6 @@
> uint32_t srcstride = getStride();
> uint32_t dststride = dstPicYuv->getStride();
>
> - int part = partitionFromSizes(width, height);
> primitives.luma_copy_pp[part](dst, dststride, src, srcstride);
> }
>
> diff -r 90c2763ee027 -r 1e0476f339c9 source/Lib/TLibCommon/TComYuv.h
> --- a/source/Lib/TLibCommon/TComYuv.h Tue Nov 12 16:55:09 2013 +0530
> +++ b/source/Lib/TLibCommon/TComYuv.h Wed Nov 13 12:54:00 2013 +0530
> @@ -136,7 +136,7 @@
> // Copy YUV partition buffer to other YUV partition buffer
> void copyPartToPartYuv(TComYuv* dstPicYuv, uint32_t partIdx,
> uint32_t width, uint32_t height, bool bLuma = true, bool bChroma = true);
> void copyPartToPartYuv(TShortYUV* dstPicYuv, uint32_t partIdx,
> uint32_t width, uint32_t height, bool bLuma = true, bool bChroma = true);
> - void copyPartToPartLuma(TComYuv* dstPicYuv, uint32_t partIdx,
> uint32_t width, uint32_t height);
> + void copyPartToPartLuma(TComYuv* dstPicYuv, uint32_t partIdx,
> uint32_t partEnum);
> void copyPartToPartLuma(TShortYUV* dstPicYuv, uint32_t partIdx,
> uint32_t width, uint32_t height);
> void copyPartToPartChroma(TComYuv* dstPicYuv, uint32_t partIdx,
> uint32_t width, uint32_t height);
> void copyPartToPartChroma(TShortYUV* dstPicYuv, uint32_t partIdx,
> uint32_t width, uint32_t height);
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20131113/9c7f7a54/attachment.html>
More information about the x265-devel
mailing list