me_distortion.h
资源名称:chapter15.rar [点击查看]
上传用户:hjq518
上传日期:2021-12-09
资源大小:5084k
文件大小:4k
源码类别:
Audio
开发平台:
Visual C++
- /*!
- ***************************************************************************
- * file
- * me_distortion.h
- *
- * author
- * Alexis Michael Tourapis <alexis.tourapis@dolby.com>
- * Athanasios Leontaris <aleon@dolby.com>
- *
- * date
- * 11. August 2006
- *
- * brief
- * Headerfile for motion estimation distortion
- **************************************************************************
- */
- #ifndef _ME_DISTORTION_H_
- #define _ME_DISTORTION_H_
- extern imgpel *(*get_line[2]) (imgpel****, int, int);
- extern imgpel *(*get_line1[2]) (imgpel****, int, int);
- extern imgpel *(*get_line2[2]) (imgpel****, int, int);
- extern imgpel *(*get_crline[2]) (imgpel****, int, int);
- extern imgpel *(*get_crline1[2]) (imgpel****, int, int);
- extern imgpel *(*get_crline2[2]) (imgpel****, int, int);
- extern int ref_access_method;
- extern int bipred1_access_method;
- extern int bipred2_access_method;
- extern SubImageContainer ref_pic_sub;
- extern SubImageContainer ref_pic1_sub;
- extern SubImageContainer ref_pic2_sub;
- extern short weight1, weight2, offsetBi;
- extern int weight_luma, weight_cr[2], offset_luma, offset_cr[2];
- extern short weight1_cr[2], weight2_cr[2], offsetBi_cr[2];
- extern short img_width, img_height;
- extern int test8x8transform;
- extern int ChromaMEEnable;
- extern int HadamardSAD4x4(int* diff);
- extern int HadamardSAD8x8(int* diff);
- extern int computeSAD (imgpel* , int, int, int, int, int);
- extern int computeSAD4x4 (imgpel* , int, int, int, int, int);
- extern int computeSAD4x8 (imgpel* , int, int, int, int, int);
- extern int computeSAD8x4 (imgpel* , int, int, int, int, int);
- extern int computeSAD8x8 (imgpel* , int, int, int, int, int);
- extern int computeSAD8x16 (imgpel* , int, int, int, int, int);
- extern int computeSAD16x8 (imgpel* , int, int, int, int, int);
- extern int computeSAD16x16(imgpel* , int, int, int, int, int);
- extern int computeBiPredSAD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred4x4SAD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred4x8SAD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred8x4SAD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred8x8SAD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred8x16SAD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred16x8SAD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred16x16SAD1(imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPredSATD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred8x8SATD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred8x16SATD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred16x8SATD1 (imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPred16x16SATD1(imgpel* , int, int, int, int, int, int, int);
- extern int computeSADWP(imgpel* , int, int, int, int, int);
- extern int computeBiPredSAD2(imgpel* , int, int, int, int, int, int, int);
- extern int computeSATD(imgpel* , int, int, int, int, int);
- extern int computeSATDWP(imgpel* , int, int, int, int, int);
- extern int computeBiPredSATD2(imgpel* , int, int, int, int, int, int, int);
- extern int computeSSE(imgpel* , int, int, int, int, int);
- extern int computeSSEWP(imgpel* , int, int, int, int, int);
- extern int computeBiPredSSE1(imgpel* , int, int, int, int, int, int, int);
- extern int computeBiPredSSE2(imgpel* , int, int, int, int, int, int, int);
- // Function
- extern int (*computeUniPred[6])(imgpel* , int , int , int , int , int );
- extern int (*computeBiPred) (imgpel* , int , int , int , int , int, int , int);
- extern int (*computeBiPred1[3])(imgpel* , int , int , int , int , int, int , int);
- extern int (*computeBiPred2[3])(imgpel* , int , int , int , int , int, int , int);
- #endif