Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda37f87

Browse files
committed
Comment unnecessary byte ordering for 8 bit values
1 parentbf30ea8 commitda37f87

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎libraries/Portenta_Camera/extras/CameraRawBytesVisualizer/CameraRawBytesVisualizer.pde‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,15 @@ void serialEvent(Serial myPort) {
6666
// read the received bytes
6767
myPort.readBytes(frameBuffer);
6868

69-
// Access raw bytes via byte buffer and ensure
70-
// proper endianness of the data for > 8 bit values.
69+
// Access raw bytes via byte buffer
7170
ByteBuffer bb=ByteBuffer.wrap(frameBuffer);
72-
bb.order(ByteOrder.BIG_ENDIAN);
71+
72+
/*
73+
Ensure proper endianness of the data for > 8 bit values.
74+
When using > 8bit values uncomment the following line and
75+
adjust the translation to the pixel color.
76+
*/
77+
//bb.order(ByteOrder.BIG_ENDIAN);
7378

7479
int i=0;
7580

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp