Fix spelling errors and typos in comments
These changes were suggested by James Zern.
Also change TODO(any) added by Ittiam engineers to TODO(yunqingwang).
Change-Id: I3e34ec3aaa602cda5695d60b5c4ad47c0c39db92
diff --git a/aom_dsp/arm/variance_neon.c b/aom_dsp/arm/variance_neon.c
index 7007600..e840f13 100644
--- a/aom_dsp/arm/variance_neon.c
+++ b/aom_dsp/arm/variance_neon.c
@@ -56,7 +56,8 @@
variance_neon_w8(a, a_stride, b, b_stride, 16, 16, sse, sum);
}
-// TODO(any) : Perform variance of two/four 8x8 blocks simlar to that of AVX2.
+// TODO(yunqingwang): Perform variance of two/four 8x8 blocks similar to that of
+// AVX2.
void aom_get_sse_sum_8x8_quad_neon(const uint8_t *a, int a_stride,
const uint8_t *b, int b_stride,
unsigned int *sse, int *sum) {
diff --git a/aom_dsp/x86/variance_avx2.c b/aom_dsp/x86/variance_avx2.c
index 23555f8..7398a73 100644
--- a/aom_dsp/x86/variance_avx2.c
+++ b/aom_dsp/x86/variance_avx2.c
@@ -717,7 +717,7 @@
(__m128i *)sse,
_mm_shuffle_epi32(_mm256_castsi256_si128(sse_result_3), 0xd8));
- // Add sum registers appropriately to get each 8x8 block sum separetely.
+ // Add sum registers appropriately to get each 8x8 block sum separately.
sum_final_256bit_avx2(sum_8x16, sum);
}
diff --git a/av1/encoder/global_motion_facade.c b/av1/encoder/global_motion_facade.c
index 27dbbd7..8237b46 100644
--- a/av1/encoder/global_motion_facade.c
+++ b/av1/encoder/global_motion_facade.c
@@ -263,7 +263,7 @@
// valid_gm_model_found is initialized to INT32_MAX in the beginning of
// every GF group.
// Therefore, GM param estimation is always done for all frames until
- // atleast 1 frame each of ARF_UPDATE, INTNL_ARF_UPDATE and LF_UPDATE are
+ // at least 1 frame each of ARF_UPDATE, INTNL_ARF_UPDATE and LF_UPDATE are
// encoded in a GF group For subsequent frames, GM param estimation is
// disabled, if no valid models have been found in all the three update
// types.
@@ -417,7 +417,7 @@
sizeof(gm_info->reference_frames[1][0]), compare_distance);
gm_info->num_src_corners = -1;
- // If atleast one valid reference frame exists in past/future directions,
+ // If at least one valid reference frame exists in past/future directions,
// compute interest points of source frame using FAST features.
if (gm_info->num_ref_frames[0] > 0 || gm_info->num_ref_frames[1] > 0) {
gm_info->num_src_corners = av1_fast_corner_detect(
diff --git a/av1/encoder/nonrd_pickmode.c b/av1/encoder/nonrd_pickmode.c
index 9c0e859..77f5389 100644
--- a/av1/encoder/nonrd_pickmode.c
+++ b/av1/encoder/nonrd_pickmode.c
@@ -466,7 +466,7 @@
// This function is called for block sizes >= BLOCK_32x32. As per the design
// the aom_get_sse_sum_8x8_quad() processes four 8x8 blocks (in a 8x32) per
- // call. Hence the width and height of the block need to be atleast 8 and 32
+ // call. Hence the width and height of the block need to be at least 8 and 32
// samples respectively.
assert(w >= 32);
assert(h >= 8);
@@ -3091,7 +3091,7 @@
if (!txfm_info->skip_txfm) {
// For inter modes: copy blk_skip from best_pickmode, which is
// defined for 8x8 blocks. If palette or intra mode was selected
- // as best then blk_sip is already copied into the ctx.
+ // as best then blk_skip is already copied into the ctx.
if (best_pickmode.best_mode >= INTRA_MODE_END)
memcpy(ctx->blk_skip, best_pickmode.blk_skip,
sizeof(best_pickmode.blk_skip[0]) * num_8x8_blocks);
diff --git a/av1/encoder/partition_search.c b/av1/encoder/partition_search.c
index 7e08c12..1817b8f 100644
--- a/av1/encoder/partition_search.c
+++ b/av1/encoder/partition_search.c
@@ -2496,8 +2496,8 @@
pick_sb_modes_nonrd(cpi, tile_data, x, mi_row + y_idx,
mi_col + x_idx, &block_rdc, subsize,
pc_tree->split[i]->none);
- // TODO(any): The rate here did not include th cost of signaling
- // PARTITION_NONE token in the sub-blocks.
+ // TODO(yunqingwang): The rate here did not include the cost of
+ // signaling PARTITION_NONE token in the sub-blocks.
split_rdc.rate += block_rdc.rate;
split_rdc.dist += block_rdc.dist;
diff --git a/av1/encoder/pass2_strategy.h b/av1/encoder/pass2_strategy.h
index 6fa1da4..c54b8c4 100644
--- a/av1/encoder/pass2_strategy.h
+++ b/av1/encoder/pass2_strategy.h
@@ -136,8 +136,8 @@
int project_gfu_boost);
// Identify stable and unstable regions from first pass stats.
-// Stats_start points to the first frame to analyze.
-// Offset is the offset from the current frame to the frame stats_start is
+// stats_start points to the first frame to analyze.
+// |offset| is the offset from the current frame to the frame stats_start is
// pointing to.
void av1_identify_regions(const FIRSTPASS_STATS *const stats_start,
int total_frames, int offset, REGIONS *regions,
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index c3ce02c..5a18695 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -1757,7 +1757,7 @@
AOMMIN(MAX_REF_MV_SEARCH, mbmi_ext->ref_mv_count[ref_frame_type]);
if (ref_mv_count == 0) return 0;
- // If ref mv list has atleast one nearest candidate do not prune NEARESTMV
+ // If ref mv list has at least one nearest candidate do not prune NEARESTMV
if (this_mode == NEARESTMV && ref_mv_weight[0] >= REF_CAT_LEVEL) return 0;
// Count number of ref mvs populated from nearest candidates
diff --git a/av1/encoder/var_based_part.c b/av1/encoder/var_based_part.c
index c5b5d44..f18e338 100644
--- a/av1/encoder/var_based_part.c
+++ b/av1/encoder/var_based_part.c
@@ -241,7 +241,7 @@
}
#if CONFIG_AV1_HIGHBITDEPTH
-// TODO(any) : Perform average of four 8x8 blocks simlar to lowbd
+// TODO(yunqingwang): Perform average of four 8x8 blocks similar to lowbd
static AOM_INLINE void fill_variance_8x8avg_highbd(
const uint8_t *s, int sp, const uint8_t *d, int dp, int x16_idx,
int y16_idx, VP16x16 *vst, int pixels_wide, int pixels_high,
diff --git a/test/ratectrl_qmode_test.cc b/test/ratectrl_qmode_test.cc
index 4804b90..2def531 100644
--- a/test/ratectrl_qmode_test.cc
+++ b/test/ratectrl_qmode_test.cc
@@ -15,6 +15,7 @@
#include "av1/ratectrl_qmode.h"
#include "third_party/googletest/src/googletest/include/gtest/gtest.h"
+
namespace aom {
void test_gop_display_order(const GopStruct &gop_struct) {