[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chou cam 4912



Hi Matthias,

Thanks a lot for the configuration file. Now it works.

I have now one more problem using UMB buffers.

When I snap a frame to a single UMB buffer it works well, but I need
to snap different frames to different buffers. 
So I tried to snap several frames, to consecutive buffers
and something weird happened.

The first frame in the first buffer was ok, but the frames stored in
the second, third, ... buffer were slightly corrupted. Like if few
pixels were placed in a wrong position.

Then I went to check umb buffers and what I found out is that the
image dimensions are right while the size  was not what I would
expect:

GIOC_GE_GET_UMBWIDTH and  GIOC_GE_GET_UMBBUFSIZE return the right
value 512X480 but 
GIOC_GE_GET_UMBBUFSIZE returns 249856 bytes like if the frame was
512X488. (each pixel is 8 bit deep).

I did the same check without using UMB and now 
GIOC_GE_GET_MEMWIDTH, GIOC_GE_GET_MEMHEIGHT, GIOC_GE_GET_MEMBUFSIZE
all return the right value: 512, 480 and 245760. And the frame was clear.

Do you have any idea of what is going on?

Thanks again,

       Enzo.