Browse code

miscellaneous typo fixes

Diego Biurrun authored on 2013/05/05 04:18:13
Showing 12 changed files
... ...
@@ -479,7 +479,7 @@ version 0.5:
479 479
 - MXF demuxer
480 480
 - VC-1/WMV3/WMV9 video decoder
481 481
 - MacIntel support
482
-- AVISynth support
482
+- AviSynth support
483 483
 - VMware video decoder
484 484
 - VP5 video decoder
485 485
 - VP6 video decoder
... ...
@@ -847,7 +847,8 @@ static void video_audio_display(VideoState *s)
847 847
                 }
848 848
                 av_rdft_calc(s->rdft, data[ch]);
849 849
             }
850
-            // least efficient way to do this, we should of course directly access it but its more than fast enough
850
+            /* Least efficient way to do this, we should of course
851
+             * directly access it but it is more than fast enough. */
851 852
             for (y = 0; y < s->height; y++) {
852 853
                 double w = 1 / sqrt(nb_freq);
853 854
                 int a = sqrt(w * sqrt(data[0][2 * y + 0] * data[0][2 * y + 0] + data[0][2 * y + 1] * data[0][2 * y + 1]));
... ...
@@ -173,7 +173,7 @@ Individual component options:
173 173
   --disable-filters        disable all filters
174 174
 
175 175
 External library support:
176
-  --enable-avisynth        enable reading of AVISynth script files [no]
176
+  --enable-avisynth        enable reading of AviSynth script files [no]
177 177
   --enable-bzlib           enable bzlib [autodetect]
178 178
   --enable-frei0r          enable frei0r video filtering
179 179
   --enable-gnutls          enable gnutls [no]
... ...
@@ -202,8 +202,8 @@ Just create an "input.avs" text file with this single line ...
202 202
   avconv -i input.avs
203 203
 @end example
204 204
 
205
-For ANY other help on Avisynth, please visit the
206
-@uref{http://www.avisynth.org/, Avisynth homepage}.
205
+For ANY other help on AviSynth, please visit the
206
+@uref{http://www.avisynth.org/, AviSynth homepage}.
207 207
 
208 208
 @section How can I join video files?
209 209
 
... ...
@@ -157,7 +157,7 @@ typedef struct LongTermPrediction {
157 157
 typedef struct IndividualChannelStream {
158 158
     uint8_t max_sfb;            ///< number of scalefactor bands per group
159 159
     enum WindowSequence window_sequence[2];
160
-    uint8_t use_kb_window[2];   ///< If set, use Kaiser-Bessel window, otherwise use a sinus window.
160
+    uint8_t use_kb_window[2];   ///< If set, use Kaiser-Bessel window, otherwise use a sine window.
161 161
     int num_window_groups;
162 162
     uint8_t group_len[8];
163 163
     LongTermPrediction ltp;
... ...
@@ -230,7 +230,7 @@ static void memset_float(float *buf, float val, int size)
230 230
  * Evaluate a single LPC amplitude spectrum envelope coefficient from the line
231 231
  * spectrum pairs.
232 232
  *
233
- * @param lsp a vector of the cosinus of the LSP values
233
+ * @param lsp a vector of the cosine of the LSP values
234 234
  * @param cos_val cos(PI*i/N) where i is the index of the LPC amplitude
235 235
  * @param order the order of the LSP (and the size of the *lsp buffer). Must
236 236
  *        be a multiple of four.
... ...
@@ -302,9 +302,9 @@ static inline float get_cos(int idx, int part, const float *cos_tab, int size)
302 302
  * unexplained condition.
303 303
  *
304 304
  * @param step the size of a block "siiiibiiii"
305
- * @param in the cosinus of the LSP data
306
- * @param part is 0 for 0...PI (positive cossinus values) and 1 for PI...2PI
307
- *        (negative cossinus values)
305
+ * @param in the cosine of the LSP data
306
+ * @param part is 0 for 0...PI (positive cosine values) and 1 for PI...2PI
307
+ *        (negative cosine values)
308 308
  * @param size the size of the whole output
309 309
  */
310 310
 static inline void eval_lpcenv_or_interp(TwinContext *tctx,
... ...
@@ -304,7 +304,7 @@ av_cold int ff_wma_init(AVCodecContext *avctx, int flags2)
304 304
     }
305 305
 #endif
306 306
 
307
-    /* init MDCT windows : simple sinus window */
307
+    /* init MDCT windows : simple sine window */
308 308
     for (i = 0; i < s->nb_block_sizes; i++) {
309 309
         ff_init_ff_sine_windows(s->frame_len_bits - i);
310 310
         s->windows[i] = ff_sine_windows[s->frame_len_bits - i];
... ...
@@ -125,7 +125,7 @@ static VLC              vec4_vlc;         ///< 4 coefficients per symbol
125 125
 static VLC              vec2_vlc;         ///< 2 coefficients per symbol
126 126
 static VLC              vec1_vlc;         ///< 1 coefficient per symbol
127 127
 static VLC              coef_vlc[2];      ///< coefficient run length vlc codes
128
-static float            sin64[33];        ///< sinus table for decorrelation
128
+static float            sin64[33];        ///< sine table for decorrelation
129 129
 
130 130
 /**
131 131
  * @brief frame specific decoder context for a single channel
... ...
@@ -449,7 +449,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
449 449
                      1.0 / (1 << (WMAPRO_BLOCK_MIN_BITS + i - 1))
450 450
                      / (1 << (s->bits_per_sample - 1)));
451 451
 
452
-    /** init MDCT windows: simple sinus window */
452
+    /** init MDCT windows: simple sine window */
453 453
     for (i = 0; i < WMAPRO_BLOCK_SIZES; i++) {
454 454
         const int win_idx = WMAPRO_BLOCK_MAX_BITS - i;
455 455
         ff_init_ff_sine_windows(win_idx);
... ...
@@ -620,7 +620,7 @@ static void calc_input_response(WMAVoiceContext *s, float *lpcs,
620 620
     }
621 621
 
622 622
     /* calculate the Hilbert transform of the gains, which we do (since this
623
-     * is a sinus input) by doing a phase shift (in theory, H(sin())=cos()).
623
+     * is a sine input) by doing a phase shift (in theory, H(sin())=cos()).
624 624
      * Hilbert_Transform(RDFT(x)) = Laplace_Transform(x), which calculates the
625 625
      * "moment" of the LPCs in this filter. */
626 626
     s->dct.dct_calc(&s->dct, lpcs);
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- * AVISynth support
2
+ * AviSynth support
3 3
  * Copyright (c) 2006 DivX, Inc.
4 4
  *
5 5
  * This file is part of Libav.
... ...
@@ -32,29 +32,29 @@ typedef struct {
32 32
   DWORD read;
33 33
   LONG chunck_size;
34 34
   LONG chunck_samples;
35
-} AVISynthStream;
35
+} AviSynthStream;
36 36
 
37 37
 typedef struct {
38 38
   PAVIFILE file;
39 39
   AVISynthStream *streams;
40 40
   int nb_streams;
41 41
   int next_stream;
42
-} AVISynthContext;
42
+} AviSynthContext;
43 43
 
44 44
 static int avisynth_read_header(AVFormatContext *s)
45 45
 {
46
-  AVISynthContext *avs = s->priv_data;
46
+  AviSynthContext *avs = s->priv_data;
47 47
   HRESULT res;
48 48
   AVIFILEINFO info;
49 49
   DWORD id;
50 50
   AVStream *st;
51
-  AVISynthStream *stream;
51
+  AviSynthStream *stream;
52 52
   wchar_t filename_wchar[1024] = { 0 };
53 53
   char filename_char[1024] = { 0 };
54 54
 
55 55
   AVIFileInit();
56 56
 
57
-  /* avisynth can't accept UTF-8 filename */
57
+  /* AviSynth cannot accept UTF-8 file names. */
58 58
   MultiByteToWideChar(CP_UTF8, 0, s->filename, -1, filename_wchar, 1024);
59 59
   WideCharToMultiByte(CP_THREAD_ACP, 0, filename_wchar, -1, filename_char, 1024, NULL, NULL);
60 60
   res = AVIFileOpen(&avs->file, filename_char, OF_READ|OF_SHARE_DENY_WRITE, NULL);
... ...
@@ -73,7 +73,7 @@ static int avisynth_read_header(AVFormatContext *s)
73 73
       return -1;
74 74
     }
75 75
 
76
-  avs->streams = av_mallocz(info.dwStreams * sizeof(AVISynthStream));
76
+  avs->streams = av_mallocz(info.dwStreams * sizeof(AviSynthStream));
77 77
 
78 78
   for (id=0; id<info.dwStreams; id++)
79 79
     {
... ...
@@ -154,9 +154,9 @@ static int avisynth_read_header(AVFormatContext *s)
154 154
 
155 155
 static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt)
156 156
 {
157
-  AVISynthContext *avs = s->priv_data;
157
+  AviSynthContext *avs = s->priv_data;
158 158
   HRESULT res;
159
-  AVISynthStream *stream;
159
+  AviSynthStream *stream;
160 160
   int stream_id = avs->next_stream;
161 161
   LONG read_size;
162 162
 
... ...
@@ -188,7 +188,7 @@ static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt)
188 188
 
189 189
 static int avisynth_read_close(AVFormatContext *s)
190 190
 {
191
-  AVISynthContext *avs = s->priv_data;
191
+  AviSynthContext *avs = s->priv_data;
192 192
   int i;
193 193
 
194 194
   for (i=0;i<avs->nb_streams;i++)
... ...
@@ -204,7 +204,7 @@ static int avisynth_read_close(AVFormatContext *s)
204 204
 
205 205
 static int avisynth_read_seek(AVFormatContext *s, int stream_index, int64_t pts, int flags)
206 206
 {
207
-  AVISynthContext *avs = s->priv_data;
207
+  AviSynthContext *avs = s->priv_data;
208 208
   int stream_id;
209 209
 
210 210
   for (stream_id = 0; stream_id < avs->nb_streams; stream_id++)
... ...
@@ -217,8 +217,8 @@ static int avisynth_read_seek(AVFormatContext *s, int stream_index, int64_t pts,
217 217
 
218 218
 AVInputFormat ff_avisynth_demuxer = {
219 219
     .name           = "avisynth",
220
-    .long_name      = NULL_IF_CONFIG_SMALL("AVISynth"),
221
-    .priv_data_size = sizeof(AVISynthContext),
220
+    .long_name      = NULL_IF_CONFIG_SMALL("AviSynth"),
221
+    .priv_data_size = sizeof(AviSynthContext),
222 222
     .read_header    = avisynth_read_header,
223 223
     .read_packet    = avisynth_read_packet,
224 224
     .read_close     = avisynth_read_close,
... ...
@@ -91,7 +91,7 @@ static void audiogen(AVLFG *rnd, void **data, enum AVSampleFormat sample_fmt,
91 91
 
92 92
     k = 0;
93 93
 
94
-    /* 1 second of single freq sinus at 1000 Hz */
94
+    /* 1 second of single freq sine at 1000 Hz */
95 95
     a = 0;
96 96
     for (i = 0; i < 1 * sample_rate && k < nb_samples; i++, k++) {
97 97
         v = sin(a) * 0.30;
... ...
@@ -48,7 +48,7 @@ static unsigned int myrnd(unsigned int *seed_ptr, int n)
48 48
 
49 49
 #define COS_TABLE_BITS 7
50 50
 
51
-/* integer cosinus */
51
+/* integer cosine */
52 52
 static const unsigned short cos_table[(1 << COS_TABLE_BITS) + 2] = {
53 53
     0x8000, 0x7ffe, 0x7ff6, 0x7fea, 0x7fd9, 0x7fc2, 0x7fa7, 0x7f87,
54 54
     0x7f62, 0x7f38, 0x7f0a, 0x7ed6, 0x7e9d, 0x7e60, 0x7e1e, 0x7dd6,
... ...
@@ -180,7 +180,7 @@ int main(int argc, char **argv)
180 180
     if ((ext = strrchr(argv[1], '.')) != NULL && !strcmp(ext, ".wav"))
181 181
         put_wav_header(sample_rate, nb_channels, 6 * sample_rate);
182 182
 
183
-    /* 1 second of single freq sinus at 1000 Hz */
183
+    /* 1 second of single freq sine at 1000 Hz */
184 184
     a = 0;
185 185
     for (i = 0; i < 1 * sample_rate; i++) {
186 186
         v = (int_cos(a) * 10000) >> FRAC_BITS;