mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-18 03:19:31 +02:00
6265b155bc
The HEVC decoder has both HEVCContext and HEVCLocalContext structures. The latter is supposed to be the structure containing the per-slicethread state. Yet that is not how it is handled in practice: Each HEVCLocalContext has a unique HEVCContext allocated for it and each of these coincides except in exactly one field: The corresponding HEVCLocalContext. This makes it possible to pass the HEVCContext everywhere where logically a HEVCLocalContext should be used. This commit stops doing this for lavc/hevcpred as well as the corresponding mips code; the latter is untested. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
47 lines
1.7 KiB
C
47 lines
1.7 KiB
C
/*
|
|
* HEVC video Decoder
|
|
*
|
|
* Copyright (C) 2012 - 2013 Guillaume Martres
|
|
*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef AVCODEC_HEVCPRED_H
|
|
#define AVCODEC_HEVCPRED_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
struct HEVCLocalContext;
|
|
|
|
typedef struct HEVCPredContext {
|
|
void (*intra_pred[4])(struct HEVCLocalContext *lc, int x0, int y0, int c_idx);
|
|
|
|
void (*pred_planar[4])(uint8_t *src, const uint8_t *top,
|
|
const uint8_t *left, ptrdiff_t stride);
|
|
void (*pred_dc)(uint8_t *src, const uint8_t *top, const uint8_t *left,
|
|
ptrdiff_t stride, int log2_size, int c_idx);
|
|
void (*pred_angular[4])(uint8_t *src, const uint8_t *top,
|
|
const uint8_t *left, ptrdiff_t stride,
|
|
int c_idx, int mode);
|
|
} HEVCPredContext;
|
|
|
|
void ff_hevc_pred_init(HEVCPredContext *hpc, int bit_depth);
|
|
void ff_hevc_pred_init_mips(HEVCPredContext *hpc, int bit_depth);
|
|
|
|
#endif /* AVCODEC_HEVCPRED_H */
|