r = 0x100;
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TL1)) {
- if (type & VIDTYPE_VIU_444)
+ if ((type & VIDTYPE_VIU_444) ||
+ (type & VIDTYPE_RGB_444))
r |= 0;
else if (type & VIDTYPE_VIU_422)
r |= (1 << 12);
r |= VFORMATTER_RPTLINE0_EN |
(0xc << VFORMATTER_INIPHASE_BIT);
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TL1)) {
- if (type & VIDTYPE_VIU_444) {
+ if ((type & VIDTYPE_VIU_444) ||
+ (type & VIDTYPE_RGB_444)) {
r &= ~HFORMATTER_EN;
r &= ~VFORMATTER_EN;
r &= ~HFORMATTER_YC_RATIO_2_1;
if ((vf->bitdepth & BITDEPTH_Y10) &&
!frame_par->nocomp) {
- if (vf->type & VIDTYPE_VIU_444) {
+ if ((vf->type & VIDTYPE_VIU_444) ||
+ (vf->type & VIDTYPE_RGB_444)) {
bit_mode = 2;
} else {
if (vf->bitdepth & FULL_PACK_422_MODE)
}
/* chroma formatter */
- if (type & VIDTYPE_VIU_444) {
+ if ((type & VIDTYPE_VIU_444) ||
+ (type & VIDTYPE_RGB_444)) {
r = HFORMATTER_YC_RATIO_1_1;
if (frame_par->hscale_skip_count)
r |= HFORMATTER_EN;
r = 0x100;
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TL1)) {
- if (type & VIDTYPE_VIU_444)
+ if ((type & VIDTYPE_VIU_444) ||
+ (type & VIDTYPE_RGB_444))
r |= 0;
else if (type & VIDTYPE_VIU_422)
r |= (1 << 12);
VFORMATTER_RPTLINE0_EN |
(0 << VFORMATTER_INIPHASE_BIT);
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TL1)) {
- if (type & VIDTYPE_VIU_444) {
+ if ((type & VIDTYPE_VIU_444) ||
+ (type & VIDTYPE_RGB_444)) {
r &= ~HFORMATTER_EN;
r &= ~VFORMATTER_EN;
r &= ~HFORMATTER_YC_RATIO_2_1;
if ((vf->bitdepth & BITDEPTH_Y10) &&
!frame_par->nocomp) {
- if (vf->type & VIDTYPE_VIU_444) {
+ if ((vf->type & VIDTYPE_VIU_444) ||
+ (vf->type & VIDTYPE_RGB_444)) {
bit_mode = 2;
} else {
if (vf->bitdepth & FULL_PACK_422_MODE)
vd_off, 0, 2, 4);
/* chroma formatter */
- if (type & VIDTYPE_VIU_444) {
+ if ((type & VIDTYPE_VIU_444) ||
+ (type & VIDTYPE_RGB_444)) {
r = HFORMATTER_YC_RATIO_1_1;
if (frame_par->hscale_skip_count)
r |= HFORMATTER_EN;
setting->vc_skip = 2;
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TL1)) {
- if (layer->dispbuf->type
- & VIDTYPE_VIU_444) {
+ if ((layer->dispbuf->type
+ & VIDTYPE_VIU_444) ||
+ (layer->dispbuf->type
+ & VIDTYPE_RGB_444)) {
setting->hc_skip = 1;
setting->vc_skip = 1;
} else if (layer->dispbuf->type
setting->vc_skip = 2;
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TL1)) {
- if (layer->dispbuf->type
- & VIDTYPE_VIU_444) {
+ if ((layer->dispbuf->type
+ & VIDTYPE_VIU_444) ||
+ (layer->dispbuf->type
+ & VIDTYPE_RGB_444)) {
setting->hc_skip = 1;
setting->vc_skip = 1;
} else if (layer->dispbuf->type
|| (height_screen <= 0))
return SPEED_CHECK_DONE;
- if ((next_frame_par->vscale_skip_count > 0)
- && (vf->type & VIDTYPE_VIU_444))
+ if ((next_frame_par->vscale_skip_count > 0) &&
+ ((vf->type & VIDTYPE_VIU_444) ||
+ (vf->type & VIDTYPE_RGB_444)))
bpp = 2;
if (height_in * bpp > height_out) {
/*
/* di process first, need more a bit of ratio */
if (vf->type & VIDTYPE_PRE_INTERLACE)
cur_ratio = (cur_ratio * 105) / 100;
- if ((next_frame_par->vscale_skip_count > 0)
- && (vf->type & VIDTYPE_VIU_444))
+ if ((next_frame_par->vscale_skip_count > 0) &&
+ ((vf->type & VIDTYPE_VIU_444) ||
+ (vf->type & VIDTYPE_RGB_444)))
cur_ratio = cur_ratio * 2;
/* store the debug info for legacy */