summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* h264: factor out calculating the POC count into a separate fileAnton Khirnov2016-04-24
| | | | This will allow decoupling the parser from the decoder.
* h264_parser: move the H264DSPContext to the parser contextAnton Khirnov2016-04-24
|
* h264: decouple h264_ps from the h264 decoderAnton Khirnov2016-04-24
| | | | | | | | | Make the SPS/PPS parsing independent of the H264Context, to allow decoupling the parser from the decoder. The change is modelled after the one done earlier for HEVC. Move the dequant buffers to the PPS to avoid complex checks whether they changed and an expensive copy for frame threads.
* h264_parser: eliminate H264SliceContext usageAnton Khirnov2016-04-24
| | | | It is no longer needed for anything.
* h264_parse: make sure the ref count is zeroed on all failure pathsAnton Khirnov2016-04-24
|
* h264: factor out parsing the reference count into a separate fileAnton Khirnov2016-04-24
| | | | This will allow decoupling the parser from the decoder.
* h264: stop testing whether the reference count changes in ff_set_ref_count()Anton Khirnov2016-04-24
| | | | It is no longer necessary after 741b494fa8cd28a7d096349bac183893c236e3f9
* h264: move reading direct_spatial_mv_pred out of ff_set_ref_count()Anton Khirnov2016-04-24
| | | | | It has nothing to do with the reference count and so does not belong in this function.
* h264_parser: switch to h2645_parse for NAL unescapingAnton Khirnov2016-04-24
| | | | Remove now unused ff_h264_decode_nal().
* h264_mp4toannexb_bsf: do not fail on annex B extradataAnton Khirnov2016-04-24
| | | | | Just pass through the bitstream as is. This is the same as what is done for HEVC already.
* libx264: Forbid inverted Stereo3D modeVittorio Giovara2016-04-21
|
* libx264: Allow Stereo3D monoscopic valueVittorio Giovara2016-04-21
|
* ape: Avoid undefined behaviourLuca Barbato2016-04-19
| | | | | | Avoid the clang warning "warning: shifting a negative signed value is undefined"
* indeo3: Avoid undefined behaviourLuca Barbato2016-04-19
| | | | | | Avoid the clang warning "warning: shifting a negative signed value is undefined"
* libxvid: Create extradata in init using a dummy frameDerek Buitenhuis2016-04-19
| | | | | | | | | | | Modifying global header extradata in encode_frame is an API violation and only happens to work currently because mov writes its header at the end of the file. Heavily based off of a patch from 2012 by Nicolas George. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Generate the lists of enabled protocols/bsfs from configure.Anton Khirnov2016-04-19
|
* lavc: move the vaapi encoders further down in the list of codecsAnton Khirnov2016-04-15
| | | | | | | Right now they are the first encoders for those codecs in the list, so they are selected when the caller requests a codec by id. Since they require special treatment, they should not be selected by default if there are other encoders (e.g. libx264/5) available.
* vaapi_h265: Add -qp option, use it to replace use of -global_qualityMark Thompson2016-04-15
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vaapi_h265: Add constant-bitrate encode supportMark Thompson2016-04-15
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vaapi_h264: Add encode quality option (for quality-speed tradeoff)Mark Thompson2016-04-15
| | | | | | Only supported on VAAPI 0.36 and higher. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vaapi_h264: Add -qp option, use it to replace use of -global_qualityMark Thompson2016-04-15
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vaapi_encode: Add support for codec-local optionsMark Thompson2016-04-15
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vaapi_h264: Add constant-bitrate encode supportMark Thompson2016-04-15
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vaapi_encode: Refactor slightly to allow easier setting of global optionsMark Thompson2016-04-15
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libavcodec: Document that encoders may use the framerate field in AVCodecContextMartin Storsjö2016-04-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* omx: Add support for zerocopy input of framesMartin Storsjö2016-04-12
| | | | | | | | | | | This can only be used if the input data happens to be laid out exactly correctly. This might not be supported on all encoders, so only enable it with an option, but enable it automatically on raspberry pi, where it is known to be supported. Signed-off-by: Martin Storsjö <martin@martin.st>
* omx: Add support for broadcom OMX on raspberry piMartin Storsjö2016-04-12
| | | | | | | | | | | | | | | | The raspberry pi uses the alternative API/ABI for OMX; this makes such builds incompatible with all the normal OpenMAX implementations. Since this can't easily be detected at configure time (one can build for raspberry pi's OMX just fine using the generic, pristine Khronos OpenMAX IL headers, no need for their own extensions), require a separate configure switch for it instead. The broadcom host library can't be unloaded once loaded and started; the deinit function that it provides is a no-op, and after started, it has got background threads running, so dlclosing it makes it crash. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavcodec: Add H264/MPEG4 encoders based on OpenMAX ILMartin Storsjö2016-04-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mmaldec: Use imgutils.h for copying framesMartin Storsjö2016-04-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* testprogs: Add missing libm.h includesMartin Storsjö2016-04-11
| | | | | | This fixes building on MSVC 2010 and 2012 after d12b5b2f135. Signed-off-by: Martin Storsjö <martin@martin.st>
* build: Split test programs off into separate filesDiego Biurrun2016-04-07
| | | | | This avoids spurious library rebuilds when only the test program code is changed and simplifies the build system.
* build: Group declarations for hw-accelerated de-/encoding separatelyDiego Biurrun2016-04-07
|
* build: miscellaneous cosmeticsDiego Biurrun2016-04-07
| | | | | | Restore alphabetical order in lists, break overly long lines, do some prettyprinting, add some explanatory section comments, group parts together that belong together logically.
* dds: Simplify postprocessing checkVittorio Giovara2016-04-06
|
* dds: Add support for alpha-only filesVittorio Giovara2016-04-06
| | | | | | | Due to how pixel format conversion is done, they behave the same way as gray files. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dds: Add support for rgb555 filesVittorio Giovara2016-04-06
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* screenpresso: Correctly handle keyframesVittorio Giovara2016-04-04
| | | | | | | | The first byte contains compression level together with keyframe status. When a frame is not interpreted correctly, its data is summed to the reference, and would degrade over time, producing an incorrect result. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* screenpresso: Add extended pixel format supportVittorio Giovara2016-04-04
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* rscc: Add extended pixel format supportVittorio Giovara2016-04-04
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* nvenc_h264: Fix name of private AVClassDiego Biurrun2016-04-04
|
* vaapi_h264: Fix bit offset of slice data.Mark Thompson2016-04-02
| | | | | | | | | | | | Commit ca2f19b9cc37be509d85f05c8f902860475905f8 modified the meaning of H264SliceContext.gb: it is now initialised at the start of the NAL unit header, rather than at the start of the slice header. The VAAPI slice decoder uses the offset after parsing to determine the offset of the slice data in the bitstream, so with the changed meaning we no longer need to add the extra byte to account for the NAL unit header because it is now included directly. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* ac3dec: change logging of skipped E-AC-3 substreams.Tim Walker2016-04-02
| | | | | | | | | Change log level from warning to debug: the E-AC-3 "core" substream can be successfully decoded without the additional and dependent substreams, and their presence is already indicated via avpriv_request_sample in ff_eac3_parse_header. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* eac3dec: don't call avpriv_request_sample every frame.Tim Walker2016-04-02
| | | | | | | | These errors neither prevent nor stop successful decoding of the E-AC-3 stream's "core", causing avpriv_request_sample to be called for every single frame in the bitstream. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* build: Do not check the vaapi_encode.h header if VAAPI is not enabledDiego Biurrun2016-03-30
|
* Mark tables used only within their files as staticDiego Biurrun2016-03-30
|
* h264: Add missing ff_ prefix to internally visible h264_init_dequant_tables()Diego Biurrun2016-03-30
|
* lavc: VAAPI MJPEG encoderMark Thompson2016-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: VAAPI H.265 encoderMark Thompson2016-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: VAAPI H.264 encoderMark Thompson2016-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: VAAPI encode common infrastructureMark Thompson2016-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>