110
Piranha4 4K Camera Color User's Manual
03-032-20180-01
Teledyne DALSA
Acqu iring the above d ata as you w ou ld an 8-bit m ono cam era in 8-tap m od e creates the acqu isition bu ffer
show n below .
On the other hand , the Sap Form atRGBR888 form at is show n below .
As you d em onstrated above, the tw o bu ffers‘ content and their ord er are exactly sam e. Thu s, acqu iring
the bu ffer as if the cam era w ere a m ono 8-bit 8-tap resu lts in the sam e bu ffer contents as the
Sap Form atRGBR888.
Sample Code
/ / Assu m ing acqu isition bu ffer is d eclared as below .
#d efine N UMBUFFERS 8
Sap Bu ffer *m _Bu ffers;
m _Bu ffers = new Sap Bu fferWithTrash(N UMBUFFERS, m _Acq);
/ / Call Create() for acqu isition bu ffer
m _Bu ffers->Create();
/ / Declare Sap Bu ffer object w hich shares bu ffer com p onents w ith the acqu isition bu ffer
Sap Bu ffer *m _View Bu ffers;
int w id th, height, i;
void * p Data[N UMBUFFERS];
for (i=0; i<N UMBUFFERS; i++)
{
m _Bu ffers->GetAd d ress(i, &p Data[i]);
}
w id th = m _Bu ffers->GetWid th();
height = m _Bu ffers->GetH eight();
m _View Bu ffers = new Sap Bu ffer(N UMBUFFERS, p Data, w id th / 3, height,Sap Form atRGB888);
m _View Bu ffers->Create();
If you d eclare above m _View Bu ffer as the sou rce bu ffer of Sap View object, you can d isp lay RGB im age
w ithou t any ad d itional p rocessing.
Adr+0
Adr+1
Adr+2
Adr+3
Adr+4
Adr+5
Adr+6
Adr+7
Adr+8
Adr+9
Adr+10
Adr+11
Red1
Green1
Blue1
Red2
Green2
Blue2
Red3
Green3
Blue3
Red4
Green4
Blue4
First CLK
Second CLK
Red1
Green1
Blue1
Red2
Green2
Blue2
Red3
Green3
Blue3
Red4
Green4
Blue4
Pixe1 (3byte)
Pixel2
Pixel3
Pixel4
All manuals and user guides at all-guides.com