2013-09-19 07:35:34 +00:00
|
|
|
#ifndef INTRA_H_
|
|
|
|
#define INTRA_H_
|
2014-01-24 10:37:15 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* This file is part of Kvazaar HEVC encoder.
|
2014-02-21 13:00:20 +00:00
|
|
|
*
|
2015-02-23 11:18:48 +00:00
|
|
|
* Copyright (C) 2013-2015 Tampere University of Technology and others (see
|
2014-01-24 10:37:15 +00:00
|
|
|
* COPYING file).
|
|
|
|
*
|
2015-02-23 11:18:48 +00:00
|
|
|
* Kvazaar 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.
|
2014-01-24 10:37:15 +00:00
|
|
|
*
|
2015-02-23 11:18:48 +00:00
|
|
|
* Kvazaar 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.
|
2014-01-24 10:37:15 +00:00
|
|
|
*
|
2015-02-23 11:18:48 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with Kvazaar. If not, see <http://www.gnu.org/licenses/>.
|
2014-01-24 10:37:15 +00:00
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/*
|
2013-09-18 14:29:30 +00:00
|
|
|
* \file
|
|
|
|
* \brief Handling Coding Units (CU's) for intra frames.
|
2012-06-11 15:43:29 +00:00
|
|
|
*/
|
|
|
|
|
2013-09-18 09:16:03 +00:00
|
|
|
#include "global.h"
|
|
|
|
|
2014-06-05 12:54:58 +00:00
|
|
|
#include "image.h"
|
2014-02-26 12:57:57 +00:00
|
|
|
#include "encoder.h"
|
2014-06-03 11:51:30 +00:00
|
|
|
#include "encoderstate.h"
|
2013-09-18 09:16:03 +00:00
|
|
|
|
2014-06-05 12:54:58 +00:00
|
|
|
//void intra_set_block_mode(image* im,uint32_t x_ctb, uint32_t y_ctb, uint8_t depth, uint8_t mode, uint8_t part_mode);
|
2013-03-13 13:56:43 +00:00
|
|
|
|
2014-02-26 12:57:57 +00:00
|
|
|
int8_t intra_get_dir_luma_predictor(uint32_t x, uint32_t y, int8_t* preds,
|
2015-03-04 11:15:45 +00:00
|
|
|
const cu_info_t* cur_cu, const cu_info_t* left_cu, const cu_info_t* above_cu);
|
2015-06-30 08:43:48 +00:00
|
|
|
void intra_dc_pred_filtering(const kvz_pixel* src, int32_t src_stride, kvz_pixel* dst, int32_t dst_stride, int32_t width, int32_t height );
|
2013-03-13 13:56:43 +00:00
|
|
|
|
2015-06-30 08:43:48 +00:00
|
|
|
void intra_build_reference_border(const encoder_control_t *encoder, int32_t x_luma, int32_t y_luma, int16_t out_width, kvz_pixel *dst, int32_t dst_stride, int8_t chroma, int32_t pic_width, int32_t pic_height, lcu_t *lcu);
|
|
|
|
void intra_filter(kvz_pixel* ref, int32_t stride, int32_t width, int8_t mode);
|
2013-03-14 15:55:06 +00:00
|
|
|
|
2013-03-13 13:56:43 +00:00
|
|
|
/* Predictions */
|
2015-06-30 08:43:48 +00:00
|
|
|
void intra_get_pred(const encoder_control_t * const encoder, const kvz_pixel *rec, const kvz_pixel *rec_filtered, int recstride, kvz_pixel *dst, int width, int mode, int is_chroma);
|
2013-03-13 13:56:43 +00:00
|
|
|
|
2015-06-30 08:43:48 +00:00
|
|
|
kvz_pixel intra_get_dc_pred(const kvz_pixel* pic, uint16_t pic_width, uint8_t width);
|
|
|
|
void intra_get_planar_pred(const kvz_pixel* src,int32_t srcstride, uint32_t width, kvz_pixel* dst, int32_t dststride);
|
|
|
|
void intra_get_angular_pred(const encoder_control_t *encoder, const kvz_pixel* src, int32_t src_stride, kvz_pixel* dst, int32_t dst_stride, int32_t width, int32_t dir_mode, int8_t filter);
|
2013-03-13 13:56:43 +00:00
|
|
|
|
2015-06-30 08:43:48 +00:00
|
|
|
void intra_recon(const encoder_control_t *encoder, kvz_pixel* rec, int32_t rec_stride, uint32_t width, kvz_pixel* dst, int32_t dst_stride, int8_t mode, int8_t chroma);
|
2014-02-26 12:57:57 +00:00
|
|
|
|
2015-03-04 15:00:23 +00:00
|
|
|
void intra_recon_lcu_luma(encoder_state_t *state, int x, int y, int depth, int8_t intra_mode, cu_info_t *cur_cu, lcu_t *lcu);
|
|
|
|
void intra_recon_lcu_chroma(encoder_state_t *state, int x, int y, int depth, int8_t intra_mode, cu_info_t *cur_cu, lcu_t *lcu);
|
2013-02-24 14:03:40 +00:00
|
|
|
|
2012-06-11 15:43:29 +00:00
|
|
|
#endif
|