title: Struggling with X11 raw raster
body: <p>[Preface: I have looked off and on for a direct-path for this for a years now.]</p>
  
  <p>I get raw raster (1024x600, RGB/565) from a remote device. I want to display it in a simple X11 window. Because it represents a screen scrape, it needs to be fast/near realtime (30 fps min). I found a way to plug each pixel into a Pixmap/Bitmap, but there must be a way to hand the whole raster blob to Pixmap/Bitmap. Can anyone help? I just need a direct path:</p>
  
  <p>data[] -> Pixmap -> paint into window.</p>
  
  <pre><code>uint8_t buffer[1024*600*2];
  int byte_cnt = recv(client_sd, buffer, sizeof(buffer), MSG_WAITALL);
  ???; //--convert to Pixmap/Bitmap
  ???; //--paint in window
  </code></pre>
  
  <p>I cannot send a bitmap from the source, because I will run a simple RLE (run-length encoder) to speed data rates.</p>
  
  <p>Thanks,</p>
  
  <p>SW, PhM (PhD/ABD)</p>