<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><br>


        
        
        
        </div><div><style type="text/css">#yiv899501709 filtered { margin: 0.79in; }#yiv899501709 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-&gt;getDecodedFrameBuffer()+i*xcbWindowManager-&gt;getXcbImage()-&gt;stride,
picture-&gt;data[0]+i*picture-&gt;linesize[0], picture-&gt;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-&gt;getConnection(),
xcbWindowManager-&gt;getXcbDrawable(),
xcbWindowManager-&gt;getFgColor(), xcbWindowManager-&gt;getXcbImage(),
xcbWindowManager-&gt;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&nbsp; 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></div></body></html>