summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* avplay: Allow to override the codecLuca Barbato2016-01-25
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Statically allocate the player stateLuca Barbato2016-01-25
| | | | | | And move the resource deallocation in stream_open failure path. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Rename cur_stream to playerLuca Barbato2016-01-25
| | | | | | The name was misleading. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Rename VideoState to PlayerStateLuca Barbato2016-01-25
| | | | | | The structure is not video-specific. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Allocate the refresh thread next to the decode threadLuca Barbato2016-01-25
| | | | | | It does not belong to the stream setup. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: Move the stream setup in the main threadLuca Barbato2016-01-25
| | | | | | | And refactor the code in preparation of the following patches. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* hls: eliminate ffurl_* usageAnton Khirnov2016-01-24
| | | | | Now all IO should go through the IO callbacks and be interceptable by the caller.
* lavf: allow custom IO for all filesAnton Khirnov2016-01-24
| | | | | | | | | | | | | | Some (de)muxers open additional files beyond the main IO context. Currently, they call avio_open() directly, which prevents the caller from using custom IO for such streams. This commit adds callbacks to AVFormatContext that default to avio_open2()/avio_close(), but can be overridden by the caller. All muxers and demuxers using AVIO are switched to using those callbacks instead of calling avio_open()/avio_close() directly. (de)muxers that use the URLProtocol layer directly instead of AVIO remain unconverted for now. This should be fixed in later commits.
* qsvenc: fix a typoAnton Khirnov2016-01-23
| | | | Introduced in 0e6c8532215790bbe560a9eea4f3cc82bb55cf92.
* x86inc: Add debug symbols indicating sizes of compiled functionsGeza Lore2016-01-23
| | | | | | | | | | | Some debuggers/profilers use this metadata to determine which function a given instruction is in; without it they get can confused by local labels (if you haven't stripped those). On the other hand, some tools are still confused even with this metadata. e.g. this fixes `gdb`, but not `perf`. Currently only implemented for ELF. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Avoid creating unnecessary local labelsHenrik Gramner2016-01-23
| | | | | | | | | | | | The REP_RET workaround is only needed on old AMD cpus, and the labels clutter up the symbol table and confuse debugging/profiling tools, so use EQU to create SHN_ABS symbols instead of creating local labels. Furthermore, skip the workaround completely in functions that definitely won't run on such cpus. Note that EQU is just creating a local label when using nasm instead of yasm. This is probably a bug, but at least it doesn't break anything. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Simplify AUTO_REP_RETHenrik Gramner2016-01-23
| | | | | | | | cpuflags is never undefined any more, it's set to 0 instead. Also fix an incorrect comment. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Use more consistent indentationHenrik Gramner2016-01-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Preserve arguments when allocating stack spaceHenrik Gramner2016-01-23
| | | | | | | | When allocating stack space with a larger alignment than the known stack alignment a temporary register is used for storing the stack pointer. Ensure that this isn't one of the registers used for passing arguments. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Improve FMA instruction handlingHenrik Gramner2016-01-23
| | | | | | | | | | | | | | * Correctly handle FMA instructions with memory operands. * Print a warning if FMA instructions are used without the correct cpuflag. * Simplify the instantiation code. * Clarify documentation. Only the last operand in FMA3 instructions can be a memory operand. When converting FMA4 instructions to FMA3 instructions we can utilize the fact that multiply is a commutative operation and reorder operands if necessary to ensure that a memory operand is used only as the last operand. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Be more verbose in assertion failuresHenrik Gramner2016-01-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Make cpuflag() and notcpuflag() return 0 or 1Henrik Gramner2016-01-23
| | | | | | Makes it possible to use them in arithmetic expressions. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pixdesc: fix and extend doxy for av_pix_fmt_get_chroma_sub_sample()Anton Khirnov2016-01-23
| | | | The parameters in the docs are currently swapped.
* configure: Correctly add openssl cflags and libsLuca Barbato2016-01-23
|
* libavcodec: Add missing AVClass pointersMartin Storsjö2016-01-22
| | | | | | This fixes crashes since 243df1351. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Move pre_me to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move me_penalty_compensation to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc. It is a very codec-specific options, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move prediction_method to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | This options is only used by huffyuv, ffvhuv, jpegls, mjpeg, mpegvideoenc, png, utvideo. It is a very codec-specific options, so deprecate the global variant. Set proper limits to the maximum allowed values, and update utvideoenc tests to use the new option name. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move {min,max}_prediction_order to codec private optionsVittorio Giovara2016-01-21
| | | | | | | These options are only used by alac and flac. They are very codec-specific options, so deprecate the global variants. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move rtp_payload_size to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | This option is only used by mpegvideoenc and openh264. It is a very codec-specific option, so deprecate the global variant. The openh264 option is dropped altogether since it is just a fallback for -max_nal_size anyway. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move timecode_frame_start to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpeg2. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move context_model to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | This option is only used by ffv1 and ffvhuff. It is a very codec-specific option, so deprecate the global variant. Improve documentation a little. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move mpeg_quant to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc, and xvid. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move noise_reduction to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc, x264, xavs, and vpx. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move scenechange_threshold to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by mpegvideoenc, x264, and xavs. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move chromaoffset to codec private optionsVittorio Giovara2016-01-21
| | | | | | | This option is only used by x264 and xavs. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move frame_skip_* to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | | | | | These options are only used by mpegvideoenc and vpx. They are very codec-specific options, so deprecate the global variants. Add an allowed value to the private options for frame_skip_cmp which seems to have been forgotten, but perfectly working. The libvpx frame dropping feature uses one of such option (frame_skip_threshold) without the other three. For this reason rename the option to something more consistent with the other libvpx variables. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move brd_scale to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | This option is only used by mpegvideoenc, It is a very codec-specific option, so deprecate the global variant. Set proper limits to the maximum allowed values. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Move b_frame_strategy and b_sensitivity to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | The b_frame_strategy option is only used by mpegvideoenc, qsv, x264, and xavs, while b_sensitivity is only used by mpegvideoenc. These are very codec-specific options, so deprecate the global variants. Set proper limits to the maximum allowed values. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* riff: add C210 FourCC (Canopus C210)Piotr Bandurski2016-01-21
|
* riff: add YUYV FourCC (Drastic YUYV)Piotr Bandurski2016-01-21
|
* imgconvert: Add the proper API guards to a deprecated functionVittorio Giovara2016-01-21
|
* imgconvert: Move AVPicture-related static function to the deprecated sectionVittorio Giovara2016-01-21
|
* imgconvert: Move the shrink functions only where neededVittorio Giovara2016-01-21
|
* imgconvert: Drop outdated comment blockVittorio Giovara2016-01-21
|
* configure: Force-enable select_any dependencies only on --enableLuca Barbato2016-01-21
| | | | | | Unbreak --enable-gnutls enabling tls_openssl_protocol Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: Add an option to toggle dref openingDerek Buitenhuis2016-01-21
| | | | | | | | | This feature is mostly only used by NLE software, and is both of dubious value being enabled by default, and a possible security risk. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* fate: add 10-bit v210 encoder testsJames Darnley2016-01-21
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* configure: Improve requesting specific featuresLuca Barbato2016-01-21
| | | | | | | | | | | | | | | | | | Before this patch trying to enable only https by issuing --disable-protocols --enable-protocol=https --enable-gnutls does not enable https, and --disable-all --enable-protocols does not enable libavformat and the protocols component. Now the default-enabled options are set after the explicitly disabled/enabled options are evaluated. If an explicitly enabled option cannot be enabled configure will fail printing an error message.
* yuv2rgb: Document the color space coefficientsVittorio Giovara2016-01-20
| | | | | | Based on the original documentation found in mpeg2dec (1995). Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libkvazaar: Set frame rate as a rational numberArttu Ylä-Outinen2016-01-19
| | | | | | | | | | | | Updates libkvazaar to pass the exact frame rate to Kvazaar by setting the numerator and denominator separately instead of a single floating point number. The exact frame rate is needed for writing timing info to the bitstream. Requires Kvazaar version 0.8.1. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: Make sure that the effective timebase would not overflowArttu Ylä-Outinen2016-01-19
| | | | | | | In the unlikely situation the user decides to set ticks_per_frame and timebase to a value large enough to overflow. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* configure: mips: Support both-endian compilersLuca Barbato2016-01-19
| | | | | Use mips{,64}eb to force big endian and mips{,64}el to force little endian.
* mathops: mips: Correctly enable loongson-specific assemblyLuca Barbato2016-01-19
| | | | | The code wrongly assumed that the instructions used are supported on mips64, while it is supported only on loongson cpus.
* configure: Use pkg-config to check for opensslLuca Barbato2016-01-19
|