[Xcb] xcb_image_t sizing issue
louismendoza23 at yahoo.com
Thu Sep 22 10:34:25 PDT 2011
xcb_image_t sizing issue.
I am creating an image using the create
native image function xcbImage = xcb_image_create_native
(connection, imageOrignalWidth, imageOriginalHeight,
XCB_IMAGE_FORMAT_Z_PIXMAP, depth, 0, ~0, 0); I
am trying to put this image into shared memory and trying to put it
on a xcb_drawable_t. I copy the source of the image I want to put
onto the drawable via
picture->data+i*picture->linesize, picture->linesize); The source of the image is of
type AVPicture *xcb_image_shm_put(xcbWindowManager->getConnection(),
xcbWindowManager->getShmInfo(), 0, 0, 0, 0, originalWidth,
originalHeight, 0); I see an
image on the drawable but it does not have the correct dimensions.
(It is a lot smaller than 640x480). ImageOrignalWidth = 640 and
imageOriginalHeight = 480. I printed the height and width of the
and got 899 x 480 for the drawable. attached is a screen shot of the
pasted the image on gimp and the dimensions were 162 x 408
do I need to do to fill in the whole drawable???
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xcb