Skip to content

Commit

Permalink
add more debugging info to direct capture
Browse files Browse the repository at this point in the history
should help debugging  #4899

closes #4941

//FREEBIE
  • Loading branch information
agrajaghh authored and moxie0 committed Dec 24, 2015
1 parent fd57031 commit 94452e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/thoughtcrime/securesms/util/BitmapUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ public static byte[] rotateNV21(@NonNull final byte[] yuv,
if (rotation % 90 != 0 || rotation < 0 || rotation > 270) {
throw new IllegalArgumentException("0 <= rotation < 360, rotation % 90 == 0");
} else if ((width * height * 3) / 2 != yuv.length) {
throw new IOException("provided width and height don't jive with the data length");
throw new IOException("provided width and height don't jive with the data length (" +
yuv.length + "). Width: " + width + " height: " + height +
" = data length: " + (width * height * 3) / 2);
}

final byte[] output = new byte[yuv.length];
Expand Down

0 comments on commit 94452e7

Please sign in to comment.