• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavdevice/

Lines Matching refs:image

73     XImage *image;           /**< X11 image holding the grab */
163 XImage *image;
226 image = XShmCreateImage(dpy,
234 image->bytes_per_line * image->height,
241 x11grab->shminfo.shmaddr = image->data = shmat(x11grab->shminfo.shmid, 0, 0);
251 image = XGetImage(dpy, RootWindow(dpy, screen),
257 switch (image->bits_per_pixel) {
263 if ( image->red_mask == 0xf800 &&
264 image->green_mask == 0x07e0 &&
265 image->blue_mask == 0x001f ) {
268 } else if (image->red_mask == 0x7c00 &&
269 image->green_mask == 0x03e0 &&
270 image->blue_mask == 0x001f ) {
274 av_log(s1, AV_LOG_ERROR, "RGB ordering at image depth %i not supported ... aborting\n", image->bits_per_pixel);
275 av_log(s1, AV_LOG_ERROR, "color masks: r 0x%.6lx g 0x%.6lx b 0x%.6lx\n", image->red_mask, image->green_mask, image->blue_mask);
281 if ( image->red_mask == 0xff0000 &&
282 image->green_mask == 0x00ff00 &&
283 image->blue_mask == 0x0000ff ) {
285 } else if ( image->red_mask == 0x0000ff &&
286 image->green_mask == 0x00ff00 &&
287 image->blue_mask == 0xff0000 ) {
290 av_log(s1, AV_LOG_ERROR,"rgb ordering at image depth %i not supported ... aborting\n", image->bits_per_pixel);
291 av_log(s1, AV_LOG_ERROR, "color masks: r 0x%.6lx g 0x%.6lx b 0x%.6lx\n", image->red_mask, image->green_mask, image->blue_mask);
300 av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel);
305 x11grab->frame_size = x11grab->width * x11grab->height * image->bits_per_pixel/8;
311 x11grab->image = image;
327 * Paint a mouse pointer in an X11 image.
329 * @param image image to paint the mouse pointer to
334 paint_mouse_pointer(XImage *image, struct x11_grab *s)
345 int pixstride = image->bits_per_pixel >> 3;
346 /* Warning: in its insanity, xlib provides unsigned image data through a
350 uint8_t *pix = image->data;
353 if (image->bits_per_pixel != 24 && image->bits_per_pixel != 32)
392 * Read new data in the image structure.
396 * @param image Image where the grab will be put
402 xget_zpixmap(Display *dpy, Drawable d, XImage *image, int x, int y)
408 if (!image) {
419 req->width = image->width;
420 req->height = image->height;
431 _XReadPad(dpy, image->data, nbytes);
450 XImage *image = s->image;
480 pkt->data = image->data;
533 if (!XShmGetImage(dpy, root, image, x_off, y_off, AllPlanes)) {
537 if (!xget_zpixmap(dpy, root, image, x_off, y_off)) {
543 paint_mouse_pointer(image, s);
567 /* Destroy X11 image */
568 if (x11grab->image) {
569 XDestroyImage(x11grab->image);
570 x11grab->image = NULL;