Hacker News new | ask | show | jobs
by philistine 27 days ago
On a microcontroller doing nothing else sure. But on a phone, a tablet, a laptop, you absolutely want hardware decode to preserve your battery life.
3 comments

That's their point though. Basically no modern phone/laptop/tablet other than Apple offloads audio decoding (of any codec) to hardware. You can check this on Android phones by installing the Codec Info app.
Snapdragon chips do (used in many/most androids), Samsung own exynos also does iirc.

If the OS/platform doesn't use it that could be another thing, but those chips do offer audio coded decoding, including aac

Yeah no. All chips in computers, tablets, etc. have hardware decode. Intel chips have hardware decode. AMD, Arm, Raspberry Pi, what have you.
I’m pretty sure no x86 chip has hardware decode/encode for audio. Together with dGPUs, they tend to have decoders for JPEG and decoders/encoders for H.264, H.265, AV1 and sometimes VP9.
They have hardware decoders for JPEG? I have never heard of this and it seems overkill considering how simple it is to decode.
There’s also https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video#Hardwar...

Seems like Nvidia doesn’t support JPEG in NVDEC.

Audio decode is extremely cheap. It's true that a hardware implementation will be more efficient, but really not a whole lot more.
on a 30MHz microcontroller