Skip to content

Implement JPEG decoding via nvjpeg #2742

@fmassa

Description

@fmassa

🚀 Feature

We currently provide CPU image decoding functions for PNG and JPEG. It could be interesting to consider using nvjpeg to perform decoding directly on the GPU, as it could benefit certain workloads.

Motivation

With CUDA 10.0, nvjpeg is part of the CUDA toolkit, which means that it would be easily accessible for us to use it.

The API for the decoding function is not yet clear to me, and would require some digging
Ideally, passing a CUDA tensor for decode_jpeg should do the decoding on the GPU, although I'm not sure if that's how nvjpeg works internally.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions