|
FireSync API
|
| kStatus kCameraPhaseDecoder_SetFormat | ( | kCameraPhaseDecoder | extension, |
| kCameraPhaseDecoderFormat | format | ||
| ) |
Sets the format.
Note that with legacy formats such as kCAMERA_PHASE_DECODER_FORMAT_S8_C8I8P16 and kCAMERA_PHASE_DECODER_FORMAT_S8_P16 (from PL CFG 623), stripe and phase data are sent as separate messages. For each camera, one stripe and one phase message will be delivered, where each message is structured as a kMsg containing a kArray2 of the relevant pixel type.
For modern formats, there is only one message per camera (the 'phase' data now includes the stripe information as well). For uncompressed data (i.e., kCAMERA_PHASE_DECODER_FORMAT_I8P24), each camera produces one kMsg object containing a kArray2<kPhasePixel2>. Each 32-bit kPhasePixel2 element contains an 8-bit intensity value and a 24-bit phase value.
For compressed data, (i.e., kCAMERA_PHASE_DECODER_FORMAT_DELTA_I8_P24, kCAMERA_PHASE_DECODER_FORMAT_DELTA_P24), each camera produces one kMsg object containing a kCompressedPhase object. The kCAMERA_PHASE_DECODER_FORMAT_DELTA_I8_P24 format yields a kCompressedPhase object that includes both intensity and phase data. The kCAMERA_PHASE_DECODER_FORMAT_DELTA_P24 format yields a kCompressedPhase object that includes only phase data.
| extension | Extension object. |
| format | Format. |