Re: [FFmpeg-devel] [PATCH 1/3] nvenc: use runtime api version to support old drivers

2020-07-16 Thread Timo Rothenpieler
On 16.07.2020 04:16, Wang Bin wrote: What happens if a struct gets updated, and ffmpeg wants to use the new fields when available, like happened plenty of times? Upgrade nvEncodeAPI.h like we've already done. Part of reserved bits will become a struct member and have a name. These bits will b

Re: [FFmpeg-devel] [PATCH 1/3] nvenc: use runtime api version to support old drivers

2020-07-15 Thread Wang Bin
Timo Rothenpieler 于2020年7月15日周三 下午11:16写道: > On 15.07.2020 16:34, wangbin wrote: > > From: wang-bin > > > > There are reserved bit fields in nvEncoderAPI.h structs, so driver's abi > > is stable. Requesting runtime version of these structs should work. I've > > compared 7.0~9.x headers, and conf

Re: [FFmpeg-devel] [PATCH 1/3] nvenc: use runtime api version to support old drivers

2020-07-15 Thread Timo Rothenpieler
On 15.07.2020 16:34, wangbin wrote: From: wang-bin There are reserved bit fields in nvEncoderAPI.h structs, so driver's abi is stable. Requesting runtime version of these structs should work. I've compared 7.0~9.x headers, and confirmed on some devices. --- libavcodec/nvenc.c | 72 +++

[FFmpeg-devel] [PATCH 1/3] nvenc: use runtime api version to support old drivers

2020-07-15 Thread wangbin
From: wang-bin There are reserved bit fields in nvEncoderAPI.h structs, so driver's abi is stable. Requesting runtime version of these structs should work. I've compared 7.0~9.x headers, and confirmed on some devices. --- libavcodec/nvenc.c | 72 ++ li