If I build my own Kodi 18 can you or @
fritsch perhaps help what code I need to change in Kodi to support 10-bit H264 playback with Mediacodec if even possible?
What would be needed for MediaCodec(AMC) to work like videotoolbox that support 10-bit h264?
Just removing the check posted previously results in Hi10 videos playing with Mediacodec(AMC) instead of ffmpeg but the videos' color has banding and it looks like they play in 8-bit color but it's definitely hardware accelerated as it uses very little CPU compared to ffmpeg with 90%+ CPU usage.
MXPlayer plays 10-bit h264 <= L5.0 now after Rockchip devices were whitelisted.
"It's because the decoder in the system doesn't expose its capability of decoding Hi10 profile.
Anyway, We will also whitelist RK3399 on the next update."
So somewhere Android is not exposing it's Hi10 capability correctly.
If anyone knows where to look for this and what to change, it would be interesting, maybe Kodi will then be able to pick it up after removing the Hi10 check?
Here is a Nougat SDK -
https://github.com/rock64-android
LibreELEC on my Rockchip RK3328 also plays 10-bit H264 <= L5.0 perfectly.
Android and LibreELEC both use the same MPP(Media Process Platform code)
http://opensource.rock-chips.com/wiki_Mpp
So I was a bit surprised 10-bit H264 played correctly in LibreELEC.
Rockchip RK3229, RK3328, RK3399 all support 10-bit h264.
Anyone perhaps also know how you can make Hi10 videos play with an external player?
I can setup an external player to play all h264 with it, but I don't know how to set it up only for 10-bit h264 and for normal 8-bit h264 to still play with MediaCodec through Kodi.