summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* vorbisdec: remove some pointless commentsMans Rullgard2012-08-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* pthread: add const to AVCodec pointersMans Rullgard2012-08-18
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegvideo_enc: don't use deprecated avcodec_encode_video().Anton Khirnov2012-08-18
|
* lavc: add avcodec_descriptor_get_by_name().Anton Khirnov2012-08-18
|
* lavc: add const to AVCodec* function parameters.Anton Khirnov2012-08-18
|
* h264: vdpau: fix crash with unsupported colorspaceUoti Urpala2012-08-17
| | | | | | | | The h264_vdpau decoder crashed if output colorspace was not 8-bit 420. Add a check to error out instead (current hardware does not support other colorspaces, so successful decoding is not possible). Signed-off-by: Martin Storsjö <martin@martin.st>
* amrwbdec: Decode the fr_quality bit properlyMartin Storsjö2012-08-17
| | | | | | | | The way this bit is decoded was accidentally flipped in b70feb405, leading to warnings "Encountered a bad or corrupted frame" for each decoded frame. Signed-off-by: Martin Storsjö <martin@martin.st>
* libvpxenc: use the default bitrate if not setLuca Barbato2012-08-17
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* utvideo: Rename utvideo.c to utvideodec.cJan Ekström2012-08-17
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mjpegdec: more meaningful return valuesLuca Barbato2012-08-17
|
* Add missing includes for code relying on external librariesMartin Storsjö2012-08-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Fix even more missing includes after the common.h removalMartin Storsjö2012-08-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* build: Factor out rangecoder dependencies to CONFIG_RANGECODERDiego Biurrun2012-08-16
| | | | | A new hidden config variable is added for the codecs that depend on the rangecoder parts.
* build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCEDiego Biurrun2012-08-16
| | | | | A new hidden config variable is added for the codecs that depend on the error resilience parts.
* x86: avcodec: Consistently name all init filesDiego Biurrun2012-08-16
|
* Add more missing includes after removing the implicit common.hMartin Storsjö2012-08-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Add some more missing includes after removing the implicit common.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* api-example: use new video encoding API.Anton Khirnov2012-08-15
|
* x86: avcodec: Appropriately name files containing only init functionsDiego Biurrun2012-08-15
|
* mpegvideo_mmx_template: drop some commented-out cruftDiego Biurrun2012-08-15
|
* w32pthreads: Add missing #includes to make header compile standaloneDiego Biurrun2012-08-14
|
* prores: interlaced ProRes encodingMaksalov Boris2012-08-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* g723.1: simplify scale_vector()Mans Rullgard2012-08-14
| | | | | | | It is impossible for bits to be 15 here so the special case is not needed. Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: simplify normalize_bits()Mans Rullgard2012-08-14
| | | | | | | | | This function is always called with a non-negative argument, so those special cases are not needed. In the places the argument might be zero, the return value for a zero argument does not matter since it would then be used to scale an array full of zeros. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vda: cosmetics: fix Doxygen comment formattingSebastien Zwickert2012-08-14
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vda: better frame allocationSebastien Zwickert2012-08-14
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vda: Merge implementation into one fileSebastien Zwickert2012-08-14
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vda: support synchronous decodingSebastien Zwickert2012-08-14
| | | | | | | Note that the symbols used to run the hardware decoder in asynchronous mode have been marked deprecated and will be dropped at a future version bump. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vda: Reuse the bitstream buffer and reallocate it only if neededSebastien Zwickert2012-08-14
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* build: Factor out mpegvideo encoding dependencies to CONFIG_MPEGVIDEOENCDiego Biurrun2012-08-14
| | | | | A new hidden config variable is added for the codecs that depend on the mpegvideo encoding parts.
* proresenc: use the edge emulation bufferBoris Maksalov2012-08-13
| | | | | | Prevents reading past the end of frame buffer. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Use log2(x) instead of log(x) / log(2)Mans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: cabac: allow building with sunccMans Rullgard2012-08-13
| | | | | | | | | | | | | | | | | | | | This fixes two issues preventing suncc from building this code. The undocumented 'a' operand modifier, causing gcc to omit a $ in front of immediate operands (as required in addresses), is not supported by suncc. Luckily, the also undocumented 'c' modifer has the same effect and is supported. On some asm statements with a large number of operands, suncc for no obvious reason fails to correctly substitute some of the operands. Fortunately, some of the operands in these statements are plain numbers which can be inserted directly into the code block instead of passed as operands. With these changes, the code builds correctly with both gcc and suncc. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: mlpdsp: avoid taking address of voidMans Rullgard2012-08-13
| | | | | | | | | | | | | | This code contains a C array of addresses of labels defined in inline asm. To do this, the names must be declared as external in C. The declared type does not matter since only the address is used, and for some reason, the author of the code used the 'void' type despite taking the address of a void expression being invalid. Changing the type to char, a reasonable choice since the alignment of the code labels cannot be known or guaranteed, eliminates gcc warnings and allows building with suncc. Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: do not pass large structs by valueMans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: do not bounce intermediate values via memoryMans Rullgard2012-08-13
| | | | | | | | | Although a reasonable compiler will probably optimise out the actual store and load, this operation still implies a truncation to 16 bits which the compiler will probably not realise is not necessary here. Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: declare a variable in the block it is usedMans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: avoid saving/restoring excitationMans Rullgard2012-08-13
| | | | | | | | Writing the scaled excitation to a scratch buffer (borrowing the 'audio' array) instead of modifying it in place avoids the need to save and restore the unscaled values. Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: avoid unnecessary memcpy() in residual_interp()Mans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: make postfilter write directly to output bufferMans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: drop unnecessary variable buf_ptr in formant_postfilter()Mans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: make scale_vector() output to a separate bufferMans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: make autocorr_max() work on an arbitrary bufferMans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: do not needlessly use int64_tMans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: use saturating addition functionsMans Rullgard2012-08-13
| | | | | | | | Use saturating addition functions instead of 64-bit intermediates and separate clipping. This is much faster when dedicated instructions are available. Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: optimise scale_vector()Mans Rullgard2012-08-13
| | | | | | | | | | | | | | Firstly, nothing in this function can overflow 32 bits so the use of a 64-bit type is completely unnecessary. Secondly, the scale is either a power of two or 0x7fff. Doing separate loops for these cases avoids using multiplications. Finally, since only the number of bits, not the actual value, of the maximum value is needed, the bitwise or of all the values serves the purpose while being faster. It is worth noting that even if overflow could happen, it was not handled correctly anyway. Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: remove useless uses of MUL64()Mans Rullgard2012-08-13
| | | | | | | | The operands in both cases are 16-bit so cannot overflow a 32-bit destination. In gain_scale() the inputs are reduced to 14-bit, so even the shift cannot overflow. Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: remove unnecessary argument 'shift' from dot_product()Mans Rullgard2012-08-13
| | | | | | | The 'shift' argument is always 1 so there is no need to pass it explicitly in every call. Signed-off-by: Mans Rullgard <mans@mansr.com>
* g723.1: deobfuscate "(x << 4) - x" to "15 * x"Mans Rullgard2012-08-13
| | | | | | The compiler performs this optimisation. Signed-off-by: Mans Rullgard <mans@mansr.com>