• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavdevice/

Lines Matching refs:image

73     XImage *image;           /**< X11 image holding the grab */
165 XImage *image;
231 image = XShmCreateImage(dpy,
239 image->bytes_per_line * image->height,
246 x11grab->shminfo.shmaddr = image->data = shmat(x11grab->shminfo.shmid, 0, 0);
256 image = XGetImage(dpy, RootWindow(dpy, screen),
262 switch (image->bits_per_pixel) {
277 if ( image->red_mask == 0xf800 &&
278 image->green_mask == 0x07e0 &&
279 image->blue_mask == 0x001f ) {
282 } else if (image->red_mask == 0x7c00 &&
283 image->green_mask == 0x03e0 &&
284 image->blue_mask == 0x001f ) {
288 av_log(s1, AV_LOG_ERROR, "RGB ordering at image depth %i not supported ... aborting\n", image->bits_per_pixel);
289 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);
295 if ( image->red_mask == 0xff0000 &&
296 image->green_mask == 0x00ff00 &&
297 image->blue_mask == 0x0000ff ) {
299 } else if ( image->red_mask == 0x0000ff &&
300 image->green_mask == 0x00ff00 &&
301 image->blue_mask == 0xff0000 ) {
304 av_log(s1, AV_LOG_ERROR,"rgb ordering at image depth %i not supported ... aborting\n", image->bits_per_pixel);
305 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);
314 av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel);
319 x11grab->frame_size = x11grab->width * x11grab->height * image->bits_per_pixel/8;
325 x11grab->image = image;
342 * Paint a mouse pointer in an X11 image.
344 * @param image image to paint the mouse pointer to
349 paint_mouse_pointer(XImage *image, struct x11grab *s)
360 int pixstride = image->bits_per_pixel >> 3;
361 /* Warning: in its insanity, xlib provides unsigned image data through a
365 uint8_t *pix = image->data;
370 if (image->bits_per_pixel != 24 && image->bits_per_pixel != 32)
415 * Read new data in the image structure.
419 * @param image Image where the grab will be put
425 xget_zpixmap(Display *dpy, Drawable d, XImage *image, int x, int y)
431 if (!image) {
442 req->width = image->width;
443 req->height = image->height;
454 _XReadPad(dpy, image->data, nbytes);
473 XImage *image = s->image;
503 pkt->data = image->data;
566 if (!XShmGetImage(dpy, root, image, x_off, y_off, AllPlanes)) {
570 if (!xget_zpixmap(dpy, root, image, x_off, y_off)) {
576 paint_mouse_pointer(image, s);
600 /* Destroy X11 image */
601 if (x11grab->image) {
602 XDestroyImage(x11grab->image);
603 x11grab->image = NULL;