00001 /* 00002 * H.26L/H.264/AVC/JVT/14496-10/... encoder/decoder 00003 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at> 00004 * 00005 * This file is part of FFmpeg. 00006 * 00007 * FFmpeg is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * FFmpeg is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with FFmpeg; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00028 #ifndef FFMPEG_H264PRED_H 00029 #define FFMPEG_H264PRED_H 00030 00031 #include "common.h" 00032 00037 #define VERT_PRED 0 00038 #define HOR_PRED 1 00039 #define DC_PRED 2 00040 #define DIAG_DOWN_LEFT_PRED 3 00041 #define DIAG_DOWN_RIGHT_PRED 4 00042 #define VERT_RIGHT_PRED 5 00043 #define HOR_DOWN_PRED 6 00044 #define VERT_LEFT_PRED 7 00045 #define HOR_UP_PRED 8 00046 00047 #define LEFT_DC_PRED 9 00048 #define TOP_DC_PRED 10 00049 #define DC_128_PRED 11 00050 00051 #define DIAG_DOWN_LEFT_PRED_RV40_NODOWN 12 00052 #define HOR_UP_PRED_RV40_NODOWN 13 00053 #define VERT_LEFT_PRED_RV40_NODOWN 14 00054 00055 #define DC_PRED8x8 0 00056 #define HOR_PRED8x8 1 00057 #define VERT_PRED8x8 2 00058 #define PLANE_PRED8x8 3 00059 00060 #define LEFT_DC_PRED8x8 4 00061 #define TOP_DC_PRED8x8 5 00062 #define DC_128_PRED8x8 6 00063 00064 00068 typedef struct H264PredContext{ 00069 void (*pred4x4 [9+3+3])(uint8_t *src, uint8_t *topright, int stride);//FIXME move to dsp? 00070 void (*pred8x8l [9+3])(uint8_t *src, int topleft, int topright, int stride); 00071 void (*pred8x8 [4+3])(uint8_t *src, int stride); 00072 void (*pred16x16[4+3])(uint8_t *src, int stride); 00073 }H264PredContext; 00074 00075 void ff_h264_pred_init(H264PredContext *h, int codec_id); 00076 00077 #endif /* FFMPEG_H264PRED_H */