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

📄 predict.h

📁 图象压缩程序
💻 H
字号:
/***************************************************************************** * predict.h: h264 encoder library ***************************************************************************** * Copyright (C) 2003 Laurent Aimar * $Id: predict.h,v 1.1 2003/11/09 23:25:04 fenrir Exp $ * * Authors: Laurent Aimar <fenrir@via.ecp.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************/#ifndef _PREDICT_H#define _PREDICT_H 1typedef void (*x264_predict_t)( uint8_t *src, int i_stride );enum intra_chroma_pred_e{    I_PRED_CHROMA_DC = 0,    I_PRED_CHROMA_H  = 1,    I_PRED_CHROMA_V  = 2,    I_PRED_CHROMA_P  = 3,    I_PRED_CHROMA_DC_LEFT = 4,    I_PRED_CHROMA_DC_TOP  = 5,    I_PRED_CHROMA_DC_128  = 6};static const int x264_mb_pred_mode8x8_fix[7] ={    I_PRED_CHROMA_DC, I_PRED_CHROMA_H, I_PRED_CHROMA_V, I_PRED_CHROMA_P,    I_PRED_CHROMA_DC, I_PRED_CHROMA_DC,I_PRED_CHROMA_DC};enum intra16x16_pred_e{    I_PRED_16x16_V  = 0,    I_PRED_16x16_H  = 1,    I_PRED_16x16_DC = 2,    I_PRED_16x16_P  = 3,    I_PRED_16x16_DC_LEFT = 4,    I_PRED_16x16_DC_TOP  = 5,    I_PRED_16x16_DC_128  = 6,};static const int x264_mb_pred_mode16x16_fix[7] ={    I_PRED_16x16_V, I_PRED_16x16_H, I_PRED_16x16_DC, I_PRED_16x16_P,    I_PRED_16x16_DC,I_PRED_16x16_DC,I_PRED_16x16_DC};enum intra4x4_pred_e{    I_PRED_4x4_V  = 0,    I_PRED_4x4_H  = 1,    I_PRED_4x4_DC = 2,    I_PRED_4x4_DDL= 3,    I_PRED_4x4_DDR= 4,    I_PRED_4x4_VR = 5,    I_PRED_4x4_HD = 6,    I_PRED_4x4_VL = 7,    I_PRED_4x4_HU = 8,    I_PRED_4x4_DC_LEFT = 9,    I_PRED_4x4_DC_TOP  = 10,    I_PRED_4x4_DC_128  = 11,};static const int x264_mb_pred_mode4x4_fix[12] ={    I_PRED_4x4_V,   I_PRED_4x4_H,   I_PRED_4x4_DC,    I_PRED_4x4_DDL, I_PRED_4x4_DDR, I_PRED_4x4_VR,    I_PRED_4x4_HD,  I_PRED_4x4_VL,  I_PRED_4x4_HU,    I_PRED_4x4_DC,  I_PRED_4x4_DC,  I_PRED_4x4_DC};void x264_predict_16x16_init ( int cpu, x264_predict_t pf[7] );void x264_predict_8x8_init   ( int cpu, x264_predict_t pf[7] );void x264_predict_4x4_init   ( int cpu, x264_predict_t pf[12] );#endif

⌨️ 快捷键说明

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