History

vp9_encoder.c,cosmetics: fix some typos

James Zern committed 6 years ago

Commit 468157d1 parent 64b469f1 file · +13 −13Browse files

Unified · Split

vp9/encoder/vp9_encoder.c+13−13
@@ -728,7 +728,7 @@ int vp9_set_roi_map(VP9_COMP *cpi, unsigned char *map, unsigned int rows, · 727 unmodified lines
728728 }
729729 CHECK_MEM_ERROR(cm, roi->roi_map, vpx_malloc(rows * cols));
730730
731− // Copy to ROI sturcture in the compressor.
731+ // Copy to ROI structure in the compressor.
732732 memcpy(roi->roi_map, map, rows * cols);
733733 memcpy(&roi->delta_q, delta_q, MAX_SEGMENTS * sizeof(delta_q[0]));
734734 memcpy(&roi->delta_lf, delta_lf, MAX_SEGMENTS * sizeof(delta_lf[0]));
@@ -4479,7 +4479,7 @@ static void encode_with_recode_loop(VP9_COMP *cpi, size_t *size, · 3744 unmodified lines
44794479 // Special case reset for qlow for constrained quality.
44804480 // This should only trigger where there is very substantial
44814481 // undershoot on a frame and the auto cq level is above
4482− // the user passsed in value.
4482+ // the user passed in value.
44834483 if (oxcf->rc_mode == VPX_CQ && q < q_low) {
44844484 q_low = q;
44854485 }
@@ -4692,7 +4692,7 @@ static int setup_interp_filter_search_mask(VP9_COMP *cpi) { · 206 unmodified lines
46924692 }
46934693
46944694 #ifdef ENABLE_KF_DENOISE
4695−// Baseline Kernal weights for denoise
4695+// Baseline kernel weights for denoise
46964696 static uint8_t dn_kernal_3[9] = { 1, 2, 1, 2, 4, 2, 1, 2, 1 };
46974697 static uint8_t dn_kernal_5[25] = { 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 4,
46984698 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1 };
@@ -4727,7 +4727,7 @@ static void spatial_denoise_point(uint8_t *src_ptr, const int stride, · 28 unmodified lines
47274727 tmp_ptr += stride;
47284728 }
47294729
4730− // Select the kernal size.
4730+ // Select the kernel size.
47314731 if (max_diff > (strength + (strength >> 1))) {
47324732 kernal_size = 3;
47334733 half_k_size = 1;
@@ -4735,7 +4735,7 @@ static void spatial_denoise_point(uint8_t *src_ptr, const int stride, · 1 unmodified line
47354735 }
47364736 kernal_ptr = (kernal_size == 3) ? dn_kernal_3 : dn_kernal_5;
47374737
4738− // Apply the kernal
4738+ // Apply the kernel
47394739 tmp_ptr = src_ptr - (stride * half_k_size) - half_k_size;
47404740 for (i = 0; i < kernal_size; ++i) {
47414741 for (j = 0; j < kernal_size; ++j) {
@@ -4772,7 +4772,7 @@ static void highbd_spatial_denoise_point(uint16_t *src_ptr, const int stride, · 30 unmodified lines
47724772 tmp_ptr += stride;
47734773 }
47744774
4775− // Select the kernal size.
4775+ // Select the kernel size.
47764776 if (max_diff > (strength + (strength >> 1))) {
47774777 kernal_size = 3;
47784778 half_k_size = 1;
@@ -4780,7 +4780,7 @@ static void highbd_spatial_denoise_point(uint16_t *src_ptr, const int stride, · 1 unmodified line
47804780 }
47814781 kernal_ptr = (kernal_size == 3) ? dn_kernal_3 : dn_kernal_5;
47824782
4783− // Apply the kernal
4783+ // Apply the kernel
47844784 tmp_ptr = src_ptr - (stride * half_k_size) - half_k_size;
47854785 for (i = 0; i < kernal_size; ++i) {
47864786 for (j = 0; j < kernal_size; ++j) {
@@ -4796,7 +4796,7 @@ static void highbd_spatial_denoise_point(uint16_t *src_ptr, const int stride, · 9 unmodified lines
47964796 }
47974797 #endif // CONFIG_VP9_HIGHBITDEPTH
47984798
4799−// Apply thresholded spatial noise supression to a given buffer.
4799+// Apply thresholded spatial noise suppression to a given buffer.
48004800 static void spatial_denoise_buffer(VP9_COMP *cpi, uint8_t *buffer,
48014801 const int stride, const int width,
48024802 const int height, const int strength) {
@@ -4821,7 +4821,7 @@ static void spatial_denoise_buffer(VP9_COMP *cpi, uint8_t *buffer, · 18 unmodified lines
48214821 }
48224822 }
48234823
4824−// Apply thresholded spatial noise supression to source.
4824+// Apply thresholded spatial noise suppression to source.
48254825 static void spatial_denoise_frame(VP9_COMP *cpi) {
48264826 YV12_BUFFER_CONFIG *src = cpi->Source;
48274827 const VP9EncoderConfig *const oxcf = &cpi->oxcf;
@@ -5924,7 +5924,7 @@ static uint32_t full_pixel_motion_search(VP9_COMP *cpi, ThreadData *td, · 1096 unmodified lines
59245924 int step_param;
59255925 uint32_t bestsme = UINT_MAX;
59265926 const MvLimits tmp_mv_limits = x->mv_limits;
5927− // lambda is used to adjust the importance of motion vector consitency.
5927+ // lambda is used to adjust the importance of motion vector consistency.
59285928 // TODO(angiebird): Figure out lambda's proper value.
59295929 const int lambda = cpi->tpl_stats[frame_idx].lambda;
59305930 int_mv nb_full_mvs[NB_MVS_NUM];
@@ -6645,7 +6645,7 @@ static void predict_mv_mode(VP9_COMP *cpi, MACROBLOCK *x, · 714 unmodified lines
66456645 assert(kMvPreCheckSize == (kMvPreCheckLines * (kMvPreCheckLines + 1)) >> 1);
66466646
66476647 // no new mv
6648− // diagnal scan order
6648+ // diagonal scan order
66496649 tmp_idx = 0;
66506650 for (idx = 0; idx < kMvPreCheckLines; ++idx) {
66516651 int r;
@@ -7414,9 +7414,9 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags, · 762 unmodified lines
74147414 // 1) twopass.gf_group.index is initialized at define_gf_group by vp9_zero()
74157415 // for the first frame in the gf_group and is updated for the next frame at
74167416 // vp9_twopass_postencode_update().
7417− // 2) cpi->Source is updated at the beginging of this function, i.e.
7417+ // 2) cpi->Source is updated at the beginning of this function, i.e.
74187418 // vp9_get_compressed_data()
7419− // 3) cm->new_fb_idx is updated at the beginging of this function by
7419+ // 3) cm->new_fb_idx is updated at the beginning of this function by
74207420 // get_free_fb(cm)
74217421 // TODO(angiebird): Improve the codebase to make the update of frame
74227422 // dependent variables more robust.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t