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

📄 block.h

📁 h264编解码.用C++实现了图像的编解码功能。
💻 H
字号:
#ifndef _BLOCK_H_
#define _BLOCK_H_

#include <stdio.h>
#include "global.h"

int tmp_mv[72][92][2];
int tmp_mv1[4][72][92][2];
int MbLum[256];
unsigned char LumPred[256];
int MbCb[64];
int MbCr[64];
int curr_mvx,curr_mvy;
int curr_mvx1[2],curr_mvy1[2];
int curr_mvx2[2],curr_mvy2[2];
int curr_mvx3[4][16],curr_mvy3[4][16];

int skip_mv[2];
int cbp_blk[72][88];

byte *mcef[2];
byte *ipol[16];

Point search[9];
Point qsearch[4][9];
SAD_TABLE sadTable[SAD_TABLE_SIZE];
extern const byte QP_SCALE_CR[52]=
{
    0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,
   12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,
   28,29,29,30,31,32,32,33,34,34,35,35,36,36,37,37,
   37,38,38,38,39,39,39,39
};//h.264

extern const int QP2QUANT[40]=
{
   1, 1, 1, 1, 2, 2, 2, 2,
   3, 3, 3, 4, 4, 4, 5, 6,
   6, 7, 8, 9,10,11,13,14,
  16,18,20,23,25,29,32,36,
  40,45,51,57,64,72,81,91
};
// single scan pattern 
const byte SNGL_SCAN[16][2] =   
{
  {0,0},{1,0},{0,1},{0,2},
  {1,1},{2,0},{3,0},{2,1},
  {1,2},{0,3},{1,3},{2,2},
  {3,1},{3,2},{2,3},{3,3}
};

// array used to find expencive coefficients 
const byte COEFF_COST[16] = 
{
  3,2,2,1,1,1,0,0,0,0,0,0,0,0,0,0
};

int sign(int a,int b);
extern int MbLumTmp[256];
extern byte *imgY;
extern byte *imgUV[2];
extern byte *imgY_org;
extern byte *imgUV_org[2];

#endif

⌨️ 快捷键说明

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