X-Git-Url: https://git.piment-noir.org/?p=deb_x265.git;a=blobdiff_plain;f=source%2Fcommon%2Fshortyuv.cpp;h=0b95f0ec87de7a1dec8282c5796a39cc1dbf3fda;hp=2a7e15382b80754ee738ab380fcee712e0d70d22;hb=b53f7c52d8280ab63876efd6eb292c21430ac607;hpb=5c9b45285dd64723ad1dac380b98a7b1f3095674 diff --git a/source/common/shortyuv.cpp b/source/common/shortyuv.cpp index 2a7e153..0b95f0e 100644 --- a/source/common/shortyuv.cpp +++ b/source/common/shortyuv.cpp @@ -84,7 +84,7 @@ void ShortYuv::copyPartToPartLuma(ShortYuv& dstYuv, uint32_t absPartIdx, uint32_ const int16_t* src = getLumaAddr(absPartIdx); int16_t* dst = dstYuv.getLumaAddr(absPartIdx); - primitives.square_copy_ss[log2Size - 2](dst, dstYuv.m_size, const_cast(src), m_size); + primitives.luma_copy_ss[log2Size - 2](dst, dstYuv.m_size, src, m_size); } void ShortYuv::copyPartToPartLuma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2Size) const @@ -92,7 +92,7 @@ void ShortYuv::copyPartToPartLuma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log const int16_t* src = getLumaAddr(absPartIdx); pixel* dst = dstYuv.getLumaAddr(absPartIdx); - primitives.square_copy_sp[log2Size - 2](dst, dstYuv.m_size, const_cast(src), m_size); + primitives.luma_copy_sp[log2Size - 2](dst, dstYuv.m_size, src, m_size); } void ShortYuv::copyPartToPartChroma(ShortYuv& dstYuv, uint32_t absPartIdx, uint32_t log2SizeL) const @@ -103,8 +103,8 @@ void ShortYuv::copyPartToPartChroma(ShortYuv& dstYuv, uint32_t absPartIdx, uint3 int16_t* dstU = dstYuv.getCbAddr(absPartIdx); int16_t* dstV = dstYuv.getCrAddr(absPartIdx); - primitives.chroma[m_csp].copy_ss[part](dstU, dstYuv.m_csize, const_cast(srcU), m_csize); - primitives.chroma[m_csp].copy_ss[part](dstV, dstYuv.m_csize, const_cast(srcV), m_csize); + primitives.chroma[m_csp].copy_ss[part](dstU, dstYuv.m_csize, srcU, m_csize); + primitives.chroma[m_csp].copy_ss[part](dstV, dstYuv.m_csize, srcV, m_csize); } void ShortYuv::copyPartToPartChroma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t log2SizeL) const @@ -115,6 +115,6 @@ void ShortYuv::copyPartToPartChroma(Yuv& dstYuv, uint32_t absPartIdx, uint32_t l pixel* dstU = dstYuv.getCbAddr(absPartIdx); pixel* dstV = dstYuv.getCrAddr(absPartIdx); - primitives.chroma[m_csp].copy_sp[part](dstU, dstYuv.m_csize, const_cast(srcU), m_csize); - primitives.chroma[m_csp].copy_sp[part](dstV, dstYuv.m_csize, const_cast(srcV), m_csize); + primitives.chroma[m_csp].copy_sp[part](dstU, dstYuv.m_csize, srcU, m_csize); + primitives.chroma[m_csp].copy_sp[part](dstV, dstYuv.m_csize, srcV, m_csize); }