/* * HEVC video decoder * * Copyright (C) 2012 - 2013 Guillaume Martres * Copyright (C) 2013 - 2014 Pierre-Edouard Lepere * * * 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_HEVCDSP_H #define AVCODEC_HEVCDSP_H #include "get_bits.h" #define MAX_PB_SIZE 64 #ifdef USE_VAR_BIT_DEPTH #define BIT_DEPTH_PARAM ,int bit_depth #define BIT_DEPTH_ARG , bit_depth #define BIT_DEPTH_ARG2(x) , x #else #define BIT_DEPTH_PARAM #define BIT_DEPTH_ARG #define BIT_DEPTH_ARG2(x) #endif typedef struct SAOParams { int offset_abs[3][4]; ///< sao_offset_abs int offset_sign[3][4]; ///< sao_offset_sign uint8_t band_position[3]; ///< sao_band_position int eo_class[3]; ///< sao_eo_class int16_t offset_val[3][5]; ///