diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-07-09 04:19:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-07-09 04:50:00 +0200 |
commit | 1d4194e69696e615b5bbf7273103b05241dc75b8 (patch) | |
tree | 4684f6e817a8314e882fa6a73c89fa2e5f9f3798 /libavcodec/hevc.h | |
parent | c11810166205bbf68f114414329e679b0d2d5268 (diff) | |
parent | fd124d8357b1becfde3ac8d5e3320127cf97a5b7 (diff) | |
download | ffmpeg-1d4194e69696e615b5bbf7273103b05241dc75b8.tar.gz |
Merge commit 'fd124d8357b1becfde3ac8d5e3320127cf97a5b7'
* commit 'fd124d8357b1becfde3ac8d5e3320127cf97a5b7':
hevc_ps: split the code for parsing the SPS and exporting it into the context
Conflicts:
libavcodec/hevc.c
libavcodec/hevc_ps.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.h')
-rw-r--r-- | libavcodec/hevc.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h index 44c6c47a51..8ab9f84f6f 100644 --- a/libavcodec/hevc.h +++ b/libavcodec/hevc.h @@ -924,8 +924,21 @@ typedef struct HEVCContext { int picture_struct; } HEVCContext; -int ff_hevc_decode_short_term_rps(HEVCContext *s, ShortTermRPS *rps, - const HEVCSPS *sps, int is_slice_header); +int ff_hevc_decode_short_term_rps(GetBitContext *gb, AVCodecContext *avctx, + ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header); + +/** + * Parse the SPS from the bitstream into the provided HEVCSPS struct. + * + * @param sps_id the SPS id will be written here + * @param apply_defdispwin if set 1, the default display window from the VUI + * will be applied to the video dimensions + * @param vps_list if non-NULL, this function will validate that the SPS refers + * to an existing VPS + */ +int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id, + int apply_defdispwin, AVBufferRef **vps_list, AVCodecContext *avctx); + int ff_hevc_decode_nal_vps(HEVCContext *s); int ff_hevc_decode_nal_sps(HEVCContext *s); int ff_hevc_decode_nal_pps(HEVCContext *s); |