Re: MIT-SHM example
- From: "Rose Cumming" <rose_alice_cumming hotmail com>
- To: paul linuxaudiosystems com
- Cc: gtkmm-list gnome org
- Subject: Re: MIT-SHM example
- Date: Mon, 19 Sep 2005 16:44:09 +0000
I'm not confused.
My application (client) and the X server are running on the same machine.
I want to have very high frame rates to playback my raw data images.
I have tried drawing primitives like draw_rgb_image and draw_gray_image.
What you said was consistent with previous email archieves I read. Using
MIT-SHM will avoid network flow because the image (Xmage) use shared memory
when the client and server are on the same machine.
I have this link
http://ftp.xfree86.org/pub/XFree86/4.5.0/doc/mit-shm.txt
that talks about shared memory XImage.
but if anyone has working example of how to set up a simple application, it
would be greatly appreciated.
From: Paul Davis <paul linuxaudiosystems com>
Reply-To: paul linuxaudiosystems com
To: Rose Cumming <rose_alice_cumming hotmail com>
CC: gtkmm-list gnome org
Subject: Re: MIT-SHM example
Date: Mon, 19 Sep 2005 09:42:19 -0400
On Fri, 2005-09-16 at 17:03 +0000, Rose Cumming wrote:
> Hello all,
>
> Does anyone have a reference to an example of how to use MIT shared
memory
> extension?
> I use gtkmm 2.2 and try to render an image using MIT-SHM on a gtkmm
window.
>
> A simple client example of setting up the window, and modify raw pixel
will
> help.
> Perhaps a reference to the MIT-SHM API will help. I can't find any
clues.
you're a little confused, i believe.
client-side software doesn't use the MIT-SHM unless its part of the Xlib
implementation that talks to the X server. its just way to (drastically)
reduce the amount of data passed over the serialized communication link
with the server. but its very very low level; even GDK (the drawing kit)
doesn't really mess with things at that level.
if you are writing stuff that renders images, you have no reason to
think about whether MIT-SHM exists or not - Xlib will take care of that
for you.
--p
_________________________________________________________________
Powerful Parental Controls Let your child discover the best the Internet has
to offer.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]