2013-09-19 07:35:34 +00:00
|
|
|
#ifndef INTRA_H_
|
|
|
|
#define INTRA_H_
|
2012-06-11 15:43:29 +00:00
|
|
|
/**
|
2013-09-18 14:29:30 +00:00
|
|
|
* \file
|
|
|
|
* \brief Handling Coding Units (CU's) for intra frames.
|
|
|
|
*
|
|
|
|
* \author Marko Viitanen ( fador@iki.fi ),
|
|
|
|
* Tampere University of Technology,
|
|
|
|
* Department of Pervasive Computing.
|
|
|
|
* \author Ari Koivula ( ari@koivu.la ),
|
|
|
|
* Tampere University of Technology,
|
|
|
|
* Department of Pervasive Computing.
|
2012-06-11 15:43:29 +00:00
|
|
|
*/
|
|
|
|
|
2013-09-18 09:16:03 +00:00
|
|
|
#include "global.h"
|
|
|
|
|
|
|
|
#include "picture.h"
|
|
|
|
|
|
|
|
|
2013-09-18 12:07:43 +00:00
|
|
|
void intra_set_block_mode(picture* pic,uint32_t x_ctb, uint32_t y_ctb, uint8_t depth, uint8_t mode);
|
|
|
|
int8_t intra_get_block_mode(picture* pic, uint32_t x_ctb, uint32_t y_ctb, uint8_t depth);
|
2013-03-13 13:56:43 +00:00
|
|
|
|
2013-09-18 12:07:43 +00:00
|
|
|
int8_t intra_get_dir_luma_predictor(picture* pic,uint32_t x_ctb, uint32_t y_ctb, uint8_t depth, int8_t* preds);
|
|
|
|
void intra_dc_pred_filtering(int16_t* src, int32_t src_stride, int16_t* dst, int32_t dst_stride, int32_t width, int32_t height );
|
2013-03-13 13:56:43 +00:00
|
|
|
|
2013-09-18 12:07:43 +00:00
|
|
|
void intra_build_reference_border(picture* pic, int32_t x_ctb, int32_t y_ctb, int16_t out_width, int16_t* dst, int32_t dst_stride, int8_t chroma);
|
|
|
|
void intra_filter(int16_t* 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 */
|
2013-10-15 12:27:32 +00:00
|
|
|
int16_t intra_prediction(pixel* orig, int32_t orig_stride, int16_t* rec, int32_t rec_stride, uint32_t x_pos, uint32_t ypos, uint32_t width, int16_t* dst, int32_t dst_stride, uint32_t *sad);
|
2013-03-13 13:56:43 +00:00
|
|
|
|
2013-09-18 12:07:43 +00:00
|
|
|
int16_t intra_get_dc_pred(int16_t* pic, uint16_t pic_width, uint32_t x_pos, uint32_t y_pos, uint8_t width);
|
|
|
|
void intra_get_planar_pred(int16_t* src,int32_t srcstride, uint32_t xpos, uint32_t ypos,uint32_t width, int16_t* dst,int32_t dststride);
|
|
|
|
void intra_get_angular_pred(int16_t* src, int32_t src_stride, int16_t* p_dst, int32_t dst_stride, int32_t width, int32_t height, int32_t dir_mode, int8_t left_avail,int8_t top_avail, int8_t filter);
|
2013-03-13 13:56:43 +00:00
|
|
|
|
2013-09-18 12:07:43 +00:00
|
|
|
void intra_recon(int16_t* rec, uint32_t rec_stride, uint32_t x_pos, uint32_t y_pos, uint32_t width, int16_t* dst, int32_t dst_stride, int8_t mode, int8_t chroma);
|
2013-03-19 15:12:43 +00:00
|
|
|
|
2013-02-24 14:03:40 +00:00
|
|
|
|
2012-06-11 15:43:29 +00:00
|
|
|
#endif
|