diff options
author | Philip Langdale <philipl@overt.org> | 2016-11-25 11:11:45 -0800 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-11-30 12:36:23 +0100 |
commit | 27038693bb4a0ade33be70f06970631a159578d4 (patch) | |
tree | 622ff526109a8134aab4bfdf6a52974cf768bd16 /libavcodec/qsvenc_h264.c | |
parent | 8cbdaa4b01ef2fc723c30c175cb4c2ec84b235bf (diff) | |
download | ffmpeg-27038693bb4a0ade33be70f06970631a159578d4.tar.gz |
avcodec/nvenc: Delay identification of underlying format of cuda frames
When input surfaces are cuda frames, we will not know what the actual
underlying format (nv12, p010, etc) is at surface allocation time.
On the other hand, we will know when the input frames are actually
registered and associated with a surface.
So, let's delay format discovery until registration time, which is
actually how we handle other frame properties, such as dimensions.
By itself, this change doesn't allow for transcoding of 10bit
content from cuvid, but it reduces the problem to the hardcoding of
the sw format in ffmpeg_cuvid.c
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/qsvenc_h264.c')
0 files changed, 0 insertions, 0 deletions