configure: Use enable_weak when enabling pic

This allows it to be overridden, either by the user on the command
line, or by other sections of the configure script.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure: Explicitly disable PIC when targeting win32/mingw

These platforms do not have any notion of PIC. On some compilers,
enabling pic produces a number of warnings.

This avoids trying to produce PIC loads in the ARM assembly - there
are no relocation types in PE/COFF that correspond to
BFD_RELOC_32_PCREL (R_ARM_REL32 in ELF).

As a side-effect, this avoids enabling PIC on mingw64, getting rid
of the warnings about PIC not having any effect on that platform.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure: Rename cmov processor capability to i686

The goal is to make the capapility slightly more general and have it
cover the availability of the nopl instruction in addition to cmov.
configure: x86: Only enable cpunop on i686

The assembler may insert nopl instructions for cpunop, which are not
(universally) supported on i586 CPUs.
x86: dsputil: Refactor pixels16 wrapper functions with a macro
x86: dsputil: Split inline assembly from init code

Also remove some pointless comments.
x86: dsputil: Rename dsputil_mmx.h --> dsputil_x86.h

The header is not (anymore) MMX-specific.
dpxenc: do not set coded_frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
dpxenc: simplifiy code using AVPixFmtDescriptor

Update rgb24 fate test as it no longer writes image in big endian
format.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
fate: increase coverage for dpx encoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pngenc: Add 'dpi', 'dpm' options

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'b1803c79dcd6d0a345fa1cbe18dd8e2149717121'

* commit 'b1803c79dcd6d0a345fa1cbe18dd8e2149717121':
  configure: Use enable_weak when enabling pic

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'e08c946c6860a78b0c479551d5f6735361160cbd'

* commit 'e08c946c6860a78b0c479551d5f6735361160cbd':
  configure: Explicitly disable PIC when targeting win32/mingw

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'f54b55058a429c4eea5bae7e5bcb49bd29b34199'

* commit 'f54b55058a429c4eea5bae7e5bcb49bd29b34199':
  configure: Rename cmov processor capability to i686

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: x86: Only enable cpunop on i686

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tests/lavf-regression: fix gbrp10 dpx test on big endian

For some reason only for that pix format decoder picks native format.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Do not read strd chunk in avi files as H264 extradata.

Fixes ticket #2561.
fate: add colorchannelmixer test

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Do not read strd chunk in avi files as H264 extradata.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
lavu: define FF_MEMORY_POISON and use it

Allow single-place definition of constant used to fill poisoned memory.