69 / 172
Copyright © 2019 Toshiba Teli Corpotration, All rights reserved.
http://www.toshiba-teli.co.jp/en/
D4289451A
Register access API
Control PixelFormat by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
PixelCoding/PixelSize
To determine PixelFormat combination of ‘PixelCoding‘ and ‘PixelSize‘ register.
1. Write to ‘Value’ field of ‘PixelCoding’ register.
2. Write to ‘Value’ field of ‘PixelSize’ register.
uint32_t coding = 0; // Mono
uint32_t size = 10; // Bpp10
// 1.Select a pixel coding.
Cam_WriteReg(s_hCam, 0x2020DC, 1, &coding);
// 2.Select a pixel size.
Cam_WriteReg(s_hCam, 0x2020FC, 1, &size);
PixelFormat
Write to ‘Value’ field of ‘PixelFormat’ register.
uint32_t format = 3; // Mono10
// 1.Select a pixel format.
Cam_WriteReg(s_hCam, 0x20241C, 1, &format);
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
● Note
Changing ‘PixelFormat’ register value is invalid during image stream data output.