您好,以下描述的是JPEG编解码耗时统计,请问从数据上是否合理?是否存在可优化空间?
JPEG编解码耗时统计:
- JPEG编码接口调用关系:NvBufSurfaceFromFd → Raw2NvBufSurface → encodeFromFd
JPEG编码耗时统计:
* ORIN/200万像素Camera: 4465.84us
* ORIN/800万像素Camera: 11747.72us
- JPEG解码接口调用关系:decodeToFd → NvBufSurfaceFromFd → NvBufSurface2Raw → gpuConvertI420toBGR
JPEG解码耗时统计:
* ORIN/200万像素Camera: 8962.67us
* ORIN/800万像素Camera: 28447.52us
DaneLLL
4
Hi,
For encoding, the flow looks optimal.
For decoding, you may try like:
decodeToFd → NvBufSurfaceFromFd → NvBufSurfTransform → RGBA → convert RGBA to BGR through CUDA code
This may have further performance enhancement but you would need to implement converting RGBA to BGR through CUDA.
请问:从 … NvBufSurfTransform→ RGBA → convert RGBA to BGR through CUDA code,有使用示例吗?
Hi,
There is no existing CUDA code for converting RGBA to BGR, and you would need to implement it on your own.