summaryrefslogtreecommitdiff
path: root/libavcodec/h264_parse.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-03-23 09:41:05 +0100
committerAnton Khirnov <anton@khirnov.net>2016-03-28 09:53:56 +0200
commitecc31f6b086453ab9811dce2ae5ceb6a7c19e4ad (patch)
tree464ce2f788c348470d80603de4bcf5365aa750ef /libavcodec/h264_parse.h
parent1877712c586df2261f2806f45388c77592b89d1e (diff)
h264: move ff_h264_check_intra[4x4]_pred_mode() to h264_parse
It is shared with svq3.
Diffstat (limited to 'libavcodec/h264_parse.h')
-rw-r--r--libavcodec/h264_parse.h15
1 files changed, 15 insertions, 0 deletions
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 */