[FFmpeg-devel] [Patch] CUDA Thumbnail Filter

Timo Rothenpieler timo at rothenpieler.org
Fri Sep 1 13:27:07 EEST 2017


Am 30.08.2017 um 06:19 schrieb Yogender Gupta:
> Attached is a CUDA version of the thumbnail filter, this helps accelerate thumbnails generations significantly, when using the GPU pipeline.
> 
> Regards,
> Yogender

After having a look at the code:

The filter is using a global "CUdeviceptr data;" variable(Which isn't 
even static).
This is generally not acceptable. It makes it impossible to use the 
filter more than once in parallel. All state should be in the filter 
context.

Also, the allocated Module and Device-Memory is never freed.
uninit should unload the module, free the memory, and do other 
potentially necessary cleanup.


Otherwise the code seems reasonable to me. Would still like to have 
someone else review it though.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3994 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170901/a20fb838/attachment.bin>


More information about the ffmpeg-devel mailing list