Enable SIMD of av1_apply_temporal_filter() for 422 format This CL enables the SIMD of av1_apply_temporal_filter() for 422 format and TF_BLOCK_SIZE=64x64. Change-Id: I90adce5dbf38f30ab6a2d73e7b0c78ebcdfc2ee7
diff --git a/av1/encoder/temporal_filter.c b/av1/encoder/temporal_filter.c index 1dbb5bc..183077c 100644 --- a/av1/encoder/temporal_filter.c +++ b/av1/encoder/temporal_filter.c
@@ -1061,6 +1061,7 @@ const GF_GROUP *gf_group = &cpi->ppi->gf_group; const FRAME_TYPE frame_type = gf_group->frame_type[cpi->gf_frame_index]; +#if CONFIG_AV1_HIGHBITDEPTH // Determine whether the video is with `YUV 4:2:2` format, since the avx2/sse2 // function only supports square block size. We will use C function instead // for videos with `YUV 4:2:2` format. @@ -1071,6 +1072,7 @@ break; } } +#endif // Do filtering. FRAME_DIFF *diff = &td->tf_data.diff; @@ -1173,8 +1175,7 @@ #endif // CONFIG_AV1_HIGHBITDEPTH } else { // for 8-bit - if (!is_yuv422_format && TF_BLOCK_SIZE == BLOCK_64X64 && - TF_WINDOW_LENGTH == 5) { + if (TF_BLOCK_SIZE == BLOCK_64X64 && TF_WINDOW_LENGTH == 5) { av1_apply_temporal_filter( frame_to_filter, mbd, block_size, mb_row, mb_col, num_planes, noise_levels, subblock_mvs, subblock_mses, q_factor,