Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
void toRGB565(unsigned short *yuvs, int widthIn, int heightIn, unsigned int *rgbs, int widthOut, int heightOut) { int half_widthIn = widthIn >> 1; //the end of the luminance data int lumEnd = (widthIn * heightIn) >> 1; //points to the next luminance value pair int lumPtr = 0; //points to the next chromiance value pair int chrPtr = lumEnd; //the end of the current luminance scanline int lineEnd = half_widthIn; int x,y; for (y=0;y> 1; for (x=0;x> 8 ) & 0xff; Y1 = Y1 & 0xff; int Cr = yuvs[chrPtr++]; int Cb = ((Cr >> 8 ) & 0xff) - 128; Cr = (Cr & 0xff) - 128; int R, G, B; //generate first RGB components B = Y1 + ((454 * Cb) >> 8 ) ; if (B < 0) B = 0; if (B > 255) B = 255; G = Y1 - (( 88 * Cb + 183 * Cr) >> 8 ) ; if (G < 0) G = 0; if (G > 255) G = 255; R = Y1 + ((359 * Cr) >> 8 ) ; if (R < 0) R = 0; if (R > 255) R = 255; int val = ((R & 0xf8) << 8 )| ((G & 0xfc) << 3) | (B >> 3) ; //generate second RGB components B = Y1 + ((454 * Cb) >> 8 ); if (B < 0) B = 0; if (B > 255) B = 255; G = Y1 - ((88 * Cb + 183 * Cr) > > 8 ); if (G < 0) G = 0; if (G > 255) G = 255; R = Y1 + ((359 * Cr) > > 8 ) ; if (R < 0) R = 0; if (R > 255) R = 255; rgbs[yPosOut+x] = val | ((((R & 0xf8) << 8 ) | ((G & 0xfc) << 3) | (B >> 3)) << 16); } //skip back to the start of the chromiance values when necessary chrPtr = lumEnd + ((lumPtr >> 1) / half_widthIn) * half_widthIn; lineEnd += half_widthIn; } } JNIEXPORT void JNICALL Java_com_abc_android_GLLayer_imageconversion (JNIEnv *env, jclass clazz,jbyteArray imageIn, jint widthIn, jint heightIn, jobject imageOut, jint widthOut, jint heightOut,jint filter) { jbyte *cImageIn = (env)->GetByteArrayElements(imageIn, NULL); jbyte *cImageOut = (jbyte*)(env)->GetDirectBufferAddress(imageOut); toRGB565((unsigned short*)cImageIn, widthIn, heightIn, (unsigned int*)cImageOut, widthOut, heightOut); (env)->ReleaseByteArrayElements(imageIn, cImageIn,0); }