summaryrefslogtreecommitdiffstats
path: root/libavcodec/omx.c
Commit message (Collapse)AuthorAgeFilesLines
* omx: Use the EOS flag to handle flushing at the endMartin Storsjö2017-02-081-7/+23
| | | | | | | | This avoids having to count the number of frames sent to the codec and the number of output packets received; instead just wait until the encoder returns a buffer with the EOS flag set. Signed-off-by: Martin Storsjö <martin@martin.st>
* omx: Fix allocation checkTimothy Gu2016-12-081-2/+2
| | | | | | | Also use av_mallocz_array(). Bug-Id: CID 1396839 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* omx: Don't return > 0 from omx_encode_frameMartin Storsjö2016-06-241-1/+0
| | | | | | | The encode function is supposed to just return 0 on success. This stems from a mixup with the return value of decode functions. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: add H264_ prefix to the NAL unit typesAnton Khirnov2016-06-211-1/+1
| | | | | This will prevent conflicts e.g. in code that deals with both h264 and hevc.
* h264: create a new header for common h264 definitionsAnton Khirnov2016-06-211-1/+1
| | | | | | Move the NAL unit types into it. This will allow to stop including the whole decoder-specific h264dec.h in some code that is unrelated to the decoder and only needs some enum values.
* h264: rename h264.[ch] to h264dec.[ch]Anton Khirnov2016-06-211-1/+1
| | | | This is more consistent with the naming of other decoders.
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-041-4/+4
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* omx: Add support for zerocopy input of framesMartin Storsjö2016-04-121-3/+74
| | | | | | | | | | | 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-121-6/+44
| | | | | | | | | | | | | | | | 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-121-0/+823
Signed-off-by: Martin Storsjö <martin@martin.st>
OpenPOWER on IntegriCloud