summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_parser.c
Commit message (Collapse)AuthorAgeFilesLines
* h264_sei: Add namespace prefix to all SEI valuesMark Thompson2017-05-161-13/+13
| | | | | This avoids confusion with equivalent H.265 SEI values when both are being used at the same time.
* h264_sei: Check actual presence of picture timing SEI messageMichael Niedermayer2017-02-281-2/+2
| | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* golomb: Convert to the new bitstream readerDiego Biurrun2017-01-311-1/+1
|
* h264: add H264_ prefix to the NAL unit typesAnton Khirnov2016-06-211-14/+14
| | | | | This will prevent conflicts e.g. in code that deals with both h264 and hevc.
* lavc: drop unnecessary h264dec.h includesAnton Khirnov2016-06-211-1/+1
|
* h264: move the parameter set definitions to a new header fileAnton Khirnov2016-06-211-0/+1
| | | | | The PS parsing code is independent from the decoder, so it makes more sense for it to have its own separate header.
* h264: create a new header for common h264 definitionsAnton Khirnov2016-06-211-0/+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-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264_parser: remove the remaining dependencies on the h264 decoderAnton Khirnov2016-04-241-62/+36
|
* h264: decouple extradata parsing from the decoderAnton Khirnov2016-04-241-1/+5
| | | | This will allow decoupling the parser from the decoder.
* h264: decouple h264_sei from the h264 decoderAnton Khirnov2016-04-241-9/+13
| | | | | Make the SEI parsing independent of the H264Context, to allow decoupling the parser from the decoder.
* h264: factor out calculating the POC count into a separate fileAnton Khirnov2016-04-241-16/+18
| | | | This will allow decoupling the parser from the decoder.
* h264_parser: move the H264DSPContext to the parser contextAnton Khirnov2016-04-241-3/+3
|
* h264: decouple h264_ps from the h264 decoderAnton Khirnov2016-04-241-29/+44
| | | | | | | | | 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-241-34/+32
| | | | It is no longer needed for anything.
* h264: factor out parsing the reference count into a separate fileAnton Khirnov2016-04-241-4/+6
| | | | This will allow decoupling the parser from the decoder.
* h264: move reading direct_spatial_mv_pred out of ff_set_ref_count()Anton Khirnov2016-04-241-0/+3
| | | | | 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-241-10/+27
| | | | Remove now unused ff_h264_decode_nal().
* h264: factor out pred weight table parsing into a separate fileAnton Khirnov2016-03-281-1/+2
| | | | This will allow decoupling the parser from the decoder.
* h264data: Move all data tables from a header to a .c fileDiego Biurrun2016-03-251-1/+1
|
* h264: Clean up #includesDiego Biurrun2016-03-251-5/+13
|
* h264_parser: Rename close() to h264_close()Diego Biurrun2015-11-011-2/+2
| | | | At least on AIX it conflicts with the close() libc function from unistd.h.
* h264: drop the now unused per-slice H264ContextsAnton Khirnov2015-03-211-1/+0
|
* h264: move rbsp_buffer into the per-slice contextAnton Khirnov2015-03-211-1/+1
|
* h264: use a separate GetBitContext for slice dataAnton Khirnov2015-03-211-19/+21
|
* h264: move the ref lists variables into the per-slice contextAnton Khirnov2015-03-211-2/+2
|
* h264: move the slice type variables into the per-slice contextAnton Khirnov2015-03-211-5/+5
|
* h264: split weighted pred-related vars into per-slice contextAnton Khirnov2015-03-211-1/+8
|
* h264_parser: export video format and dimensionsAnton Khirnov2015-02-191-0/+29
|
* h264_parser: restore a comment lost in 0268a54Anton Khirnov2015-01-271-0/+1
|
* h264: move parser-only variables to their own contextAnton Khirnov2015-01-271-14/+26
|
* h264_parser: don't stop on SPS_EXT in splitJohn Stebbins2014-11-111-2/+4
| | | | | Add SPS_EXT, SEI, and subset SPS to codes that are skipped during split. These codes can come before the PPS and results in incomplete extradata.
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-151-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: Move start code search functions into separate source files.Ben Avison2014-08-041-1/+1
| | | | | | This permits re-use with parsers for codecs which use similar start codes. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegvideo: move mpegvideo formats-related defines to mpegutils.hVittorio Giovara2014-03-161-0/+1
|
* h264_parser: use enum values in h264_find_frame_end()Vittorio Giovara2014-02-151-3/+5
|
* h264: print values in case of errorVittorio Giovara2014-02-141-4/+5
| | | | Also make error style consistent and drop redundant information.
* h264_parser: Use ff_h264_reset_sei()Yusuke Nakamura2013-10-221-5/+2
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h264_parser: Fix order of operationsMichael Niedermayer2013-10-221-1/+1
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h264_parser: Fix POC parsing for the case where MMCO_RESET is present.Yusuke Nakamura2013-10-151-8/+102
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264_parser: Fix POC parsing for the case where MMCO_RESET is absent.Yusuke Nakamura2013-10-151-2/+12
| | | | | | | The prev_ values were not set after parsing POC. Increase length of the buffer decoded to parse enough safely. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264dsp: Factorize code into a new function, h264_find_start_code_candidateBen Avison2013-08-081-24/+3
| | | | | | | | | | | | | | | This performs the start code search which was previously part of h264_find_frame_end() - the most CPU intensive part of the function. By itself, this results in a performance regression: Before After Mean StdDev Mean StdDev Change Overall time 2925.6 26.2 3068.5 31.7 -4.7% but this can more than be made up for by platform-optimised implementations of the function. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264_parser: Initialize the h264dsp context in the parser as wellBen Avison2013-08-081-0/+1
| | | | | | | | | | | | | | | Each AVStream struct for an H.264 elementary stream actually has two copies of the H264DSPContext struct (and in fact all the other members of H264Context as well): ((H264Context *) ((AVStream *)st)->codec->priv_data)->h264dsp ((H264Context *) ((AVStream *)st)->parser->priv_data)->h264dsp but only the first of these was actually being initialised. This prevented the addition of platform-specific implementations of parser-related functions. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: Add output_picture_number to AVCodecParserContextYusuke Nakamura2013-08-021-1/+1
| | | | | | Set output_picture_number in H.264 parser. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264_parser: K&R formatting cosmeticsLuca Barbato2013-06-071-130/+151
|
* h264_parser: Set field_order and picture_structure.Yusuke Nakamura2013-05-241-0/+57
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-041-1/+2
|
* avcodec: Drop unnecessary ff_ name prefixes from static functionsDiego Biurrun2013-04-301-3/+3
|
* lavc: Rename avpriv_mpv_find_start_code after moving out from mpegvideoMartin Storsjö2013-03-261-1/+2
| | | | | | | Also move the declaration to internal.h, and add restrict qualifiers to the declaration (as in the implementation). Signed-off-by: Martin Storsjö <martin@martin.st>
OpenPOWER on IntegriCloud