comparison libvo/vo_x11.c @ 5416:310b06d372d0

check depth for direct rendering
author arpi
date Sun, 31 Mar 2002 09:28:17 +0000
parents 871f8ebecdef
children e01c664def74
comparison
equal deleted inserted replaced
5415:e9b15870e82f 5416:310b06d372d0
536 536
537 static uint32_t get_image(mp_image_t *mpi) 537 static uint32_t get_image(mp_image_t *mpi)
538 { 538 {
539 if (zoomFlag || 539 if (zoomFlag ||
540 !IMGFMT_IS_BGR(mpi->imgfmt) || 540 !IMGFMT_IS_BGR(mpi->imgfmt) ||
541 (IMGFMT_BGR_DEPTH(mpi->imgfmt) != vo_depthonscreen) ||
541 ((mpi->type != MP_IMGTYPE_STATIC) && (mpi->type != MP_IMGTYPE_TEMP)) || 542 ((mpi->type != MP_IMGTYPE_STATIC) && (mpi->type != MP_IMGTYPE_TEMP)) ||
542 (mpi->flags & MP_IMGFLAG_PLANAR) || 543 (mpi->flags & MP_IMGFLAG_PLANAR) ||
543 (mpi->flags & MP_IMGFLAG_YUV) || 544 (mpi->flags & MP_IMGFLAG_YUV) ||
544 (mpi->width != image_width) || 545 (mpi->width != image_width) ||
545 (mpi->height != image_height) 546 (mpi->height != image_height)