Lines Matching refs:palette
1400 static inline int valid_mode(u16 palette, u16 depth)
1402 if ((palette == VIDEO_PALETTE_YUV422 && depth == 16) ||
1403 (palette == VIDEO_PALETTE_YUYV && depth == 16))
1407 return (palette == VIDEO_PALETTE_GREY && depth == 8) ||
1408 (palette == VIDEO_PALETTE_RGB555 && depth == 16) ||
1409 (palette == VIDEO_PALETTE_RGB565 && depth == 16) ||
1410 (palette == VIDEO_PALETTE_RGB24 && depth == 24) ||
1411 (palette == VIDEO_PALETTE_RGB32 && depth == 32) ||
1412 (palette == VIDEO_PALETTE_UYVY && depth == 16);
2042 out_fmt = cam->vp.palette;
3395 DBG("palette: %d\n", vp->palette);
3397 if (!valid_mode(vp->palette, vp->depth)) {
3431 vp->depth, vp->palette, vp->brightness, vp->hue, vp->colour,
3524 cam->vp.palette = vm->format;
3859 cam->vp.palette = VIDEO_PALETTE_RGB24; /* to be set by user */