Lines Matching refs:pixfmt
104 #define is_rgb_pixfmt(pixfmt) \ argument
105 (((pixfmt) == PIXFMT_RGB565) || ((pixfmt) == PIXFMT_RGB888))
106 #define is_yc_pixfmt(pixfmt) \ argument
107 (((pixfmt) == PIXFMT_YCBCRI) || ((pixfmt) == PIXFMT_YCRCBI) || \
108 ((pixfmt) == PIXFMT_NV12))
200 enum osd_pix_format pixfmt) in _osd_set_palette_map() argument
209 switch (pixfmt) { in _osd_set_palette_map()
316 enum osd_pix_format pixfmt) in _osd_enable_color_key() argument
318 switch (pixfmt) { in _osd_enable_color_key()
537 if (cfg->pixfmt != PIXFMT_OSD_ATTR) in osd_enable_layer()
632 if (win->lconfig.pixfmt == PIXFMT_NV12) { in _osd_start_layer()
685 if (win->lconfig.pixfmt != PIXFMT_NV12) { in _osd_start_layer()
715 if (win->lconfig.pixfmt != PIXFMT_NV12) { in _osd_start_layer()
792 switch (lconfig->pixfmt) { in try_layer_config()
837 is_osd_win(layer) && is_rgb_pixfmt(lconfig->pixfmt)) { in try_layer_config()
838 enum osd_pix_format pixfmt; in try_layer_config() local
841 pixfmt = osd->win[WIN_OSD1].lconfig.pixfmt; in try_layer_config()
843 pixfmt = osd->win[WIN_OSD0].lconfig.pixfmt; in try_layer_config()
845 if (is_rgb_pixfmt(pixfmt)) { in try_layer_config()
857 lconfig->pixfmt == PIXFMT_RGB888) { in try_layer_config()
858 enum osd_pix_format pixfmt; in try_layer_config() local
861 pixfmt = osd->win[WIN_VID1].lconfig.pixfmt; in try_layer_config()
863 pixfmt = osd->win[WIN_VID0].lconfig.pixfmt; in try_layer_config()
865 if (pixfmt == PIXFMT_RGB888) { in try_layer_config()
933 enum osd_pix_format pixfmt) in _osd_set_cbcr_order() argument
939 if (pixfmt == PIXFMT_YCBCRI) in _osd_set_cbcr_order()
941 else if (pixfmt == PIXFMT_YCRCBI) in _osd_set_cbcr_order()
950 _osd_set_cbcr_order(sd, lconfig->pixfmt); in _osd_set_layer_config()
956 if (lconfig->pixfmt == PIXFMT_RGB565) in _osd_set_layer_config()
961 switch (lconfig->pixfmt) { in _osd_set_layer_config()
981 switch (lconfig->pixfmt) { in _osd_set_layer_config()
1028 (lconfig->pixfmt == PIXFMT_NV12)) { in _osd_set_layer_config()
1057 (lconfig->pixfmt != PIXFMT_NV12)) { in _osd_set_layer_config()
1066 lconfig->pixfmt == PIXFMT_NV12) { in _osd_set_layer_config()
1076 lconfig->pixfmt == PIXFMT_NV12) { in _osd_set_layer_config()
1088 if (lconfig->pixfmt == PIXFMT_OSD_ATTR) { in _osd_set_layer_config()
1101 if (lconfig->pixfmt == PIXFMT_RGB565) in _osd_set_layer_config()
1106 switch (lconfig->pixfmt) { in _osd_set_layer_config()
1128 switch (lconfig->pixfmt) { in _osd_set_layer_config()
1177 if (lconfig->pixfmt == PIXFMT_NV12) { in _osd_set_layer_config()
1201 lconfig->pixfmt == PIXFMT_NV12) { in _osd_set_layer_config()
1211 lconfig->pixfmt == PIXFMT_NV12) { in _osd_set_layer_config()
1238 if (is_yc_pixfmt(lconfig->pixfmt)) in osd_set_layer_config()
1239 osd->yc_pixfmt = lconfig->pixfmt; in osd_set_layer_config()
1246 if (((lconfig->pixfmt == PIXFMT_OSD_ATTR) && in osd_set_layer_config()
1247 (cfg->pixfmt != PIXFMT_OSD_ATTR)) || in osd_set_layer_config()
1248 ((lconfig->pixfmt != PIXFMT_OSD_ATTR) && in osd_set_layer_config()
1249 (cfg->pixfmt == PIXFMT_OSD_ATTR))) { in osd_set_layer_config()
1261 if ((lconfig->pixfmt != PIXFMT_OSD_ATTR) && in osd_set_layer_config()
1262 (cfg->pixfmt == PIXFMT_OSD_ATTR)) { in osd_set_layer_config()
1278 lconfig->pixfmt); in osd_set_layer_config()
1284 } else if ((lconfig->pixfmt == PIXFMT_OSD_ATTR) && in osd_set_layer_config()
1285 (cfg->pixfmt != PIXFMT_OSD_ATTR)) { in osd_set_layer_config()
1300 if ((lconfig->pixfmt != cfg->pixfmt) && in osd_set_layer_config()
1301 ((lconfig->pixfmt == PIXFMT_1BPP) || in osd_set_layer_config()
1302 (lconfig->pixfmt == PIXFMT_2BPP) || in osd_set_layer_config()
1303 (lconfig->pixfmt == PIXFMT_4BPP))) { in osd_set_layer_config()
1311 switch (lconfig->pixfmt) { in osd_set_layer_config()
1334 lconfig->pixfmt); in osd_set_layer_config()
1341 if (osd->win[WIN_VID0].lconfig.pixfmt == PIXFMT_RGB888) in osd_set_layer_config()
1343 else if (osd->win[WIN_VID1].lconfig.pixfmt == PIXFMT_RGB888) in osd_set_layer_config()
1397 cfg->pixfmt = PIXFMT_8BPP; in osd_init_layer()
1416 cfg->pixfmt = osd->yc_pixfmt; in osd_init_layer()