}
}
+#if _USE_PRODUCT_TV
+ if(total != 0) {
+ cinfo->colormap[0][icolor] = (JSAMPLE)((c0total + (total>>1)) / total);
+ cinfo->colormap[1][icolor] = (JSAMPLE)((c1total + (total>>1)) / total);
+ cinfo->colormap[2][icolor] = (JSAMPLE)((c2total + (total>>1)) / total);
+ }
+#else
cinfo->colormap[0][icolor] = (JSAMPLE)((c0total + (total >> 1)) / total);
cinfo->colormap[1][icolor] = (JSAMPLE)((c1total + (total >> 1)) / total);
cinfo->colormap[2][icolor] = (JSAMPLE)((c2total + (total >> 1)) / total);
+#endif
}