⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tss.h

📁 adi bf533视频编码程序
💻 H
字号:
#ifndef __TTSS_H_
#define __TTSS_H_

//#define ROWS 48
//#define COLUMNS 96
#define SS_3step 9
#define SS_3step_4 4
#define SR_3step (SS_3step + (SS_3step>>1) + (SS_3step>>2) + 1) //16
#define WINWIDTH_3step (2*SR_3step+16)         //(2*SR+16)


#define SS_4step 17
#define SR_4step (SS_4step + (SS_4step>>1) + (SS_4step>>2) +(SS_4step>>3) + 1) //32
#define WINWIDTH_4step (2*SR_4step+16)        //(2*SR+16)

struct tss_struct
{
    short vmv[9];
    short hmv[9];
    short modifier[33];
} ;
struct tss_par
{
    unsigned char *ptr_target;      // Target block address (16x16)
    unsigned char *ptr_reference;   // Reference window address
    int winwidth;                   // Width of the reference window
    int step_size;                  // Initial step size
   struct  tss_struct *ptr_tss;            // Pointer to the initialized tss structure
    short mv_x;                     // Address of the horizontal MV
    short mv_y;                     // Address of the vertical MV
    unsigned char *ptr_match;       // Best match block
    int sad; 
                       // SAD corresponding to the best match
                       
   // (offset_x,offset_y) the location of a 8x8 block in macroblock,only for 8x8 block ME   
unsigned char offset_x;          
unsigned char offset_y;          //offset_x,offset_y : 0 or 8 
//unsigned char rounding_type;     //used for half pel interpolate            
} ;

//MBy_cur[256]:current target MB; MBy_match_16x16:best match 16x16 block;
//MBy_match_8x8: best match 8x8 ME macroblock; 
 

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -