History

consistency cosmetics: indices --> indexes

Originally committed as revision 13444 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun committed 18 years ago

Commit f4433de1 parent 30bd40f15 files · +26 −26Browse files

Unified · Split

15 files
  1. libavcodec/acelp_vectors.h +1 −1
  2. libavcodec/cook.c +1 −1
  3. libavcodec/dnxhdenc.c +1 −1
  4. libavcodec/h264.c +1 −1
  5. libavcodec/qdm2.c +2 −2
  6. libavcodec/qtrle.c +4 −4
  7. libavcodec/vc1.c +2 −2
  8. libavcodec/vp3.c +7 −7
  9. libavcodec/vqavideo.c +1 −1
  10. libavfilter/avfilter.h +1 −1
  11. libavformat/avidec.c +1 −1
  12. libavformat/ipmovie.c +1 −1
  13. libavformat/nsvdec.c +1 −1
  14. libavformat/rl2.c +1 −1
  15. libavformat/rmenc.c +1 −1
libavcodec/acelp_vectors.h+1−1
@@ -105,7 +105,7 @@ extern const uint8_t ff_fc_2pulses_9bits_track2_gray[32]; · 104 unmodified lines
105105 * \param fc_v [out] decoded fixed codebook vector (2.13)
106106 * \param tab1 table used for first pulse_count pulses
107107 * \param tab2 table used for last pulse
108− * \param pulse_indices fixed codebook indeces
108+ * \param pulse_indices fixed codebook indexes
109109 * \param pulse_signs signs of the excitation pulses (0 bit value
110110 * means negative sign)
111111 * \param bits number of bits per one pulse index
libavcodec/cook.c+1−1
@@ -349,7 +349,7 @@ static int cook_decode_close(AVCodecContext *avctx) · 348 unmodified lines
349349 * Fill the gain array for the timedomain quantization.
350350 *
351351 * @param q pointer to the COOKContext
352− * @param gaininfo[9] array of gain indices
352+ * @param gaininfo[9] array of gain indexes
353353 */
354354
355355 static void decode_gain_info(GetBitContext *gb, int *gaininfo)
libavcodec/dnxhdenc.c+1−1
@@ -47,7 +47,7 @@ typedef struct DNXHDEncContext { · 46 unmodified lines
4747 AVFrame frame;
4848 int cid;
4949 const CIDEntry *cid_table;
50− uint8_t *msip; ///< Macroblock Scan Indices Payload
50+ uint8_t *msip; ///< Macroblock Scan Indexes Payload
5151 uint32_t *slice_size;
5252
5353 struct DNXHDEncContext *thread[MAX_THREADS];
libavcodec/h264.c+1−1
@@ -6505,7 +6505,7 @@ static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8 · 6504 unmodified lines
65056505 int dir;
65066506 /* FIXME: A given frame may occupy more than one position in
65076507 * the reference list. So ref2frm should be populated with
6508− * frame numbers, not indices. */
6508+ * frame numbers, not indexes. */
65096509 static const int ref2frm[34] = {-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
65106510 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
65116511
libavcodec/qdm2.c+2−2
@@ -1431,7 +1431,7 @@ static void qdm2_decode_fft_packets (QDM2Context *q) · 1430 unmodified lines
14311431 if (q->sub_packet_list_B[0].packet == NULL)
14321432 return;
14331433
1434− /* reset minimum indices for FFT coefficients */
1434+ /* reset minimum indexes for FFT coefficients */
14351435 q->fft_coefs_index = 0;
14361436 for (i=0; i < 5; i++)
14371437 q->fft_coefs_min_index[i] = -1;
@@ -1481,7 +1481,7 @@ static void qdm2_decode_fft_packets (QDM2Context *q) · 43 unmodified lines
14811481 }
14821482 } // Loop on B packets
14831483
1484− /* calculate maximum indices for FFT coefficients */
1484+ /* calculate maximum indexes for FFT coefficients */
14851485 for (i = 0, j = -1; i < 5; i++)
14861486 if (q->fft_coefs_min_index[i] >= 0) {
14871487 if (j >= 0)
libavcodec/qtrle.c+4−4
@@ -79,7 +79,7 @@ static void qtrle_decode_4bpp(QtrleContext *s) · 78 unmodified lines
7979 int rle_code;
8080 int row_ptr, pixel_ptr;
8181 int row_inc = s->frame.linesize[0];
82− unsigned char pi1, pi2, pi3, pi4, pi5, pi6, pi7, pi8; /* 8 palette indices */
82+ unsigned char pi1, pi2, pi3, pi4, pi5, pi6, pi7, pi8; /* 8 palette indexes */
8383 unsigned char *rgb = s->frame.data[0];
8484 int pixel_limit = s->frame.linesize[0] * s->avctx->height;
8585
@@ -122,7 +122,7 @@ static void qtrle_decode_4bpp(QtrleContext *s) · 36 unmodified lines
122122 /* decode the run length code */
123123 rle_code = -rle_code;
124124 /* get the next 4 bytes from the stream, treat them as palette
125− * indices, and output them rle_code times */
125+ * indexes, and output them rle_code times */
126126 CHECK_STREAM_PTR(4);
127127 pi1 = ((s->buf[stream_ptr]) >> 4) & 0x0f;
128128 pi2 = (s->buf[stream_ptr++]) & 0x0f;
@@ -170,7 +170,7 @@ static void qtrle_decode_8bpp(QtrleContext *s) · 41 unmodified lines
170170 int rle_code;
171171 int row_ptr, pixel_ptr;
172172 int row_inc = s->frame.linesize[0];
173− unsigned char pi1, pi2, pi3, pi4; /* 4 palette indices */
173+ unsigned char pi1, pi2, pi3, pi4; /* 4 palette indexes */
174174 unsigned char *rgb = s->frame.data[0];
175175 int pixel_limit = s->frame.linesize[0] * s->avctx->height;
176176
@@ -213,7 +213,7 @@ static void qtrle_decode_8bpp(QtrleContext *s) · 36 unmodified lines
213213 /* decode the run length code */
214214 rle_code = -rle_code;
215215 /* get the next 4 bytes from the stream, treat them as palette
216− * indices, and output them rle_code times */
216+ * indexes, and output them rle_code times */
217217 CHECK_STREAM_PTR(4);
218218 pi1 = s->buf[stream_ptr++];
219219 pi2 = s->buf[stream_ptr++];
libavcodec/vc1.c+2−2
@@ -3017,7 +3017,7 @@ static int vc1_decode_p_mb(VC1Context *v) · 3016 unmodified lines
30173017 offset_table[6] = { 0, 1, 3, 7, 15, 31 };
30183018 int mb_has_coeffs = 1; /* last_flag */
30193019 int dmv_x, dmv_y; /* Differential MV components */
3020− int index, index1; /* LUT indices */
3020+ int index, index1; /* LUT indexes */
30213021 int val, sign; /* temp values */
30223022 int first_block = 1;
30233023 int dst_idx, off;
@@ -3246,7 +3246,7 @@ static void vc1_decode_b_mb(VC1Context *v) · 222 unmodified lines
32463246 static const int size_table[6] = { 0, 2, 3, 4, 5, 8 },
32473247 offset_table[6] = { 0, 1, 3, 7, 15, 31 };
32483248 int mb_has_coeffs = 0; /* last_flag */
3249− int index, index1; /* LUT indices */
3249+ int index, index1; /* LUT indexes */
32503250 int val, sign; /* temp values */
32513251 int first_block = 1;
32523252 int dst_idx, off;
libavcodec/vp3.c+7−7
@@ -269,7 +269,7 @@ typedef struct Vp3DecodeContext { · 268 unmodified lines
269269 uint8_t qr_size [2][3][64];
270270 uint16_t qr_base[2][3][64];
271271
272− /* this is a list of indices into the all_fragments array indicating
272+ /* this is a list of indexes into the all_fragments array indicating
273273 * which of the fragments are coded */
274274 int *coded_fragment_list;
275275 int coded_fragment_list_index;
@@ -291,19 +291,19 @@ typedef struct Vp3DecodeContext { · 15 unmodified lines
291291 DECLARE_ALIGNED_16(int16_t, qmat[2][4][64]); //<qmat[is_inter][plane]
292292
293293 /* This table contains superblock_count * 16 entries. Each set of 16
294− * numbers corresponds to the fragment indices 0..15 of the superblock.
294+ * numbers corresponds to the fragment indexes 0..15 of the superblock.
295295 * An entry will be -1 to indicate that no entry corresponds to that
296296 * index. */
297297 int *superblock_fragments;
298298
299299 /* This table contains superblock_count * 4 entries. Each set of 4
300− * numbers corresponds to the macroblock indices 0..3 of the superblock.
300+ * numbers corresponds to the macroblock indexes 0..3 of the superblock.
301301 * An entry will be -1 to indicate that no entry corresponds to that
302302 * index. */
303303 int *superblock_macroblocks;
304304
305305 /* This table contains macroblock_count * 6 entries. Each set of 6
306− * numbers corresponds to the fragment indices 0..5 which comprise
306+ * numbers corresponds to the fragment indexes 0..5 which comprise
307307 * the macroblock (4 Y fragments and 2 C fragments). */
308308 int *macroblock_fragments;
309309 /* This is an array that indicates how a particular macroblock
@@ -1223,7 +1223,7 @@ static int unpack_dct_coeffs(Vp3DecodeContext *s, GetBitContext *gb) · 913 unmodified lines
12231223 int ac_c_table;
12241224 int residual_eob_run = 0;
12251225
1226− /* fetch the DC table indices */
1226+ /* fetch the DC table indexes */
12271227 dc_y_table = get_bits(gb, 4);
12281228 dc_c_table = get_bits(gb, 4);
12291229
@@ -1239,7 +1239,7 @@ static int unpack_dct_coeffs(Vp3DecodeContext *s, GetBitContext *gb) · 9 unmodified lines
12391239 residual_eob_run = unpack_vlcs(s, gb, &s->dc_vlc[dc_c_table], 0,
12401240 s->first_coded_c_fragment, s->last_coded_c_fragment, residual_eob_run);
12411241
1242− /* fetch the AC table indices */
1242+ /* fetch the AC table indexes */
12431243 ac_y_table = get_bits(gb, 4);
12441244 ac_c_table = get_bits(gb, 4);
12451245
@@ -1331,7 +1331,7 @@ static void reverse_dc_prediction(Vp3DecodeContext *s, · 85 unmodified lines
13311331 /* DC values for the left, up-left, up, and up-right fragments */
13321332 int vl, vul, vu, vur;
13331333
1334− /* indices for the left, up-left, up, and up-right fragments */
1334+ /* indexes for the left, up-left, up, and up-right fragments */
13351335 int l, ul, u, ur;
13361336
13371337 /*
libavcodec/vqavideo.c+1−1
@@ -54,7 +54,7 @@ · 53 unmodified lines
5454 * file. This is an interesting technique, although it makes random file
5555 * seeking difficult despite the fact that the frames are all intracoded.
5656 *
57− * V1,2 VQA uses 12-bit codebook indices. If the 12-bit indices were
57+ * V1,2 VQA uses 12-bit codebook indexes. If the 12-bit indexes were
5858 * packed into bytes and then RLE compressed, bytewise, the results would
5959 * be poor. That is why the coding method divides each index into 2 parts,
6060 * the top 4 bits and the bottom 8 bits, then RL encodes the 4-bit pieces
libavfilter/avfilter.h+1−1
@@ -421,7 +421,7 @@ struct AVFilterContext · 420 unmodified lines
421421
422422 /**
423423 * A link between two filters. This contains pointers to the source and
424− * destination filters between which this link exists, and the indices of
424+ * destination filters between which this link exists, and the indexes of
425425 * the pads involved. In addition, this link also contains the parameters
426426 * which have been negotiated and agreed upon between the filter, such as
427427 * image dimensions, format, etc
libavformat/avidec.c+1−1
@@ -996,7 +996,7 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp · 995 unmodified lines
996996
997997 if (ENABLE_DV_DEMUXER && avi->dv_demux) {
998998 /* One and only one real stream for DV in AVI, and it has video */
999− /* offsets. Calling with other stream indices should have failed */
999+ /* offsets. Calling with other stream indexes should have failed */
10001000 /* the av_index_search_timestamp call above. */
10011001 assert(stream_index == 0);
10021002
libavformat/ipmovie.c+1−1
@@ -446,7 +446,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, ByteIOContext *pb, · 445 unmodified lines
446446 last_color = first_color + AV_RL16(&scratch[2]) - 1;
447447 /* sanity check (since they are 16 bit values) */
448448 if ((first_color > 0xFF) || (last_color > 0xFF)) {
449− debug_ipmovie("demux_ipmovie: set_palette indices out of range (%d -> %d)\n",
449+ debug_ipmovie("demux_ipmovie: set_palette indexes out of range (%d -> %d)\n",
450450 first_color, last_color);
451451 chunk_type = CHUNK_BAD;
452452 break;
libavformat/nsvdec.c+1−1
@@ -140,7 +140,7 @@ struct nsv_pcm_header { · 139 unmodified lines
140140 #define TB_NSVF MKBETAG('N', 'S', 'V', 'f')
141141 #define TB_NSVS MKBETAG('N', 'S', 'V', 's')
142142
143−/* hardcoded stream indices */
143+/* hardcoded stream indexes */
144144 #define NSV_ST_VIDEO 0
145145 #define NSV_ST_AUDIO 1
146146 #define NSV_ST_SUBT 2
libavformat/rl2.c+1−1
@@ -42,7 +42,7 @@ · 41 unmodified lines
4242 #define RLV3_TAG MKBETAG('R', 'L', 'V', '3')
4343
4444 typedef struct Rl2DemuxContext {
45− unsigned int index_pos[2]; ///< indices in the sample tables
45+ unsigned int index_pos[2]; ///< indexes in the sample tables
4646 } Rl2DemuxContext;
4747
4848
libavformat/rmenc.c+1−1
@@ -408,7 +408,7 @@ static int rm_write_trailer(AVFormatContext *s) · 407 unmodified lines
408408 put_be16(pb, 0);
409409
410410 for(i=0;i<s->nb_streams;i++) {
411− put_be32(pb, 0); /* zero indices */
411+ put_be32(pb, 0); /* zero indexes */
412412 put_be16(pb, i); /* stream number */
413413 put_be32(pb, 0); /* next index */
414414 }

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