OK, I think this time I figure it out.
You are right, 4K video is played at 4K, no scaling involved.
Here is some debug logs when I played a 4K video on Sony TV.
Kodi use AndroidMediaCodec to render video, Kodi pass original video information to AndroidMediaCodec, AndroidMediaCodec decides whether scaling is needed.
Since it's a 4K TV, so no scaling happened.
GUI resolution is not relevant here, I misunderstood this.
And I compared sample video on Kodi@
shield, Kodi@TV, DefaultVideoPlayer@TV, all the little pink texts are readable, this won't happen with down scaling.
Hope I understand correctly this time, and thank you for reminding.
Code:
19:38:46.584 T:18446744072763468144 NOTICE: Opening stream: 0 source: 256
19:38:46.584 T:18446744072763468144 NOTICE: Creating video codec with codec id: 173
19:38:46.584 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open hints: fpsrate 24000 / fpsscale 1001
19:38:46.584 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open hints: CodecID 173
19:38:46.584 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open hints: StreamType 2
19:38:46.584 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open hints: Level 153
19:38:46.584 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open hints: Profile 2
19:38:46.584 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open hints: PTS_invalid 0
19:38:46.584 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open hints: Tag 0
19:38:46.584 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::[b]Open hints: 3840x1600[/b]
19:38:46.584 T:18446744072763468144 INFO: CBitstreamConverter::Open bitstream to annexb init
.... skipped some lines ....
19:38:46.700 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec:: [b]width(3840), height(1600)[/b], stride(0), slice-height(0), color-format(0)
19:38:46.701 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec:: crop-left(0), crop-top(0), crop-right(3839), crop-bottom(1599)
19:38:46.701 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec:: Multi-Surface Rendering
19:38:46.701 T:18446744072763468144 INFO: CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec OMX.MTK.VIDEO.DECODER.HEVC
19:38:46.701 T:18446744072763468144 DEBUG: CDVDVideoCodecAndroidMediaCodec::UpdateFpsDuration fpsRate:24000 fpsscale:1001, fpsDur:41708
19:38:46.701 T:18446744072763468144 DEBUG: CVideoPlayerVideo::OpenStream - open stream with codec id: 173
19:38:46.701 T:18446744072763468144 NOTICE: Creating video thread