rprCameraSetSensorSize

Sets sensor size for the camera.

Default sensor size is the one corresponding to full frame 36x24 mm sensor.

rpr_status rprCameraSetSensorSize(

rpr_camera camera,

rpr_float width,

rpr_float height);

Parameters

Parameter

Description

camera

The camera to set sensor size for.

width

Sensor width in millimeters.

height

Sensor height in millimeters.

Notes

Normally, the sensor size ratio should match the aspect ratio of the output framebuffer.

Return

Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.

To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.