mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fix avx2 chroma sampling for amp
This commit is contained in:
parent
70ce01dd54
commit
3107a93eaf
|
@ -35,6 +35,7 @@
|
||||||
#include "strategies/strategies-ipol.h"
|
#include "strategies/strategies-ipol.h"
|
||||||
#include "strategyselector.h"
|
#include "strategyselector.h"
|
||||||
#include "strategies/strategies-common.h"
|
#include "strategies/strategies-common.h"
|
||||||
|
#include "strategies/generic/ipol-generic.h"
|
||||||
|
|
||||||
|
|
||||||
#define FILTER_OFFSET 3
|
#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])
|
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
|
//TODO: horizontal and vertical only filtering
|
||||||
int32_t x, y;
|
int32_t x, y;
|
||||||
int16_t shift1 = KVZ_BIT_DEPTH - 8;
|
int16_t shift1 = KVZ_BIT_DEPTH - 8;
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include "kvazaar.h"
|
#include "kvazaar.h"
|
||||||
|
|
||||||
int kvz_strategy_register_ipol_generic(void* opaque, uint8_t bitdepth);
|
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_
|
#endif //STRATEGIES_IPOL_GENERIC_H_
|
||||||
|
|
Loading…
Reference in a new issue