The "CPU" (that is, the generic compute part) cannot encode 4K video in real time, that part is handle by codec-specific HW.
And we're not talking about video anyway, this is about ProRAW, a still image format.
Given apple design their own camera controllers and have their own chip design teams, I wouldn't be nearly so quick to conclude that.