summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* avcodec/jpeg2000: Move L band scaling from the 9/7f wavelet to quantization ↵Michael Niedermayer2015-06-22
| | | | | | | | | | stage This reduces the number of operations Its not done for 9/7i as that would overflow thanks to JPEG2000 allowing 32 decomposition levels Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/jpeg2000dwt: use 32x32->64 multiplies in the 9/7i DWTMichael Niedermayer2015-06-22
| | | | | | | This significantly improves the quality when the integer 9/7 transform is used Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/jpeg2000: Move H band scaling from wavelet into quantization codeMichael Niedermayer2015-06-22
| | | | | | | This reduces the number of operations done and is equivalent except for rounding Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/jpeg2000dwt: Move K/X constants to headerMichael Niedermayer2015-06-22
| | | | | | this makes them accessible by the rest of the jpeg2000 code Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/jpeg2000: Move gainb handling into the quantization codeMichael Niedermayer2015-06-22
| | | | | | | | thats how the specification defines it, this also improves numerical accuracy of the integer wavelet implementation. It otherwise should be equivalent, in case of overflows this can be reverted. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '8655c54160767de1a6b96f8bc310d6e4eaceff48'Michael Niedermayer2015-06-21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8655c54160767de1a6b96f8bc310d6e4eaceff48': libvpx: Support the vp9 extended profiles Conflicts: Changelog configure libavcodec/libvpx.c libavcodec/libvpx.h libavcodec/libvpxdec.c libavcodec/libvpxenc.c libavcodec/version.h mostly not merged, as requested by jamrial See: 01e59d48ed1a41b88107ed1d4d56ae0cbcd1a60e See: 079b7f6eacc09bc2813fc1ddc230ab05022b69c2 and others Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libvpx: Support the vp9 extended profilesLuca Barbato2015-06-21
| | | | | | | | | | | | | | | | | | | | Bump the minimum libvpx version to 1.3.0 and rework the configure logic to fail only if no decoders and encoders are found. Based on the original patch from Vittorio. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '05bf3f54e6078716f6267df530bf1d474ca3d606'Michael Niedermayer2015-06-21
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '05bf3f54e6078716f6267df530bf1d474ca3d606': libvpx: Do not set vp8 only parameters when encoding in vp9 Conflicts: libavcodec/libvpxenc.c See: 238ec505e263e7d0363798a05c1c28f494a6300a See: ae330070ee8b985abb011835502b03baacfbb18c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libvpx: Do not set vp8 only parameters when encoding in vp9Luca Barbato2015-06-20
| |
* | Merge commit '6ec688e1bc76dd93151cbca1c340162ae4b10d77'Michael Niedermayer2015-06-21
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '6ec688e1bc76dd93151cbca1c340162ae4b10d77': mp3: enable packed main_data decoding in MP4 Conflicts: libavcodec/mpegaudiodec_template.c Only the parts needed to support the available sample are merged the remaining error checks are left in place Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mp3: enable packed main_data decoding in MP4nu7742015-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14496-3 suggests packing main_data of MP3 that is usually scattered into multiple frames due to bit reservoir. However, after packing main_data into a access unit, bitrate index in the MPEG audio frame header doesn't match with actual frame size. In order to accept this, this patch removes unnecessary frame size checking on mp3 decoder. Also, mov demuxer was changed to use MP3 parser only on special cases (QT MOV with specific sample description) to avoid re-packetizing. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * libwebpenc: use WebPMemoryWriterClear()James Almer2015-06-17
| | | | | | | | | | | | | | | | WebPMemoryWriterClear() must be used instead of free() when libwebp ABI version is > 0x0203. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avcodec/jpeg2000dwt: Fix value of F_LFTG_X and I_LFTG_XMichael Niedermayer2015-06-21
| | | | | | | | | | | | | | | | Even if the jpeg2000 spec uses a wrong value this does not make mathematics work this way, also this has been corrected in the 2004 version AFAIK Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: also test 9/7 float DWTMichael Niedermayer2015-06-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: List differences for DWT testMichael Niedermayer2015-06-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: increase the number of test iterationsMichael Niedermayer2015-06-21
| | | | | | | | | | | | the code had too little coverage Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: Also test 9/7 integer DWTMichael Niedermayer2015-06-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: Allow testing with a maximum allowed differenceMichael Niedermayer2015-06-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/adpcm: THP: don't use the ADPC/SEEK table when not seekingRodger Combs2015-06-21
| | | | | | | | | | | | This is almost certainly closer to how the actual Nintendo players work, and fixes some output pops in files with blank ADPC/SEEK tables (like those from brawlcustommusic).
* | Support demuxing 4gv codec stored in qcp filesPaul B Mahol2015-06-21
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/mjpegdec: dont try to combine fields for decimated multiscope 2 materialMichael Niedermayer2015-06-21
| | | | | | | | | | | | Fixes Ticket4535 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libvpxenc: support setting colorspace for vp9James Zern2015-06-20
| | | | | | | | | | | | | | | | | | the vp9 bitstream supports 8 values: unknown (default), bt601, bt709, smpte170, smpte240, bt2020, reserved and sRGB. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Zern <jzern@google.com>
* | lavc/adpcm: THP: fix indentationRodger Combs2015-06-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mqcenc: Remove unused variableMichael Niedermayer2015-06-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/adpcm: THP: allow channel counts up to 10Rodger Combs2015-06-20
| | | | | | | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/adpcm: THP: handle packets with sample counts not divisible by 14Rodger Combs2015-06-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: add little-endian ADPCM_THP decoderRodger Combs2015-06-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Replace TPsot check by assertMichael Niedermayer2015-06-20
| | | | | | | | | | | | | | The condition is impossible now. the TPsot type is changed to unsigned int to prevent gcc from producing warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Increase tile part limit to 256Michael Niedermayer2015-06-20
| | | | | | | | | | | | | | | | This is the maximum that the syntax of jpeg2000 is capable to store Fixes Ticket4639 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: Fill array using 2d instead of 1d accessesMichael Niedermayer2015-06-20
| | | | | | | | | | | | | | Avoids gcc warning Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: Factor dwt test code out so it can be easily used with ↵Michael Niedermayer2015-06-20
| | | | | | | | | | | | the other dwts too Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: Fix special cases in sd_1d53()Michael Niedermayer2015-06-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: add test for the 5/3 waveletMichael Niedermayer2015-06-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dwt: Fix order of operations in integer decomposition waveletsMichael Niedermayer2015-06-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/j2kenc: Use JP2 format by defaultMichael Niedermayer2015-06-19
| | | | | | | | | | | | | | | | Without the JP2 fields its not possible to identify the colorspace Fixes Ticket538 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/j2kenc: Support writing JP2 encapsulationMichael Niedermayer2015-06-19
| | | | | | | | | | | | The added option matches openjpeg Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dpxenc: implement write16/32 as functionsMichael Niedermayer2015-06-19
| | | | | | | | | | | | Fixes undefined behavior and segfault Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for hpel functionsShivraj Patil2015-06-19
| | | | | | | | | | | | | | | | This patch adds MSA (MIPS-SIMD-Arch) optimizations for hpel functions in new file hpeldsp_msa.c Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/fic: Add skip_cursor AVOptionMichael Niedermayer2015-06-19
| | | | | | | | | | Previous version reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/j2kenc: YUV should not use the ICTMichael Niedermayer2015-06-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/fft-test: fix type of cpuflagsMichael Niedermayer2015-06-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vp9: don't retain NULL as segmentation_mapAndreas Cadhalpun2015-06-19
| | | | | | | | | | | | | | | | This fixes segmentation faults, which were introduced in commit 4ba8f327. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | avcodec/hevc_ps: Only discard overread VPS if a previous is availableMichael Niedermayer2015-06-18
| | | | | | | | | | | | Fixes Ticket4621 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/libx264: Avoid reconfig on equivalent aspect ratiosMichael Niedermayer2015-06-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for qpel functionsShivraj Patil2015-06-18
| | | | | | | | | | | | | | | | This patch adds MSA (MIPS-SIMD-Arch) optimizations for qpel functions in new file qpeldsp_msa.c Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: Continue decoding reslevels even when empty ones are ↵Michael Niedermayer2015-06-18
| | | | | | | | | | | | | | | | encountered Fixes Ticket4635 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ffv1enc: fix bps for >8bit yuv when not explicitly setMichael Niedermayer2015-06-18
| | | | | | | | | | | | Fixes Ticket4636 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'd8d124eebcf2ec1f6a1936b12a4f00a48f08e85c'Michael Niedermayer2015-06-17
|\| | | | | | | | | | | | | * commit 'd8d124eebcf2ec1f6a1936b12a4f00a48f08e85c': aic: Improve error reporting Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * aic: Improve error reportingVittorio Giovara2015-06-17
| |
| * h264: er: Copy from the previous reference only if compatibleAndreas Cadhalpun2015-06-15
| | | | | | | | | | | | | | | | Also use the frame pixel format instead of the one from the codec context, which is more robust. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>