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)
public static void saveYUVImageData(byte[] previewBytes, String outFilePath, int compressionQuality) throws IOException { //first I decode the YUV frame data into RGB data int[] out = new int[previewBytes.length]; decodeYUV420SP(out, previewBytes, CameraSettings.previewWidth, CameraSettings.previewHeight); //next I save the RGB data to a bitmap Bitmap myImage = Bitmap.createBitmap(out, CameraSettings.previewWidth, CameraSettings.previewHeight, Config.ARGB_8888); //next I write the Bitmap out to a file. FileOutputStream fileOutputStream = new FileOutputStream(outFilePath); BufferedOutputStream bos = new BufferedOutputStream(fileOutputStream); myImage.compress(CompressFormat.JPEG, compressionQuality, bos); bos.flush(); bos.close(); myImage.recycle(); //and last I write the exif data to the file ExifInterface exif = new ExifInterface(filePath); exif.setAttribute("FocalLength", "43/10"); exif.setAttribute("FocalPlaneResolutionUnits", "1"); exif.setAttribute("FocalPlaneXResolution", "440/1"); exif.setAttribute("FocalPlaneYResolution", "800/1"); exif.saveAttributes(); }