Opened 8 years ago

Closed 8 years ago

#5788 closed defect (needs_more_info)

Compile fails with undeclared type 'SwsContext'

Reported by: Ian Bytchek Owned by:
Priority: normal Component: swscale
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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 Carl Eugen Hoyos, 8 years ago

How can we reproduce the issue?

comment:2 by James, 8 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 Carl Eugen Hoyos, 8 years ago

Resolution: needs_more_info
Status: newclosed

Please reopen this ticket if you can explain how to reproduce.

Note: See TracTickets for help on using tickets.