47 / 160
Copyright © 2016-2018 TOSHIBA TELI CORPORATION, All Rights Reserved.
http://www.toshiba-teli.co.jp/en/index.htm
D4259344C
If you’re going to reduce width size, set Width, first. Then set OffsetX.
If you’re going to increase width size, set OffsetX, first. Then set Width.
If you’re going to reduce height size, set Height, first. Then set OffsetY.
If you’re going to increase height size, set OffsetY, first. Then set Height.
Please refer to [INode functions] and [IInteger node functions] in [TeliCamAPI Library manual] for more
detail.
Register access API
Control Scalable by accessing IIDC2 registers directly.
API name
Description
Cam_ReadReg
Read register value
Cam_WriteReg
Write register value
Scalable
Write to ‘Value’ field of ‘OffsetX’, ’Width’, ‘OffsetY’, ‘Height’ register.
// ROI = {OffsetX, Width, OffsetY, Height};
uint32_t ROI[] = {612,1224, 512,1024};
// Set ROI (in one by one)
Cam_WriteReg(s_hCam, 0x202094, 1, &ROI[0]);
Cam_WriteReg(s_hCam, 0x202098, 1, &ROI[1]);
Cam_WriteReg(s_hCam, 0x20209C, 1, &ROI[2]);
Cam_WriteReg(s_hCam, 0x2020A0, 1, &ROI[3]);
// Set ROI (in block)
Cam_WriteReg(s_hCam, 0x202094, 4, &ROI[0]);
In IIDC2 registers access,
you can set OffsetX, Width, OffsetY, Height in any order. (in one by one access)
you can also set OffsetX, Width, OffsetY, Height with single access. (in block access)
Please refer to [Camera functions] in [TeliCamAPI Library manual] for more detail.
Minimum / Maximum Value
Model
BG302LMG
BG505LMG
Width/OffsetX unit size
4
4
Height/OffsetY unit size
2
2
Minimum unit size
64 x 64
64 x 64
Maximum unit size (*)
2048 x 1536
2448 x 2048
* initial factory setting