From ecc31f6b086453ab9811dce2ae5ceb6a7c19e4ad Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 23 Mar 2016 09:41:05 +0100 Subject: h264: move ff_h264_check_intra[4x4]_pred_mode() to h264_parse It is shared with svq3. --- libavcodec/h264_parse.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libavcodec/h264_parse.h') diff --git a/libavcodec/h264_parse.h b/libavcodec/h264_parse.h index 7bdce04a3b..9b96dc47a0 100644 --- a/libavcodec/h264_parse.h +++ b/libavcodec/h264_parse.h @@ -45,4 +45,19 @@ int ff_h264_pred_weight_table(GetBitContext *gb, const struct SPS *sps, const int *ref_count, int slice_type_nos, H264PredWeightTable *pwt); +/** + * Check if the top & left blocks are available if needed & change the + * dc mode so it only uses the available blocks. + */ +int ff_h264_check_intra4x4_pred_mode(int8_t *pred_mode_cache, void *logctx, + int top_samples_available, int left_samples_available); + +/** + * Check if the top & left blocks are available if needed & change the + * dc mode so it only uses the available blocks. + */ +int ff_h264_check_intra_pred_mode(void *logctx, int top_samples_available, + int left_samples_available, + int mode, int is_chroma); + #endif /* AVCODEC_H264_PARSE_H */ -- cgit v1.2.3