Ruslan-B / FFmpeg.AutoGen

FFmpeg auto generated unsafe bindings for C#/.NET and Core (Linux, MacOS and Mono).
GNU Lesser General Public License v3.0
1.37k stars 323 forks source link

channel_layout.h missing new (non-deprecated) #258

Open SuRGeoNix opened 1 year ago

SuRGeoNix commented 1 year ago

I wanted to access av_channel_layout_from_string and the defines, eg:-

#define AV_CHANNEL_LAYOUT_STEREO            AV_CHANNEL_LAYOUT_MASK(2,  AV_CH_LAYOUT_STEREO)
Ruslan-B commented 1 year ago

Well known issue - I didn't implement clang macro parser to support function like macro, there is a quick fix - just to hard code this as well know function. However, it seems to be a perfect timing to add support of function like macro. I'll update on timeline for this. Meanwhile I'll add temporally hardcoded versions of AV_CHANNEL_LAYOUT_MASK and AV_PIX_FMT_NE.