4 ms·
"GPU-accelerated" is a poor name because it actually uses a hardware video decoder (a small CPU+DSP) that just happens to be on the GPU. In fact, video encoding
by astrange 4y ago
"GPU-accelerated" is a poor name because it actually uses a hardware video decoder (a small CPU+DSP) that just happens to be on the GPU. In fact, video encoding/decoding is very poorly suited to GPUs, and CPUs aren't that bad at it although they aren't very power-efficient.
- nudgeee 4y agoIndeed, video decode would be offloaded to dedicated silicon blocks on the GPU for video decode (e.g. AMD UVD/VCN or Nvidia NVDEC, etc) rather than running entirely on compute blocks. Implementation-wise though, I don’t think hardware decoders would use general purpose CPU cores under the hood (someone correct me if I’m wrong — been a long time since I’ve worked on this stuff), but would use dedicated fixed-function blocks. On hardware without a full fixed-function decode, I would think it would fall back to compute blocks with fixed-function blocks for acceleration. Some other implementations might make use of customized CPU cores like from Tensilica. General purpose CPU cores might instead be used for things like managing HDCP, etc.
- jalino23 4y agoI thought hardware decoders are better than software thats why iphone is more efficient with h264 than vp8?
- forgotpwd16 4y agoThey're more efficient but not as flexible so not absolutely better. Still using dedicated hardware for video decoding isn't GPU accelerated.
- bscphil 4y agoJust to spell out what this means to those who are unfamiliar: since software decoding involves general purpose software, decoders are available that can handle mostly any valid h264 video file. On the other hand, hardware decoders are purpose built and frequently handle only a subset of valid files. For instance, a decoder might (1) only handle encoding profiles < 5, as used by Blu-ray, (2) only support the most common bit depth of 8, (3) only support 4:2:0 chroma subsampled video and not 4:4:4. And so on.
- astrange 4y agoH264 decoders have to be bit-exact so there's no difference in what they do, but they use a lot less battery to do it, and they free the main CPU to do other things.