Opened 2 years ago

Closed 2 years ago

#5788 closed defect (needs_more_info)

Compile fails with undeclared type 'SwsContext'

Reported by: ianbytchek 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 Changed 2 years ago by cehoyos

How can we reproduce the issue?

comment:2 Changed 2 years ago by jamrial

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 Changed 2 years ago by cehoyos

  • Resolution set to needs_more_info
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.