[FFmpeg-devel] [PATCH] Added the possibility to pass an externally created CUDA context to libavutil/hwcontext.c/av_hwdevice_ctx_create() for decoding with NVDEC
timo at rothenpieler.org
Mon May 7 19:43:13 EEST 2018
Am 07.05.2018 um 18:25 schrieb Oscar Amoros Huguet:
> Have a look at this, looks pretty interesting:
> * @brief This function decodes a frame and returns the locked frame buffers
> * This makes the buffers available for use by the application without the buffers
> * getting overwritten, even if subsequent decode calls are made. The frame buffers
> * remain locked, until ::UnlockFrame() is called
> bool DecodeLockFrame(const uint8_t *pData, int nSize, uint8_t ***pppFrame, int *pnFrameReturned, uint32_t flags = 0, int64_t **ppTimestamp = NULL, int64_t timestamp = 0, CUstream stream = 0);
I'm not sure what API docs you are referring to here.
Google has never seen them either.
But CUVIDPROCPARAMS, which is passed to cuvidMapVideoFrame, does indeed have
CUstream output_stream;/**< IN: stream object used by cuvidMapVideoFrame */
So setting the stream there would be easily possible.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3994 bytes
Desc: S/MIME Cryptographic Signature
More information about the ffmpeg-devel