summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* hevcdsp: add x86 SIMD for MCAnton Khirnov2015-12-05
|
* hevc: change the stride of the MC buffer to be in bytes instead of elementsAnton Khirnov2015-12-05
| | | | | | Currently, the frame stride is passed in bytes, while the MC buffer size is in int16_t elements, This can be confusing, so pass both strides in bytes.
* hevcdsp: split the pred functions by widthAnton Khirnov2015-12-05
| | | | This should allow for more efficient SIMD.
* hevcdsp: split the epel functions by widthAnton Khirnov2015-12-05
| | | | This should allow for more efficient SIMD.
* hevcdsp: split the qpel functions by width instead of by the subpixel fractionAnton Khirnov2015-12-05
| | | | | | | This should allow for more efficient SIMD. Keep the C versions as they are now, to allow the compiler to inline the interpolation coefficients.
* log: Use a do {} while (0) for dlogLuca Barbato2015-12-05
| | | | Avoid the warning `-Wempty-body`.
* imgconvert: Re-enable the deprecation warningsLuca Barbato2015-12-05
| | | | | | The end-marked was typoed in f7edcac040f73635fc1127489c9bb29ca8b43532
* avpicture: Suppress warning from deprecated codeLuca Barbato2015-12-05
|
* aac: Provide more information on the failure messageLuca Barbato2015-12-05
| | | | Bug-Id: 761
* g723: Add missing headerLuca Barbato2015-12-05
| | | | Unbreak make check.
* lavc: G.723.1 encoderMohamed Naufal2015-11-30
| | | | | | Additional improvements by Michael Niedermayer <michaelni@gmx.at>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* g723_1: Move sharable functions to a separate fileVittorio Giovara2015-11-30
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* g723_1: Rename files to better reflect their purposeVittorio Giovara2015-11-30
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* g723_1: Handle values at the ends of the table in lsp2lpc()Michael Niedermayer2015-11-30
| | | | | | | | Fixes out of array reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pgssubdec: fix API compability layerPetri Hintukainen2015-11-26
| | | | | | | Copy pointers to AVPicture after memory has been allocated. Fixes NULL pointers in AVPicture after a17a7661906ba295d67afd80ac0770422e1b02b3. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* texturedsp: Explicitly cast RGBA parameters to unsignedVittorio Giovara2015-11-24
| | | | | Silences warnings when using -Wshift-overflow (GCC 6+). Found-by: James Almer <jamrial@gmail.com>
* texturedspenc: Avoid using separate variablesVittorio Giovara2015-11-24
| | | | Use the result directly, removing an unneeded cast.
* textureencdsp: cosmetics: Use normal static const for tablesVittorio Giovara2015-11-24
|
* sgi: Correctly propagate meaningful error valuesVittorio Giovara2015-11-24
|
* sgienc: Support encoding high bit depth images with RLEVittorio Giovara2015-11-24
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* sgienc: Use a local RLE encoding functionVittorio Giovara2015-11-24
| | | | | | SGI RLE encoding is slighlty different than the one provided by rle module (especially at high bit depth). The pixel count function however does not change, so it is simply made library-public.
* sgienc: Port to bytestream2Vittorio Giovara2015-11-24
|
* sgienc: Do not end RLE lines with 0sVittorio Giovara2015-11-24
| | | | | | | | This is never mentioned in the specifications, and decoders work just as fine without it. Update the fate references since the compressed file is smaller. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libvpxenc: remove some unused ctrl id mappingsJames Zern2015-11-23
| | | | | | | | | VP8E_UPD_ENTROPY, VP8E_UPD_REFERENCE, VP8E_USE_REFERENCE were removed from libvpx and the remaining values were never used here Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Zern <jzern@google.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dcadec: Do not check for overreads in auxiliary dataTim Walker2015-11-23
| | | | | | | | The auxiliary data length field is not reliable, and incorrect overread errors could be returned for valid, real-world bitstreams. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: Deprecate avctx.rtp_callback fieldVittorio Giovara2015-11-20
| | | | | | | | | | | | | | | | | | | | | This function returns the encoded data of a frame, one slice at a time directly when that slice is encoded, instead of waiting for the full frame to be done. However this field has a debatable usefulness, since it looks like it is just a convoluted way to get data at lowest possible latency, or a somewhat hacky way to store h263 in RFC-2190 rtp encapsulation. Moreover when multi-threading is enabled (which is by default) the order of returned slices is not deterministic at all, making the use of this function not reliable at all (or at the very least, more complicated than it should be). So, for the reasons stated above, and being used by only a single encoder family (mpegvideo), this field is deemed unnecessary, overcomplicated, and not really belonging to libavcodec. Libavformat features a complete implementation of RFC-2190, for any other case. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* qsvenc: expose additional encoding optionsAnton Khirnov2015-11-20
|
* qsvenc: support more RC methodsAnton Khirnov2015-11-20
|
* qsvenc: factor out common optionsAnton Khirnov2015-11-20
|
* qsvenc: fix setting maxrate for VBRAnton Khirnov2015-11-20
|
* qsvenc: print the actual video parameters used by MSDKAnton Khirnov2015-11-20
|
* mpegvideo_enc: enable rtp_mode when multiple slices are usedAnton Khirnov2015-11-20
| | | | | | | | | | Currently, multiple slices with just one thread produce corrupted output. Additionally, enable slice structured mode for h263(+) Bug-Id: 912 CC: libav-stabl@libav.org
* mpevideo_enc: disallow multiple slices for h261 and flvAnton Khirnov2015-11-20
| | | | | | They do not work and produce corrupted output. CC: libav-stable@libav.org
* avcodec: Define side data type for fallback trackJohn Stebbins2015-11-18
| | | | | | | | | This side data type is meant to be added to AVStream side data. A fallback track indicates an alternate track to use when the current track can not be decoded for some reason. e.g. no decoder available for codec. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dvdsubdec: Validate the RLE offsetsLuca Barbato2015-11-17
| | | | CC: libav-stable@libav.org
* flacenc: Clamp user-supplied min/max prediction ordersVittorio Giovara2015-11-16
| | | | | | This mimics what the code does internally for default order values. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* ffv1: Explicitly name the coder typeVittorio Giovara2015-11-16
| | | | | | | | | | | | | | | | FFv1 uses two types of coders, golomb and range with two different tables. This is exposed this in a rather convoluted way, for example mentioning to set coder type 1 while initializing the variable 'ac' to 2, because encoder does not use range coder with default table. Appropriate internal coder type values have been added and used in any check rather than using raw numbers. Initialization of avctx.coder_type in ffv1dec is removed because this field is encoder only. An unneeded validation check in the encoder is dropped too. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* hqx: correct type and size check of info_offsetAndreas Cadhalpun2015-11-16
| | | | | | | | | It is used as size argument of ff_canopus_parse_info_tag, which uses it as size argument to bytestream2_init, which only supports sizes up to INT_MAX. Changing it's type to unsigned simplifies the check. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* dds: disable palette flag for compressed imagesAndreas Cadhalpun2015-11-14
| | | | | | | | Having both is not valid and can cause a NULL pointer dereference of frame->data[1] later. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dds: add missing newline to log messagesAndreas Cadhalpun2015-11-12
| | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* dds: validate compressed source buffer sizeAndreas Cadhalpun2015-11-12
| | | | | | | A too small buffer will cause segfaults somewhere below decompress_texture_thread. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* dds: validate source buffer size before copyingAndreas Cadhalpun2015-11-12
| | | | | | If it is too small av_image_copy_plane segfaults. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lavc: Add missing mem.h header to libxvid and screenpressoVittorio Giovara2015-11-12
|
* avcodec: fix doxy placementAnton Khirnov2015-11-09
|
* libopenh264enc: Set AVOption data typeMichael Niedermayer2015-11-06
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* vdpau: Remove a spurious CONFIG_H263_VDPAU_HWACCELMichael Niedermayer2015-11-06
| | | | | | | | | Fixes libavcodec/vdpau.c:282:5: warning: "CONFIG_H263_VDPAU_HWACCEL" is not defined [-Wundef] Removed in d35d0c723e3c8fc8cde76bf677f67928f5e179a8. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* flashsv: Initialize the block arrayLuca Barbato2015-11-02
| | | | | | | | | Otherwise flashsv2_prime could be fed random data. Bug-Id: 908 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* truemotion2: Fix the buffer checkLuca Barbato2015-11-02
| | | | | | | | | The variable skip contains the expected size in bytes. Bug-Id: 906 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mimic: Always return on failureLuca Barbato2015-11-02
| | | | | | | Bug-Id: 905 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rpza: Check the blocks left before processing oneLuca Barbato2015-11-02
| | | | | | | | Bug-Id: 903 CC: libav-stable@libav.org Reported-By: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org>