]> git.sesse.net Git - ffmpeg/blob - libavcodec/hevcpred.h
avfilter/vf_identity: fix typo
[ffmpeg] / libavcodec / hevcpred.h
1 /*
2  * HEVC video Decoder
3  *
4  * Copyright (C) 2012 - 2013 Guillaume Martres
5  *
6  * This file is part of FFmpeg.
7  *
8  * FFmpeg is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * FFmpeg is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with FFmpeg; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22
23 #ifndef AVCODEC_HEVCPRED_H
24 #define AVCODEC_HEVCPRED_H
25
26 #include <stddef.h>
27 #include <stdint.h>
28
29 struct HEVCContext;
30
31 typedef struct HEVCPredContext {
32     void (*intra_pred[4])(struct HEVCContext *s, int x0, int y0, int c_idx);
33
34     void (*pred_planar[4])(uint8_t *src, const uint8_t *top,
35                            const uint8_t *left, ptrdiff_t stride);
36     void (*pred_dc)(uint8_t *src, const uint8_t *top, const uint8_t *left,
37                     ptrdiff_t stride, int log2_size, int c_idx);
38     void (*pred_angular[4])(uint8_t *src, const uint8_t *top,
39                             const uint8_t *left, ptrdiff_t stride,
40                             int c_idx, int mode);
41 } HEVCPredContext;
42
43 void ff_hevc_pred_init(HEVCPredContext *hpc, int bit_depth);
44 void ff_hevc_pred_init_mips(HEVCPredContext *hpc, int bit_depth);
45
46 #endif /* AVCODEC_HEVCPRED_H */