Skip to content

Commit 44c48bb

Browse files
committed
AMLCodec: use single core AV1 decoder on S5 when below 1080p
fb decoder can not proper handle such low resolution
1 parent ee74790 commit 44c48bb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -2138,6 +2138,16 @@ bool CAMLCodec::OpenDecoder(CDVDStreamInfo &hints, enum ELType dovi_el_type)
21382138
if (m_hints.ptsinvalid)
21392139
am_private->gcodec.param = (void*)(EXTERNAL_PTS | SYNC_OUTSIDE);
21402140
break;
2141+
case VFORMAT_AV1:
2142+
// disable fb decoder if lower than 1080p
2143+
if (aml_get_cpufamily_id() >= AML_S5)
2144+
{
2145+
if (hints.width < 1920 || hints.height < 1080)
2146+
CSysfsPath("/sys/module/amvdec_av1_fb/parameters/front_back_mode", 0);
2147+
else
2148+
CSysfsPath("/sys/module/amvdec_av1_fb/parameters/front_back_mode", 1);
2149+
}
2150+
break;
21412151
}
21422152
am_private->gcodec.param = (void *)((std::uintptr_t)am_private->gcodec.param | (am_private->video_rotation_degree << 16));
21432153

0 commit comments

Comments
 (0)