Commit 97910b54 authored by arpi's avatar arpi

c++ fix


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@2196 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 62d2abad
...@@ -1533,6 +1533,8 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP ...@@ -1533,6 +1533,8 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP
int y; int y;
for(y=0; y<BLOCK_SIZE; y++) for(y=0; y<BLOCK_SIZE; y++)
{ {
const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]);
dst[0] = src[0]; dst[0] = src[0];
dst[1] = src[1]; dst[1] = src[1];
dst[2] = src[2]; dst[2] = src[2];
...@@ -1542,7 +1544,6 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP ...@@ -1542,7 +1544,6 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP
dst[6] = src[6]; dst[6] = src[6];
dst[7] = src[7]; dst[7] = src[7];
const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]);
if(ABS(middleEnergy) < 8*QP) if(ABS(middleEnergy) < 8*QP)
{ {
const int q=(src[3] - src[4])/2; const int q=(src[3] - src[4])/2;
......
...@@ -1533,6 +1533,8 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP ...@@ -1533,6 +1533,8 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP
int y; int y;
for(y=0; y<BLOCK_SIZE; y++) for(y=0; y<BLOCK_SIZE; y++)
{ {
const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]);
dst[0] = src[0]; dst[0] = src[0];
dst[1] = src[1]; dst[1] = src[1];
dst[2] = src[2]; dst[2] = src[2];
...@@ -1542,7 +1544,6 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP ...@@ -1542,7 +1544,6 @@ static inline void doHorizDefFilterAndCopyBack(uint8_t dst[], int stride, int QP
dst[6] = src[6]; dst[6] = src[6];
dst[7] = src[7]; dst[7] = src[7];
const int middleEnergy= 5*(src[4] - src[5]) + 2*(src[2] - src[5]);
if(ABS(middleEnergy) < 8*QP) if(ABS(middleEnergy) < 8*QP)
{ {
const int q=(src[3] - src[4])/2; const int q=(src[3] - src[4])/2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment