Mercurial > libavcodec.hg
comparison h264.h @ 8996:e65778184ded libavcodec
Make the following H264 functions available to the parser:
ff_h264_decode_sei, ff_h264_decode_seq_parameter_set,
ff_h264_decode_picture_parameter_set, ff_h264_decode_nal,
ff_h264_decode_rbsp_trailing
Patch by Ivan Schreter, schreter gmx net
author | cehoyos |
---|---|
date | Sat, 21 Feb 2009 19:54:14 +0000 |
parents | eaf39f9b25df |
children | 24d0633a5248 |
comparison
equal
deleted
inserted
replaced
8995:231e8535e00e | 8996:e65778184ded |
---|---|
530 // Timestamp stuff | 530 // Timestamp stuff |
531 int sei_buffering_period_present; ///< Buffering period SEI flag | 531 int sei_buffering_period_present; ///< Buffering period SEI flag |
532 int initial_cpb_removal_delay[32]; ///< Initial timestamps for CPBs | 532 int initial_cpb_removal_delay[32]; ///< Initial timestamps for CPBs |
533 }H264Context; | 533 }H264Context; |
534 | 534 |
535 /** | |
536 * Decode SEI | |
537 */ | |
538 int ff_h264_decode_sei(H264Context *h); | |
539 | |
540 /** | |
541 * Decode SPS | |
542 */ | |
543 int ff_h264_decode_seq_parameter_set(H264Context *h); | |
544 | |
545 /** | |
546 * Decode PPS | |
547 */ | |
548 int ff_h264_decode_picture_parameter_set(H264Context *h, int bit_length); | |
549 | |
550 /** | |
551 * Decodes a network abstraction layer unit. | |
552 * @param consumed is the number of bytes used as input | |
553 * @param length is the length of the array | |
554 * @param dst_length is the number of decoded bytes FIXME here or a decode rbsp tailing? | |
555 * @returns decoded bytes, might be src+1 if no escapes | |
556 */ | |
557 const uint8_t *ff_h264_decode_nal(H264Context *h, const uint8_t *src, int *dst_length, int *consumed, int length); | |
558 | |
559 /** | |
560 * identifies the exact end of the bitstream | |
561 * @return the length of the trailing, or 0 if damaged | |
562 */ | |
563 int ff_h264_decode_rbsp_trailing(H264Context *h, const uint8_t *src); | |
564 | |
535 #endif /* AVCODEC_H264_H */ | 565 #endif /* AVCODEC_H264_H */ |