Opened 7 years ago
Closed 7 years ago
#5788 closed defect (needs_more_info)
Compile fails with undeclared type 'SwsContext'
|Reported by:||Ian Bytchek||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
I'm attempting to use
SwsContext in a Swift project, compilation fails saying that 'SwsContext' is undeclared. Apparently
SwsContext is declared, but in
swscale_internal.h, which is not installed with
make install. Public definitions should be moved into
swscale.h or into a header that would also be installed.
I configure and build libs using the below:
./configure \ --prefix="…" \ --disable-doc \ --disable-programs \ --disable-iconv \ --disable-securetransport \ --disable-audiotoolbox \ --disable-swresample \ --disable-avdevice \ --target-os=darwin \ --arch=i386 \ --arch=x86_64 \ --cc=clang \ --disable-everything \ --enable-protocol=file \ --enable-protocol=cache \ --enable-encoder=gif \ --enable-decoder=gif \ --enable-muxer=gif \ --enable-demuxer=gif make make install
Change History (3)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
SwsContext is an opaque struct, and its fields are not to be accessed directly. That's why it's defined in an internal header.
comment:3 by , 7 years ago
|Status:||new → closed|
Please reopen this ticket if you can explain how to reproduce.
Note: See TracTickets for help on using tickets.
How can we reproduce the issue?