Fix avx2 chroma sampling for amp

This commit is contained in:
Ari Lemmetti 2016-05-17 14:09:57 +03:00
parent 70ce01dd54
commit 3107a93eaf
2 changed files with 7 additions and 0 deletions

View file

@ -35,6 +35,7 @@
#include "strategies/strategies-ipol.h"
#include "strategyselector.h"
#include "strategies/strategies-common.h"
#include "strategies/generic/ipol-generic.h"
#define FILTER_OFFSET 3
@ -566,6 +567,11 @@ void kvz_filter_inter_octpel_chroma_avx2(const encoder_control_t * const encoder
void kvz_sample_octpel_chroma_avx2(const encoder_control_t * const encoder, kvz_pixel *src, int16_t src_stride, int width, int height,kvz_pixel *dst, int16_t dst_stride, int8_t hor_flag, int8_t ver_flag, const int16_t mv[2])
{
//Check for amp
if (width != height) {
kvz_sample_octpel_chroma_generic(encoder, src, src_stride, width, height, dst, dst_stride, hor_flag, ver_flag, mv);
return;
}
//TODO: horizontal and vertical only filtering
int32_t x, y;
int16_t shift1 = KVZ_BIT_DEPTH - 8;

View file

@ -31,6 +31,7 @@
#include "kvazaar.h"
int kvz_strategy_register_ipol_generic(void* opaque, uint8_t bitdepth);
void kvz_sample_octpel_chroma_generic(const encoder_control_t * const encoder, kvz_pixel *src, int16_t src_stride, int width, int height, kvz_pixel *dst, int16_t dst_stride, int8_t hor_flag, int8_t ver_flag, const int16_t mv[2]);
#endif //STRATEGIES_IPOL_GENERIC_H_