Browse Source

Add explanation for buffer size

pull/65/head
Steve Cook 2 years ago
parent
commit
79c521d935
  1. 3
      ctru-rs/examples/camera-image.rs

3
ctru-rs/examples/camera-image.rs

@ -8,6 +8,9 @@ use std::time::Duration;
const WIDTH: usize = 400; const WIDTH: usize = 400;
const HEIGHT: usize = 240; const HEIGHT: usize = 240;
// The screen size is the width and height multiplied by 2 and
// then multiplied by 2 again for 3D images
const BUF_SIZE: usize = WIDTH * HEIGHT * 2 * 2; const BUF_SIZE: usize = WIDTH * HEIGHT * 2 * 2;
const WAIT_TIMEOUT: Duration = Duration::from_micros(300); const WAIT_TIMEOUT: Duration = Duration::from_micros(300);

Loading…
Cancel
Save