comparison 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
comparison
equal deleted inserted replaced
10853:7ba2dc9ed4ac 10854:f6fc6ace95e3
608 void ff_h264_hl_decode_mb(H264Context *h); 608 void ff_h264_hl_decode_mb(H264Context *h);
609 int ff_h264_frame_start(H264Context *h); 609 int ff_h264_frame_start(H264Context *h);
610 av_cold int ff_h264_decode_init(AVCodecContext *avctx); 610 av_cold int ff_h264_decode_init(AVCodecContext *avctx);
611 av_cold int ff_h264_decode_end(AVCodecContext *avctx); 611 av_cold int ff_h264_decode_end(AVCodecContext *avctx);
612 612
613 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);
614 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);
615
613 /* 616 /*
614 o-o o-o 617 o-o o-o
615 / / / 618 / / /
616 o-o o-o 619 o-o o-o
617 ,---' 620 ,---'
675 } 678 }
676 } 679 }
677 680
678 return 0; 681 return 0;
679 } //FIXME cleanup like ff_h264_check_intra_pred_mode 682 } //FIXME cleanup like ff_h264_check_intra_pred_mode
683
684 /**
685 * gets the chroma qp.
686 */
687 static inline int get_chroma_qp(H264Context *h, int t, int qscale){
688 return h->pps.chroma_qp_table[t][qscale];
689 }
680 690
681 static inline int fetch_diagonal_mv(H264Context *h, const int16_t **C, int i, int list, int part_width){ 691 static inline int fetch_diagonal_mv(H264Context *h, const int16_t **C, int i, int list, int part_width){
682 const int topright_ref= h->ref_cache[list][ i - 8 + part_width ]; 692 const int topright_ref= h->ref_cache[list][ i - 8 + part_width ];
683 MpegEncContext *s = &h->s; 693 MpegEncContext *s = &h->s;
684 694