Opened 12 years ago
Closed 12 years ago
#2135 closed enhancement (fixed)
libutvideo wrapper compilation fails if utvideo is version 12.0.0
Reported by: | qyot27 | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | avcodec |
Version: | git-master | Keywords: | libutvideo |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
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.
Change History (3)
comment:1 by , 12 years ago
Keywords: | libutvideo added; utvideo removed |
---|---|
Priority: | normal → wish |
Status: | new → open |
Type: | defect → enhancement |
comment:2 by , 12 years ago
There doesn't seem to be any kind of MKTAG/FourCC for the BGRX case (and ULRA explicitly says it's for BGRA), so I'll leave it out.
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
This appears to be fixed, if not please reopen bug with clarification what is still missing.
If you have a patch, please send it to ffmpeg-devel.
If UTVF_NFCC_BGRA_BU is RGB32 or BGRA, BGRX should be 0RGB32 or BGR0 (this assumes that UTVF_NFCC_BGRA_BU is a format with transparency, and BGRX without).