[Xcb] xcb_image_t sizing issue
Louis Mendoza
louismendoza23 at yahoo.com
Wed Sep 21 10:30:17 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
memcpy.memcpy(windowManager->getDecodedFrameBuffer()+i*xcbWindowManager->getXcbImage()->stride,
picture->data[0]+i*picture->linesize[0], picture->linesize[0]); The source of the image is of
type AVPicture *xcb_image_shm_put(xcbWindowManager->getConnection(),
xcbWindowManager->getXcbDrawable(),
xcbWindowManager->getFgColor(), xcbWindowManager->getXcbImage(),
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
drawable using
xcb_get_geometry_reply_t
and got 899 x 480 for the drawable. attached is a screen shot of the
image.
I
pasted the image on gimp and the dimensions were 162 x 408
What
do I need to do to fill in the whole drawable???
_______________________________________________
Xcb mailing list
Xcb at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xcb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110921/0c73c4ec/attachment.htm>
-------------- next part --------------
_______________________________________________
Xcb mailing list
Xcb at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xcb
More information about the Xcb
mailing list