libavcodec/h264pred.h

Go to the documentation of this file.
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 AVCODEC_H264PRED_H
00029 #define AVCODEC_H264PRED_H
00030 
00031 #include "libavutil/common.h"
00032 #include "dsputil.h"
00033 
00038 #define VERT_PRED 0
00039 #define HOR_PRED 1
00040 #define DC_PRED 2
00041 #define DIAG_DOWN_LEFT_PRED 3
00042 #define DIAG_DOWN_RIGHT_PRED 4
00043 #define VERT_RIGHT_PRED 5
00044 #define HOR_DOWN_PRED 6
00045 #define VERT_LEFT_PRED 7
00046 #define HOR_UP_PRED 8
00047 
00048 // DC edge (not for VP8)
00049 #define LEFT_DC_PRED 9
00050 #define TOP_DC_PRED 10
00051 #define DC_128_PRED 11
00052 
00053 // RV40 specific
00054 #define DIAG_DOWN_LEFT_PRED_RV40_NODOWN 12
00055 #define HOR_UP_PRED_RV40_NODOWN 13
00056 #define VERT_LEFT_PRED_RV40_NODOWN 14
00057 
00058 // VP8 specific
00059 #define TM_VP8_PRED 9 
00060 #define VERT_VP8_PRED 10 
00061 
00062 
00063 #define HOR_VP8_PRED 11 
00064 
00065 #define DC_127_PRED 12
00066 #define DC_129_PRED 13
00067 
00068 #define DC_PRED8x8 0
00069 #define HOR_PRED8x8 1
00070 #define VERT_PRED8x8 2
00071 #define PLANE_PRED8x8 3
00072 
00073 // DC edge
00074 #define LEFT_DC_PRED8x8 4
00075 #define TOP_DC_PRED8x8 5
00076 #define DC_128_PRED8x8 6
00077 
00078 // H264/SVQ3 (8x8) specific
00079 #define ALZHEIMER_DC_L0T_PRED8x8 7
00080 #define ALZHEIMER_DC_0LT_PRED8x8 8
00081 #define ALZHEIMER_DC_L00_PRED8x8 9
00082 #define ALZHEIMER_DC_0L0_PRED8x8 10
00083 
00084 // VP8 specific
00085 #define DC_127_PRED8x8 7
00086 #define DC_129_PRED8x8 8
00087 
00088 
00092 typedef struct H264PredContext{
00093 void (*pred4x4 [9+3+3])(uint8_t *src, const uint8_t *topright, int stride);//FIXME move to dsp?
00094 void (*pred8x8l [9+3])(uint8_t *src, int topleft, int topright, int stride);
00095 void (*pred8x8 [4+3+4])(uint8_t *src, int stride);
00096 void (*pred16x16[4+3+2])(uint8_t *src, int stride);
00097 
00098 void (*pred4x4_add [2])(uint8_t *pix/*align 4*/, const DCTELEM *block /*align 16*/, int stride);
00099 void (*pred8x8l_add [2])(uint8_t *pix/*align 8*/, const DCTELEM *block /*align 16*/, int stride);
00100 void (*pred8x8_add [3])(uint8_t *pix/*align 8*/, const int *block_offset, const DCTELEM *block /*align 16*/, int stride);
00101 void (*pred16x16_add[3])(uint8_t *pix/*align 16*/, const int *block_offset, const DCTELEM *block /*align 16*/, int stride);
00102 }H264PredContext;
00103 
00104 void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth);
00105 void ff_h264_pred_init_arm(H264PredContext *h, int codec_id, const int bit_depth);
00106 void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth);
00107 
00108 #endif /* AVCODEC_H264PRED_H */

Generated on Fri Oct 26 02:39:33 2012 for FFmpeg by doxygen 1.5.8

AltStyle によって変換されたページ (->オリジナル) /