rust3ds / ctru-rs

Rust wrapper for libctru
https://rust3ds.github.io/ctru-rs/
Other
120 stars 18 forks source link

Implement StereoCamera and ImageQuality calibrations to CAM #138

Open Meziu opened 11 months ago

Meziu commented 11 months ago

As stated in this comment:

For CAMU_SetStereoCameraCalibrationData:

  • You need to use cam:s (I think cam:c also works?) for privileged access. All 3 cam services share the same handler but have state checks on what service needs to be used to access certain commands.
  • If you want an example of its usage, it's used by the System Settings app to perform camera calibration.
  • Camera calibration data is saved by cam to the first 0x40 of config block 0x00060000 if you want to look at that data.

A handle to cam:s should be used to access higher privilege functionality in the cam service, such as stereo camera and image quality calibration.