Fixed
Status Update
Comments
ku...@google.com <ku...@google.com>
ku...@google.com <ku...@google.com> #2
Thank you for reporting this issue. We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
ar...@google.com <ar...@google.com> #3
Our engineering team has fixed this issue and the corresponding documentation will be updated.
an...@gmail.com <an...@gmail.com> #4
This is a bug on Android Api.
describe code:
static ByteArrayOutputStream outputSteam = new ByteArrayOutputStream();
public static byte[] convertNv21ToJpeg(byte[] nv21, int w, int h){
outputSteam.reset();
YuvImage image = new YuvImage(nv21, ImageFormat.NV21, w, h, null);
image.compressToJpeg(new Rect(0, 0, w, h), 70, outputSteam);
return outputSteam.toByteArray();
}
while (true) {
BitmapUtil.convertNv21ToJpeg(nv21,w,h);
}
Native memory keeps growing, eventually leading to overflow
describe code:
static ByteArrayOutputStream outputSteam = new ByteArrayOutputStream();
public static byte[] convertNv21ToJpeg(byte[] nv21, int w, int h){
outputSteam.reset();
YuvImage image = new YuvImage(nv21, ImageFormat.NV21, w, h, null);
image.compressToJpeg(new Rect(0, 0, w, h), 70, outputSteam);
return outputSteam.toByteArray();
}
while (true) {
BitmapUtil.convertNv21ToJpeg(nv21,w,h);
}
Native memory keeps growing, eventually leading to overflow
Description
3.