[x265] [PATCH] _upBuff1: scale down fron int32_t to int8_t
Steve Borho
steve at borho.org
Sat Jan 3 04:53:45 CET 2015
On 01/02, praveen at multicorewareinc.com wrote:
> # HG changeset patch
> # User Praveen Tiwari
> # Date 1419425866 -19800
> # Node ID 1629b8b3c5961dd50f458d44a30ae7c90fd15898
> # Parent 56e45fb0464e062a0026ab3e826b749527e4fa08
> _upBuff1: scale down fron int32_t to int8_t
queued
> diff -r 56e45fb0464e -r 1629b8b3c596 source/encoder/sao.cpp
> --- a/source/encoder/sao.cpp Fri Jan 02 17:03:33 2015 +0530
> +++ b/source/encoder/sao.cpp Wed Dec 24 18:27:46 2014 +0530
> @@ -582,8 +582,8 @@
> int skipB = plane ? 2 : 4;
> int skipR = plane ? 3 : 5;
>
> - int32_t _upBuff1[MAX_CU_SIZE + 2], *upBuff1 = _upBuff1 + 1;
> - int32_t _upBufft[MAX_CU_SIZE + 2], *upBufft = _upBufft + 1;
> + int8_t _upBuff1[MAX_CU_SIZE + 2], *upBuff1 = _upBuff1 + 1;
> + int8_t _upBufft[MAX_CU_SIZE + 2], *upBufft = _upBufft + 1;
>
> // SAO_BO:
> {
> @@ -680,7 +680,7 @@
> {
> for (x = 0; x < endX; x++)
> {
> - int signDown = signOf(rec[x] - rec[x + stride]);
> + int8_t signDown = signOf(rec[x] - rec[x + stride]);
> int edgeType = signDown + upBuff1[x] + 2;
> upBuff1[x] = -signDown;
>
> @@ -725,7 +725,7 @@
> upBufft[startX] = signOf(rec[startX + stride] - rec[startX - 1]);
> for (x = startX; x < endX; x++)
> {
> - int signDown = signOf(rec[x] - rec[x + stride + 1]);
> + int8_t signDown = signOf(rec[x] - rec[x + stride + 1]);
> int edgeType = signDown + upBuff1[x] + 2;
> upBufft[x + 1] = -signDown;
> stats[s_eoTable[edgeType]] += (fenc[x] - rec[x]);
> @@ -771,7 +771,7 @@
> {
> for (x = startX; x < endX; x++)
> {
> - int signDown = signOf(rec[x] - rec[x + stride - 1]);
> + int8_t signDown = signOf(rec[x] - rec[x + stride - 1]);
> int edgeType = signDown + upBuff1[x] + 2;
> upBuff1[x - 1] = -signDown;
> stats[s_eoTable[edgeType]] += (fenc[x] - rec[x]);
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
--
Steve Borho
More information about the x265-devel
mailing list