libutvideo wrapper compilation fails if utvideo is version 12.0.0
|Reported by:||qyot27||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
The reason is because the RGB names have changed in 12.0.0, leaving the UTVF_RGB24/32_WIN names in the wrapper referring to labels that don't exist in the library.
I was able to fix it by changing the reference to UTVF_RGB24_WIN to UTVF_NFCC_BGR24_BU, and the reference to UTVF_RGB32_WIN to UTVF_NFCC_BGRX_BU and UTVF_NFCC_BGRA_BU in both the decoding and encoding wrappers. Not sure if both BGRX and BGRA should be defined for RGB32, though.