src/gl/hqnx/common.h
/* Test if there is difference in color */
Test if there is difference in color
Test if there is difference in color
static inline int yuv_diff(uint32_t yuv1, uint32_t yuv2) {
    return (( abs((int64_t)(yuv1 & Ymask) - (int64_t)(yuv2 & Ymask)) > trY ) ||
            ( abs((int64_t)(yuv1 & Umask) - (int64_t)(yuv2 & Umask)) > trU ) ||
            ( abs((int64_t)(yuv1 & Vmask) - (int64_t)(yuv2 & Vmask)) > trV ) );
}
static inline int yuv_diff ( uint32_t yuv1 , uint32_t yuv2 ) { return ( ( abs ( ( int64_t ) ( yuv1 & Ymask ) - ( int64_t ) ( yuv2 & Ymask ) ) > trY ) || ( abs ( ( int64_t ) ( yuv1 & Umask ) - ( int64_t ) ( yuv2 & Umask ) ) > trU ) || ( abs ( ( int64_t ) ( yuv1 & Vmask ) - ( int64_t ) ( yuv2 & Vmask ) ) > trV ) ) ; }
Test if there is difference in color
Test if there is difference in color