mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Remove filter_deblock function, which is not used and somewhat dangerous, since it doesn't take into account specific stuff about subencoders.
This commit is contained in:
parent
bc3ca90bdf
commit
aac7fc55b1
33
src/filter.c
33
src/filter.c
|
@ -427,39 +427,6 @@ void filter_deblock_cu(encoder_state * const encoder_state, int32_t x, int32_t y
|
|||
filter_deblock_edge_chroma(encoder_state, x*(LCU_WIDTH >> (MAX_DEPTH + 1)), y*(LCU_WIDTH >> (MAX_DEPTH + 1)), depth, edge);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Main function for Deblocking filtering
|
||||
* \param encoder the encoder info structure
|
||||
*
|
||||
* This is the main function for deblocking filter, it will loop through all
|
||||
* the Largest Coding Units (LCU) and call filter_deblock_cu with absolute
|
||||
* X and Y coordinates of the LCU.
|
||||
*/
|
||||
void filter_deblock(encoder_state * const encoder_state)
|
||||
{
|
||||
const picture * const cur_pic = encoder_state->tile->cur_pic;
|
||||
int16_t x, y;
|
||||
|
||||
// TODO: Optimization: add thread for each LCU
|
||||
// Filter vertically.
|
||||
for (y = 0; y < cur_pic->height_in_lcu; y++)
|
||||
{
|
||||
for (x = 0; x < cur_pic->width_in_lcu; x++)
|
||||
{
|
||||
filter_deblock_cu(encoder_state, x << MAX_DEPTH, y << MAX_DEPTH, 0, EDGE_VER);
|
||||
}
|
||||
}
|
||||
|
||||
// Filter horizontally.
|
||||
for (y = 0; y < cur_pic->height_in_lcu; y++)
|
||||
{
|
||||
for (x = 0; x < cur_pic->width_in_lcu; x++)
|
||||
{
|
||||
filter_deblock_cu(encoder_state, x << MAX_DEPTH, y << MAX_DEPTH, 0, EDGE_HOR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Deblock a single LCU without using data from right or down.
|
||||
|
|
|
@ -40,7 +40,6 @@ void filter_deblock_edge_luma(encoder_state *encoder_state,
|
|||
void filter_deblock_edge_chroma(encoder_state *encoder_state,
|
||||
int32_t xpos, int32_t ypos,
|
||||
int8_t depth, int8_t dir);
|
||||
void filter_deblock(encoder_state *encoder_state);
|
||||
void filter_deblock_lcu(encoder_state *encoder_state, int x_px, int y_px);
|
||||
void filter_deblock_luma(const encoder_control * const encoder, pixel *src, int32_t offset, int32_t tc , int8_t sw,
|
||||
int8_t part_p_nofilter, int8_t part_q_nofilter,
|
||||
|
|
Loading…
Reference in a new issue