Commit e2ffaf88 authored by Jingning Han's avatar Jingning Han
Browse files

Add 2x4 and 4x2 variance functions

Change-Id: Ic2fbc66e9212da32930c6a8ba1a749e3a37c5b9a
parent bf9c6b76
...@@ -1592,6 +1592,12 @@ specialize qw/aom_get4x4sse_cs neon msa/; ...@@ -1592,6 +1592,12 @@ specialize qw/aom_get4x4sse_cs neon msa/;
add_proto qw/unsigned int/, "aom_variance2x2", "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"; add_proto qw/unsigned int/, "aom_variance2x2", "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
specialize qw/aom_variance2x2/; specialize qw/aom_variance2x2/;
add_proto qw/unsigned int/, "aom_variance2x4", "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
specialize qw/aom_variance2x4/;
add_proto qw/unsigned int/, "aom_variance4x2", "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
specialize qw/aom_variance4x2/;
foreach (@block_sizes) { foreach (@block_sizes) {
($w, $h) = @$_; ($w, $h) = @$_;
add_proto qw/unsigned int/, "aom_variance${w}x${h}", "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"; add_proto qw/unsigned int/, "aom_variance${w}x${h}", "const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse";
......
...@@ -233,6 +233,8 @@ VARIANCES(8, 8) ...@@ -233,6 +233,8 @@ VARIANCES(8, 8)
VARIANCES(8, 4) VARIANCES(8, 4)
VARIANCES(4, 8) VARIANCES(4, 8)
VARIANCES(4, 4) VARIANCES(4, 4)
VARIANCES(4, 2)
VARIANCES(2, 4)
VARIANCES(2, 2) VARIANCES(2, 2)
GET_VAR(16, 16) GET_VAR(16, 16)
......
...@@ -2298,6 +2298,8 @@ AV1_COMP *av1_create_compressor(AV1EncoderConfig *oxcf, ...@@ -2298,6 +2298,8 @@ AV1_COMP *av1_create_compressor(AV1EncoderConfig *oxcf,
#if CONFIG_CB4X4 #if CONFIG_CB4X4
BFP(BLOCK_2X2, NULL, NULL, aom_variance2x2, NULL, NULL, NULL, NULL, NULL) BFP(BLOCK_2X2, NULL, NULL, aom_variance2x2, NULL, NULL, NULL, NULL, NULL)
BFP(BLOCK_2X4, NULL, NULL, aom_variance2x4, NULL, NULL, NULL, NULL, NULL)
BFP(BLOCK_4X2, NULL, NULL, aom_variance4x2, NULL, NULL, NULL, NULL, NULL)
#endif #endif
#if CONFIG_MOTION_VAR #if CONFIG_MOTION_VAR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment