diff h264.h @ 10854:f6fc6ace95e3 libavcodec

Split h264 loop filter off h264.c. No meassureable speed difference on pentium dual & cathedral sample.
author michael
date Tue, 12 Jan 2010 06:01:55 +0000
parents 86d7ab878805
children b20434143fd5
line wrap: on
line diff
--- a/h264.h	Tue Jan 12 05:34:10 2010 +0000
+++ b/h264.h	Tue Jan 12 06:01:55 2010 +0000
@@ -610,6 +610,9 @@
 av_cold int ff_h264_decode_init(AVCodecContext *avctx);
 av_cold int ff_h264_decode_end(AVCodecContext *avctx);
 
+void ff_h264_filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize);
+void ff_h264_filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize);
+
 /*
 o-o o-o
  / / /
@@ -678,6 +681,13 @@
     return 0;
 } //FIXME cleanup like ff_h264_check_intra_pred_mode
 
+/**
+ * gets the chroma qp.
+ */
+static inline int get_chroma_qp(H264Context *h, int t, int qscale){
+    return h->pps.chroma_qp_table[t][qscale];
+}
+
 static inline int fetch_diagonal_mv(H264Context *h, const int16_t **C, int i, int list, int part_width){
     const int topright_ref= h->ref_cache[list][ i - 8 + part_width ];
     MpegEncContext *s = &h->s;