CFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
%endif
-%if "%{tizen_profile_name}" == "tv"
-CFLAGS+=" -D_PNG_COLOR_PICK_ENABLED_ -D_PNG_SEQUENTIAL_READ_SUPPORTED_"
-%endif
-
%configure \
--disable-static \
%ifarch %arm armv7l armv7el aarch64
int onoff));
#endif /* SET_OPTION */
-/* VD_TIZEN_ONLY */
-#ifdef _PNG_COLOR_PICK_ENABLED_
+#ifndef __TIZEN__
+#define __TIZEN__
+#endif
+#ifdef __TIZEN__
/* Read the whole image into memory at once. */
PNG_EXPORT(250, void, png_read_image_with_pick_color, (png_structp png_ptr,
png_bytepp image,
PngPickColor *pickcolor));
#endif
-/* VD_TIZEN_ONLY_END */
/*******************************************************************************
* END OF HARDWARE AND SOFTWARE OPTIONS
}
}
-#ifdef _PNG_COLOR_PICK_ENABLED_
+#ifdef __TIZEN__
void PNGAPI
png_read_image_with_pick_color(png_structp png_ptr, png_bytepp image, PngPickColor *pickcolor)
{
#endif
image_height=png_ptr->height;
- image_bpp=png_ptr->rowbytes;
+ image_bpp=png_ptr->rowbytes;
image_width=png_ptr->width;
png_ptr->user_chunk_ptr = pickcolor;
-
+
if(pickcolor->perc < 0)
{
png_error(png_ptr, "ColorPick percentage is negative");
pickcolor->sumB = pickcolor->sumB/npixels;
}
}
-#endif /* _PNG_COLOR_PICK_ENABLED_ */
+#endif /* __TIZEN__ */
#endif /* SEQUENTIAL_READ */
#ifdef PNG_SEQUENTIAL_READ_SUPPORTED
mode = PNG_ALPHA_PNG;
output_gamma = PNG_DEFAULT_sRGB;
}
-
+
if ((change & PNG_FORMAT_FLAG_ASSOCIATED_ALPHA) != 0)
{
mode = PNG_ALPHA_OPTIMIZED;
change &= ~PNG_FORMAT_FLAG_ASSOCIATED_ALPHA;
}
-
+
/* If 'do_local_background' is set check for the presence of gamma
* correction; this is part of the work-round for the libpng bug
* described above.
}
}
-#ifdef _PNG_COLOR_PICK_ENABLED_
+#ifdef __TIZEN__
#ifdef _ARCH_ARM_
-void
-copy_src_to_dst(png_bytep dp, png_bytep sp, int width,
+void
+copy_src_to_dst(png_bytep dp, png_bytep sp, int width,
int row_stride, int nplanes, PngPickColor *png_pickcolor)
{
int j;
uint64x2_t sumR_64x2 = vpaddlq_u32 ( sumR_32x4 );
uint64x2_t sumG_64x2 = vpaddlq_u32 ( sumG_32x4 );
- uint64x2_t sumB_64x2 = vpaddlq_u32 ( sumB_32x4 );
+ uint64x2_t sumB_64x2 = vpaddlq_u32 ( sumB_32x4 );
uint64x1_t sumR_Lo_64x1 = vget_low_u64 ( sumR_64x2 );
uint64x1_t sumR_Hi_64x1 = vget_high_u64 ( sumR_64x2 );
vst3_u64( sumRGBA, sumRGB_64x1);
png_pickcolor->sumR += sumRGBA[0];
- png_pickcolor->sumG += sumRGBA[1];
- png_pickcolor->sumB += sumRGBA[2];
+ png_pickcolor->sumG += sumRGBA[1];
+ png_pickcolor->sumB += sumRGBA[2];
}
memcpy(dst, src, (width-j)*nplanes);
}
#endif
-#endif
+#endif /* __TIZEN__ */
/* Combines the row recently read in with the existing pixels in the row. This
* routine takes care of alpha and transparency if requested. This routine also