00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
00049 #define LEFT_DC_PRED 9
00050 #define TOP_DC_PRED 10
00051 #define DC_128_PRED 11
00052
00053
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
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
00074 #define LEFT_DC_PRED8x8 4
00075 #define TOP_DC_PRED8x8 5
00076 #define DC_128_PRED8x8 6
00077
00078
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
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);
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, const DCTELEM *block, int stride);
00099 void (*pred8x8l_add [2])(uint8_t *pix, const DCTELEM *block, int stride);
00100 void (*pred8x8_add [3])(uint8_t *pix, const int *block_offset, const DCTELEM *block, int stride);
00101 void (*pred16x16_add[3])(uint8_t *pix, const int *block_offset, const DCTELEM *block, 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