summaryrefslogtreecommitdiff
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-12 06:01:55 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-01-12 06:01:55 +0000
commit082cf97106e2e94a969877d4f8c05c1e526acf54 (patch)
tree7f63feb91c8b58667c4fdad3c6284941efd1edff /libavcodec/h264.h
parent419276c50da1c97f0adfbb291f27268248548266 (diff)
Split h264 loop filter off h264.c.
No meassureable speed difference on pentium dual & cathedral sample. Originally committed as revision 21159 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index f66b816697..ef2bdb0461 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -610,6 +610,9 @@ int ff_h264_frame_start(H264Context *h);
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 @@ static inline int check_intra4x4_pred_mode(H264Context *h){
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;