<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><br><div id="yiv1708938316"><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>
        
        
        
        <style type="text/css">
<!--
_filtered #yiv1708938316 {margin:0.79in;}
#yiv1708938316 P {margin-bottom:0.08in;}
-->
</style>
<div style="margin-bottom:0in;">xcb_image_t sizing issue.
</div>
<div style="margin-bottom:0in;"><br>
</div>
<div style="margin-bottom:0in;">I am creating an image using the create
native image function <b>xcbImage = xcb_image_create_native
(connection, imageOrignalWidth, imageOriginalHeight,
XCB_IMAGE_FORMAT_Z_PIXMAP, depth, 0, ~0, 0); </b><span style="font-weight:normal;">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.</span><b>memcpy(windowManager->getDecodedFrameBuffer()+i*xcbWindowManager->getXcbImage()->stride,
picture->data[0]+i*picture->linesize[0], picture->linesize[0]);
</b><span style="font-weight:normal;">The source of the image is of
type AVPicture *</span><b> </b><span style="font-weight:normal;">
</span><b>xcb_image_shm_put(xcbWindowManager->getConnection(),
xcbWindowManager->getXcbDrawable(),
xcbWindowManager->getFgColor(), xcbWindowManager->getXcbImage(),
xcbWindowManager->getShmInfo(), 0, 0, 0, 0, originalWidth,
originalHeight, 0); </b><span style="font-weight:normal;"> 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 </span>
</div>
<div style="margin-bottom:0in;"><span style="font-weight:normal;">xcb_get_geometry_reply_t
and got 899 x 480 for the drawable. attached is a screen shot of the
image.</span></div><div style="margin-bottom:0in;"><img alt=""></div><div style="margin-bottom:0in;"><br></div><div style="margin-bottom:0in;">I
pasted the image on gimp and the dimensions were 162 x 408 </div><span style="font-weight:normal;"></span><div style="margin-bottom:0in;">
</div>
<div style="margin-bottom:0in;"><span style="font-weight:normal;">What
do I need to do to fill in the whole drawable???</span></div>
<div style="margin-bottom:0in;"><br>
</div>
</div></div></div><br>_______________________________________________<br>Xcb mailing list<br><a ymailto="mailto:Xcb@lists.freedesktop.org" href="mailto:Xcb@lists.freedesktop.org">Xcb@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/xcb" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xcb</a><br><br></div></div></div></body></html>