libctru
v2.4.1
|
CAM service for using the 3DS's front and back cameras. More...
Go to the source code of this file.
Data Structures | |
struct | CAMU_ImageQualityCalibrationData |
Image quality calibration data. More... | |
struct | CAMU_StereoCameraCalibrationData |
Stereo camera calibration data. More... | |
struct | CAMU_PackageParameterCameraSelect |
Batch camera configuration for use without a context. More... | |
struct | CAMU_PackageParameterContext |
Batch camera configuration for use with a context. More... | |
struct | CAMU_PackageParameterContextDetail |
Batch camera configuration for use with a context and with detailed size information. More... | |
Enumerations | |
enum | { PORT_NONE = 0x0 , PORT_CAM1 = BIT(0) , PORT_CAM2 = BIT(1) , PORT_BOTH = PORT_CAM1 | PORT_CAM2 } |
Camera connection target ports. More... | |
enum | { SELECT_NONE = 0x0 , SELECT_OUT1 = BIT(0) , SELECT_IN1 = BIT(1) , SELECT_OUT2 = BIT(2) , SELECT_IN1_OUT1 = SELECT_OUT1 | SELECT_IN1 , SELECT_OUT1_OUT2 = SELECT_OUT1 | SELECT_OUT2 , SELECT_IN1_OUT2 = SELECT_IN1 | SELECT_OUT2 , SELECT_ALL = SELECT_OUT1 | SELECT_IN1 | SELECT_OUT2 } |
Camera combinations. More... | |
enum | CAMU_Context { CONTEXT_NONE = 0x0 , CONTEXT_A = BIT(0) , CONTEXT_B = BIT(1) , CONTEXT_BOTH = CONTEXT_A | CONTEXT_B } |
Camera contexts. More... | |
enum | CAMU_Flip { FLIP_NONE = 0x0 , FLIP_HORIZONTAL = 0x1 , FLIP_VERTICAL = 0x2 , FLIP_REVERSE = 0x3 } |
Ways to flip the camera image. More... | |
enum | CAMU_Size { SIZE_VGA = 0x0 , SIZE_QVGA = 0x1 , SIZE_QQVGA = 0x2 , SIZE_CIF = 0x3 , SIZE_QCIF = 0x4 , SIZE_DS_LCD = 0x5 , SIZE_DS_LCDx4 = 0x6 , SIZE_CTR_TOP_LCD = 0x7 , SIZE_CTR_BOTTOM_LCD = SIZE_QVGA } |
Camera image resolutions. More... | |
enum | CAMU_FrameRate { FRAME_RATE_15 = 0x0 , FRAME_RATE_15_TO_5 = 0x1 , FRAME_RATE_15_TO_2 = 0x2 , FRAME_RATE_10 = 0x3 , FRAME_RATE_8_5 = 0x4 , FRAME_RATE_5 = 0x5 , FRAME_RATE_20 = 0x6 , FRAME_RATE_20_TO_5 = 0x7 , FRAME_RATE_30 = 0x8 , FRAME_RATE_30_TO_5 = 0x9 , FRAME_RATE_15_TO_10 = 0xA , FRAME_RATE_20_TO_10 = 0xB , FRAME_RATE_30_TO_10 = 0xC } |
Camera capture frame rates. More... | |
enum | CAMU_WhiteBalance { WHITE_BALANCE_AUTO = 0x0 , WHITE_BALANCE_3200K = 0x1 , WHITE_BALANCE_4150K = 0x2 , WHITE_BALANCE_5200K = 0x3 , WHITE_BALANCE_6000K = 0x4 , WHITE_BALANCE_7000K = 0x5 , WHITE_BALANCE_NORMAL = WHITE_BALANCE_AUTO , WHITE_BALANCE_TUNGSTEN = WHITE_BALANCE_3200K , WHITE_BALANCE_WHITE_FLUORESCENT_LIGHT = WHITE_BALANCE_4150K , WHITE_BALANCE_DAYLIGHT = WHITE_BALANCE_5200K , WHITE_BALANCE_CLOUDY = WHITE_BALANCE_6000K , WHITE_BALANCE_HORIZON = WHITE_BALANCE_6000K , WHITE_BALANCE_SHADE = WHITE_BALANCE_7000K } |
Camera white balance modes. More... | |
enum | CAMU_PhotoMode { PHOTO_MODE_NORMAL = 0x0 , PHOTO_MODE_PORTRAIT = 0x1 , PHOTO_MODE_LANDSCAPE = 0x2 , PHOTO_MODE_NIGHTVIEW = 0x3 , PHOTO_MODE_LETTER = 0x4 } |
Camera photo modes. More... | |
enum | CAMU_Effect { EFFECT_NONE = 0x0 , EFFECT_MONO = 0x1 , EFFECT_SEPIA = 0x2 , EFFECT_NEGATIVE = 0x3 , EFFECT_NEGAFILM = 0x4 , EFFECT_SEPIA01 = 0x5 } |
Camera special effects. More... | |
enum | CAMU_Contrast { CONTRAST_PATTERN_01 = 0x0 , CONTRAST_PATTERN_02 = 0x1 , CONTRAST_PATTERN_03 = 0x2 , CONTRAST_PATTERN_04 = 0x3 , CONTRAST_PATTERN_05 = 0x4 , CONTRAST_PATTERN_06 = 0x5 , CONTRAST_PATTERN_07 = 0x6 , CONTRAST_PATTERN_08 = 0x7 , CONTRAST_PATTERN_09 = 0x8 , CONTRAST_PATTERN_10 = 0x9 , CONTRAST_PATTERN_11 = 0xA , CONTRAST_LOW = CONTRAST_PATTERN_05 , CONTRAST_NORMAL = CONTRAST_PATTERN_06 , CONTRAST_HIGH = CONTRAST_PATTERN_07 } |
Camera contrast patterns. More... | |
enum | CAMU_LensCorrection { LENS_CORRECTION_OFF = 0x0 , LENS_CORRECTION_ON_70 = 0x1 , LENS_CORRECTION_ON_90 = 0x2 , LENS_CORRECTION_DARK = LENS_CORRECTION_OFF , LENS_CORRECTION_NORMAL = LENS_CORRECTION_ON_70 , LENS_CORRECTION_BRIGHT = LENS_CORRECTION_ON_90 } |
Camera lens correction modes. More... | |
enum | CAMU_OutputFormat { OUTPUT_YUV_422 = 0x0 , OUTPUT_RGB_565 = 0x1 } |
Camera image output formats. More... | |
enum | CAMU_ShutterSoundType { SHUTTER_SOUND_TYPE_NORMAL = 0x0 , SHUTTER_SOUND_TYPE_MOVIE = 0x1 , SHUTTER_SOUND_TYPE_MOVIE_END = 0x2 } |
Camera shutter sounds. More... | |
Functions | |
Result | camInit (void) |
Initializes the cam service. More... | |
void | camExit (void) |
Closes the cam service. More... | |
Result | CAMU_StartCapture (u32 port) |
Begins capture on the specified camera port. More... | |
Result | CAMU_StopCapture (u32 port) |
Terminates capture on the specified camera port. More... | |
Result | CAMU_IsBusy (bool *busy, u32 port) |
Gets whether the specified camera port is busy. More... | |
Result | CAMU_ClearBuffer (u32 port) |
Clears the buffer and error flags of the specified camera port. More... | |
Result | CAMU_GetVsyncInterruptEvent (Handle *event, u32 port) |
Gets a handle to the event signaled on vsync interrupts. More... | |
Result | CAMU_GetBufferErrorInterruptEvent (Handle *event, u32 port) |
Gets a handle to the event signaled on camera buffer errors. More... | |
Result | CAMU_SetReceiving (Handle *event, void *dst, u32 port, u32 imageSize, s16 transferUnit) |
Initiates the process of receiving a camera frame. More... | |
Result | CAMU_IsFinishedReceiving (bool *finishedReceiving, u32 port) |
Gets whether the specified camera port has finished receiving image data. More... | |
Result | CAMU_SetTransferLines (u32 port, s16 lines, s16 width, s16 height) |
Sets the number of lines to transfer into an image buffer. More... | |
Result | CAMU_GetMaxLines (s16 *maxLines, s16 width, s16 height) |
Gets the maximum number of lines that can be saved to an image buffer. More... | |
Result | CAMU_SetTransferBytes (u32 port, u32 bytes, s16 width, s16 height) |
Sets the number of bytes to transfer into an image buffer. More... | |
Result | CAMU_GetTransferBytes (u32 *transferBytes, u32 port) |
Gets the number of bytes to transfer into an image buffer. More... | |
Result | CAMU_GetMaxBytes (u32 *maxBytes, s16 width, s16 height) |
Gets the maximum number of bytes that can be saved to an image buffer. More... | |
Result | CAMU_SetTrimming (u32 port, bool trimming) |
Sets whether image trimming is enabled. More... | |
Result | CAMU_IsTrimming (bool *trimming, u32 port) |
Gets whether image trimming is enabled. More... | |
Result | CAMU_SetTrimmingParams (u32 port, s16 xStart, s16 yStart, s16 xEnd, s16 yEnd) |
Sets the parameters used for trimming images. More... | |
Result | CAMU_GetTrimmingParams (s16 *xStart, s16 *yStart, s16 *xEnd, s16 *yEnd, u32 port) |
Gets the parameters used for trimming images. More... | |
Result | CAMU_SetTrimmingParamsCenter (u32 port, s16 trimWidth, s16 trimHeight, s16 camWidth, s16 camHeight) |
Sets the parameters used for trimming images, relative to the center of the image. More... | |
Result | CAMU_Activate (u32 select) |
Activates the specified camera. More... | |
Result | CAMU_SwitchContext (u32 select, CAMU_Context context) |
Switches the specified camera's active context. More... | |
Result | CAMU_SetExposure (u32 select, s8 exposure) |
Sets the exposure value of the specified camera. More... | |
Result | CAMU_SetWhiteBalance (u32 select, CAMU_WhiteBalance whiteBalance) |
Sets the white balance mode of the specified camera. More... | |
Result | CAMU_SetWhiteBalanceWithoutBaseUp (u32 select, CAMU_WhiteBalance whiteBalance) |
Sets the white balance mode of the specified camera. More... | |
Result | CAMU_SetSharpness (u32 select, s8 sharpness) |
Sets the sharpness of the specified camera. More... | |
Result | CAMU_SetAutoExposure (u32 select, bool autoExposure) |
Sets whether auto exposure is enabled on the specified camera. More... | |
Result | CAMU_IsAutoExposure (bool *autoExposure, u32 select) |
Gets whether auto exposure is enabled on the specified camera. More... | |
Result | CAMU_SetAutoWhiteBalance (u32 select, bool autoWhiteBalance) |
Sets whether auto white balance is enabled on the specified camera. More... | |
Result | CAMU_IsAutoWhiteBalance (bool *autoWhiteBalance, u32 select) |
Gets whether auto white balance is enabled on the specified camera. More... | |
Result | CAMU_FlipImage (u32 select, CAMU_Flip flip, CAMU_Context context) |
Flips the image of the specified camera in the specified context. More... | |
Result | CAMU_SetDetailSize (u32 select, s16 width, s16 height, s16 cropX0, s16 cropY0, s16 cropX1, s16 cropY1, CAMU_Context context) |
Sets the image resolution of the given camera in the given context, in detail. More... | |
Result | CAMU_SetSize (u32 select, CAMU_Size size, CAMU_Context context) |
Sets the image resolution of the given camera in the given context. More... | |
Result | CAMU_SetFrameRate (u32 select, CAMU_FrameRate frameRate) |
Sets the frame rate of the given camera. More... | |
Result | CAMU_SetPhotoMode (u32 select, CAMU_PhotoMode photoMode) |
Sets the photo mode of the given camera. More... | |
Result | CAMU_SetEffect (u32 select, CAMU_Effect effect, CAMU_Context context) |
Sets the special effects of the given camera in the given context. More... | |
Result | CAMU_SetContrast (u32 select, CAMU_Contrast contrast) |
Sets the contrast mode of the given camera. More... | |
Result | CAMU_SetLensCorrection (u32 select, CAMU_LensCorrection lensCorrection) |
Sets the lens correction mode of the given camera. More... | |
Result | CAMU_SetOutputFormat (u32 select, CAMU_OutputFormat format, CAMU_Context context) |
Sets the output format of the given camera in the given context. More... | |
Result | CAMU_SetAutoExposureWindow (u32 select, s16 x, s16 y, s16 width, s16 height) |
Sets the region to base auto exposure off of for the specified camera. More... | |
Result | CAMU_SetAutoWhiteBalanceWindow (u32 select, s16 x, s16 y, s16 width, s16 height) |
Sets the region to base auto white balance off of for the specified camera. More... | |
Result | CAMU_SetNoiseFilter (u32 select, bool noiseFilter) |
Sets whether the specified camera's noise filter is enabled. More... | |
Result | CAMU_SynchronizeVsyncTiming (u32 select1, u32 select2) |
Synchronizes the specified cameras' vsync timing. More... | |
Result | CAMU_GetLatestVsyncTiming (s64 *timing, u32 port, u32 past) |
Gets the vsync timing record of the specified camera for the specified number of signals. More... | |
Result | CAMU_GetStereoCameraCalibrationData (CAMU_StereoCameraCalibrationData *data) |
Gets the specified camera's stereo camera calibration data. More... | |
Result | CAMU_SetStereoCameraCalibrationData (CAMU_StereoCameraCalibrationData data) |
Sets the specified camera's stereo camera calibration data. More... | |
Result | CAMU_WriteRegisterI2c (u32 select, u16 addr, u16 data) |
Writes to the specified I2C register of the specified camera. More... | |
Result | CAMU_WriteMcuVariableI2c (u32 select, u16 addr, u16 data) |
Writes to the specified MCU variable of the specified camera. More... | |
Result | CAMU_ReadRegisterI2cExclusive (u16 *data, u32 select, u16 addr) |
Reads the specified I2C register of the specified camera. More... | |
Result | CAMU_ReadMcuVariableI2cExclusive (u16 *data, u32 select, u16 addr) |
Reads the specified MCU variable of the specified camera. More... | |
Result | CAMU_SetImageQualityCalibrationData (CAMU_ImageQualityCalibrationData data) |
Sets the specified camera's image quality calibration data. More... | |
Result | CAMU_GetImageQualityCalibrationData (CAMU_ImageQualityCalibrationData *data) |
Gets the specified camera's image quality calibration data. More... | |
Result | CAMU_SetPackageParameterWithoutContext (CAMU_PackageParameterCameraSelect param) |
Configures a camera with pre-packaged configuration data without a context. More... | |
Result | CAMU_SetPackageParameterWithContext (CAMU_PackageParameterContext param) |
Configures a camera with pre-packaged configuration data with a context. More... | |
Result | CAMU_SetPackageParameterWithContextDetail (CAMU_PackageParameterContextDetail param) |
Configures a camera with pre-packaged configuration data without a context and extra resolution details. More... | |
Result | CAMU_GetSuitableY2rStandardCoefficient (Y2RU_StandardCoefficient *coefficient) |
Gets the Y2R coefficient applied to image data by the camera. More... | |
Result | CAMU_PlayShutterSound (CAMU_ShutterSoundType sound) |
Plays the specified shutter sound. More... | |
Result | CAMU_DriverInitialize (void) |
Initializes the camera driver. | |
Result | CAMU_DriverFinalize (void) |
Finalizes the camera driver. | |
Result | CAMU_GetActivatedCamera (u32 *select) |
Gets the current activated camera. More... | |
Result | CAMU_GetSleepCamera (u32 *select) |
Gets the current sleep camera. More... | |
Result | CAMU_SetSleepCamera (u32 select) |
Sets the current sleep camera. More... | |
Result | CAMU_SetBrightnessSynchronization (bool brightnessSynchronization) |
Sets whether to enable synchronization of left and right camera brightnesses. More... | |
CAM service for using the 3DS's front and back cameras.
anonymous enum |
anonymous enum |
enum CAMU_Context |
enum CAMU_Contrast |
Camera contrast patterns.
enum CAMU_Effect |
enum CAMU_Flip |
enum CAMU_FrameRate |
Camera capture frame rates.
enum CAMU_LensCorrection |
Camera lens correction modes.
enum CAMU_OutputFormat |
enum CAMU_PhotoMode |
enum CAMU_Size |
Camera image resolutions.
enum CAMU_WhiteBalance |
void camExit | ( | void | ) |
Closes the cam service.
This will internally call CAMU_DriverFinalize and close the handle of the service.
Result camInit | ( | void | ) |
Initializes the cam service.
This will internally get the handle of the service, and on success call CAMU_DriverInitialize.
Activates the specified camera.
select | Camera to use. |
Clears the buffer and error flags of the specified camera port.
port | Port to clear. |
Result CAMU_FlipImage | ( | u32 | select, |
CAMU_Flip | flip, | ||
CAMU_Context | context | ||
) |
Flips the image of the specified camera in the specified context.
select | Camera to use. |
flip | Flip mode to use. |
context | Context to use. |
Gets the current activated camera.
select | Pointer to output the current activated camera to. |
Gets a handle to the event signaled on camera buffer errors.
event | Pointer to output the event handle to. |
port | Port to use. |
Result CAMU_GetImageQualityCalibrationData | ( | CAMU_ImageQualityCalibrationData * | data | ) |
Gets the specified camera's image quality calibration data.
data | Pointer to write the quality data to. |
Gets the vsync timing record of the specified camera for the specified number of signals.
timing | Pointer to write timing data to. (size "past * sizeof(s64)") |
port | Port to use. |
past | Number of past timings to retrieve. |
Gets the maximum number of bytes that can be saved to an image buffer.
maxBytes | Pointer to write the maximum number of bytes to. |
width | Width of the image. |
height | Height of the image. |
Gets the maximum number of lines that can be saved to an image buffer.
maxLines | Pointer to write the maximum number of lines to. |
width | Width of the image. |
height | Height of the image. |
Gets the current sleep camera.
select | Pointer to output the current sleep camera to. |
Result CAMU_GetStereoCameraCalibrationData | ( | CAMU_StereoCameraCalibrationData * | data | ) |
Gets the specified camera's stereo camera calibration data.
data | Pointer to output the stereo camera data to. |
Result CAMU_GetSuitableY2rStandardCoefficient | ( | Y2RU_StandardCoefficient * | coefficient | ) |
Gets the Y2R coefficient applied to image data by the camera.
coefficient | Pointer to output the Y2R coefficient to. |
Gets the number of bytes to transfer into an image buffer.
transferBytes | Pointer to write the number of bytes to. |
port | Port to use. |
Gets the parameters used for trimming images.
xStart | Pointer to write the start X coordinate to. |
yStart | Pointer to write the start Y coordinate to. |
xEnd | Pointer to write the end X coordinate to. |
yEnd | Pointer to write the end Y coordinate to. |
port | Port to use. |
Gets a handle to the event signaled on vsync interrupts.
event | Pointer to output the event handle to. |
port | Port to use. |
Gets whether auto exposure is enabled on the specified camera.
autoExposure | Pointer to output the auto exposure state to. |
select | Camera to use. |
Gets whether auto white balance is enabled on the specified camera.
autoWhiteBalance | Pointer to output the auto white balance state to. |
select | Camera to use. |
Gets whether the specified camera port is busy.
busy | Pointer to output the busy state to. |
port | Port to check. |
Gets whether the specified camera port has finished receiving image data.
finishedReceiving | Pointer to output the receiving status to. |
port | Port to check. |
Gets whether image trimming is enabled.
trimming | Pointer to output the trim state to. |
port | Port to use. |
Result CAMU_PlayShutterSound | ( | CAMU_ShutterSoundType | sound | ) |
Plays the specified shutter sound.
sound | Shutter sound to play. |
Reads the specified MCU variable of the specified camera.
data | Pointer to read data to. |
select | Camera to read from. |
addr | Address to read. |
Reads the specified I2C register of the specified camera.
data | Pointer to read data to. |
select | Camera to read from. |
addr | Address to read. |
Sets whether auto exposure is enabled on the specified camera.
select | Camera to use. |
autoWhiteBalance | Whether auto exposure is enabled. |
Sets the region to base auto exposure off of for the specified camera.
select | Camera to use. |
x | X of the region. |
y | Y of the region. |
width | Width of the region. |
height | Height of the region. |
Sets whether auto white balance is enabled on the specified camera.
select | Camera to use. |
autoWhiteBalance | Whether auto white balance is enabled. |
Sets the region to base auto white balance off of for the specified camera.
select | Camera to use. |
x | X of the region. |
y | Y of the region. |
width | Width of the region. |
height | Height of the region. |
Result CAMU_SetBrightnessSynchronization | ( | bool | brightnessSynchronization | ) |
Sets whether to enable synchronization of left and right camera brightnesses.
brightnessSynchronization | Whether to enable brightness synchronization. |
Result CAMU_SetContrast | ( | u32 | select, |
CAMU_Contrast | contrast | ||
) |
Sets the contrast mode of the given camera.
select | Camera to use. |
contrast | Contrast mode to use. |
Result CAMU_SetDetailSize | ( | u32 | select, |
s16 | width, | ||
s16 | height, | ||
s16 | cropX0, | ||
s16 | cropY0, | ||
s16 | cropX1, | ||
s16 | cropY1, | ||
CAMU_Context | context | ||
) |
Sets the image resolution of the given camera in the given context, in detail.
select | Camera to use. |
width | Width to use. |
height | Height to use. |
cropX0 | First crop point X. |
cropY0 | First crop point Y. |
cropX1 | Second crop point X. |
cropY1 | Second crop point Y. |
context | Context to use. |
Result CAMU_SetEffect | ( | u32 | select, |
CAMU_Effect | effect, | ||
CAMU_Context | context | ||
) |
Sets the special effects of the given camera in the given context.
select | Camera to use. |
effect | Effect to use. |
context | Context to use. |
Sets the exposure value of the specified camera.
select | Camera to use. |
exposure | Exposure value to use. |
Result CAMU_SetFrameRate | ( | u32 | select, |
CAMU_FrameRate | frameRate | ||
) |
Sets the frame rate of the given camera.
select | Camera to use. |
frameRate | Frame rate to use. |
Result CAMU_SetImageQualityCalibrationData | ( | CAMU_ImageQualityCalibrationData | data | ) |
Sets the specified camera's image quality calibration data.
data | Data to set. |
Result CAMU_SetLensCorrection | ( | u32 | select, |
CAMU_LensCorrection | lensCorrection | ||
) |
Sets the lens correction mode of the given camera.
select | Camera to use. |
lensCorrection | Lens correction mode to use. |
Sets whether the specified camera's noise filter is enabled.
select | Camera to use. |
noiseFilter | Whether the noise filter is enabled. |
Result CAMU_SetOutputFormat | ( | u32 | select, |
CAMU_OutputFormat | format, | ||
CAMU_Context | context | ||
) |
Sets the output format of the given camera in the given context.
select | Camera to use. |
format | Format to output. |
context | Context to use. |
Result CAMU_SetPackageParameterWithContext | ( | CAMU_PackageParameterContext | param | ) |
Configures a camera with pre-packaged configuration data with a context.
Parameter | to use. |
Result CAMU_SetPackageParameterWithContextDetail | ( | CAMU_PackageParameterContextDetail | param | ) |
Configures a camera with pre-packaged configuration data without a context and extra resolution details.
Parameter | to use. |
Result CAMU_SetPackageParameterWithoutContext | ( | CAMU_PackageParameterCameraSelect | param | ) |
Configures a camera with pre-packaged configuration data without a context.
Parameter | to use. |
Result CAMU_SetPhotoMode | ( | u32 | select, |
CAMU_PhotoMode | photoMode | ||
) |
Sets the photo mode of the given camera.
select | Camera to use. |
photoMode | Photo mode to use. |
Initiates the process of receiving a camera frame.
event | Pointer to output the completion event handle to. |
dst | Buffer to write data to. |
port | Port to receive from. |
imageSize | Size of the image to receive. |
transferUnit | Transfer unit to use when receiving. |
Sets the sharpness of the specified camera.
select | Camera to use. |
sharpness | Sharpness to use. |
Result CAMU_SetSize | ( | u32 | select, |
CAMU_Size | size, | ||
CAMU_Context | context | ||
) |
Sets the image resolution of the given camera in the given context.
select | Camera to use. |
size | Size to use. |
context | Context to use. |
Sets the current sleep camera.
select | Camera to set. |
Result CAMU_SetStereoCameraCalibrationData | ( | CAMU_StereoCameraCalibrationData | data | ) |
Sets the specified camera's stereo camera calibration data.
data | Data to set. |
Sets the number of bytes to transfer into an image buffer.
port | Port to use. |
bytes | Bytes to transfer. |
width | Width of the image. |
height | Height of the image. |
Sets the number of lines to transfer into an image buffer.
port | Port to use. |
lines | Lines to transfer. |
width | Width of the image. |
height | Height of the image. |
Sets whether image trimming is enabled.
port | Port to use. |
trimming | Whether image trimming is enabled. |
Sets the parameters used for trimming images.
port | Port to use. |
xStart | Start X coordinate. |
yStart | Start Y coordinate. |
xEnd | End X coordinate. |
yEnd | End Y coordinate. |
Result CAMU_SetTrimmingParamsCenter | ( | u32 | port, |
s16 | trimWidth, | ||
s16 | trimHeight, | ||
s16 | camWidth, | ||
s16 | camHeight | ||
) |
Sets the parameters used for trimming images, relative to the center of the image.
port | Port to use. |
trimWidth | Trim width. |
trimHeight | Trim height. |
camWidth | Camera width. |
camHeight | Camera height. |
Result CAMU_SetWhiteBalance | ( | u32 | select, |
CAMU_WhiteBalance | whiteBalance | ||
) |
Sets the white balance mode of the specified camera.
select | Camera to use. |
whiteBalance | White balance mode to use. |
Result CAMU_SetWhiteBalanceWithoutBaseUp | ( | u32 | select, |
CAMU_WhiteBalance | whiteBalance | ||
) |
Sets the white balance mode of the specified camera.
TODO: Explain "without base up"?
select | Camera to use. |
whiteBalance | White balance mode to use. |
Begins capture on the specified camera port.
port | Port to begin capture on. |
Terminates capture on the specified camera port.
port | Port to terminate capture on. |
Result CAMU_SwitchContext | ( | u32 | select, |
CAMU_Context | context | ||
) |
Switches the specified camera's active context.
select | Camera to use. |
context | Context to use. |
Synchronizes the specified cameras' vsync timing.
select1 | First camera. |
select2 | Second camera. |
Writes to the specified MCU variable of the specified camera.
select | Camera to write to. |
addr | Address to write to. |
data | Data to write. |