diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-10-02 16:28:58 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-10-02 16:28:58 +0000 |
commit | 910f02a05434bb6d8b946284c0da254a44707a83 (patch) | |
tree | 5a406a3892ace5cab3e071b32b6cad708577bd2f /libavcodec | |
parent | fb65d2ca84d79fb1c5a5708555c23e1d289b5c92 (diff) | |
download | ffmpeg-910f02a05434bb6d8b946284c0da254a44707a83.tar.gz |
spelling cosmetics
Originally committed as revision 15518 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dv.c | 10 | ||||
-rw-r--r-- | libavcodec/dvdata.h | 26 | ||||
-rw-r--r-- | libavcodec/msmpeg4data.c | 6 | ||||
-rw-r--r-- | libavcodec/msmpeg4data.h | 2 | ||||
-rw-r--r-- | libavcodec/rv10.c | 4 |
5 files changed, 24 insertions, 24 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 876e93fe64..1067d73ee4 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -284,7 +284,7 @@ static inline int put_bits_left(PutBitContext* s) return (s->buf_end - s->buf) * 8 - put_bits_count(s); } -/* decode ac coefs */ +/* decode ac coefficients */ static void dv_decode_ac(GetBitContext *gb, BlockInfo *mb, DCTELEM *block) { int last_index = gb->size_in_bits; @@ -493,7 +493,7 @@ static inline void dv_decode_video_segment(DVVideoContext *s, mb_y = v >> 8; /* We work with 720p frames split in half. The odd half-frame (chan==2,3) is displaced :-( */ if (s->sys->height == 720 && ((s->buf[1]>>2)&0x3) == 0) { - mb_y -= (mb_y>17)?18:-72; /* shifting the Y coordinate down by 72/2 macro blocks */ + mb_y -= (mb_y>17)?18:-72; /* shifting the Y coordinate down by 72/2 macroblocks */ } /* idct_put'ting luminance */ @@ -663,7 +663,7 @@ static av_always_inline void dv_set_class_number(DCTELEM* blk, EncBlockInfo* bi, method suggested in SMPTE 314M Table 22, and an improved method. The SMPTE method is very conservative; it assigns class 3 (i.e. severe quantization) to any block where the largest AC - component is greater than 36. ffmpeg's DV encoder tracks AC bit + component is greater than 36. FFmpeg's DV encoder tracks AC bit consumption precisely, so there is no need to bias most blocks towards strongly lossy compression. Instead, we assign class 2 to most blocks, and use class 3 only when strictly necessary @@ -671,7 +671,7 @@ static av_always_inline void dv_set_class_number(DCTELEM* blk, EncBlockInfo* bi, #if 0 /* SMPTE spec method */ static const int classes[] = {12, 24, 36, 0xffff}; -#else /* improved ffmpeg method */ +#else /* improved FFmpeg method */ static const int classes[] = {-1, -1, 255, 0xffff}; #endif int max=classes[0]; @@ -1176,7 +1176,7 @@ static void dv_format_frame(DVVideoContext* c, uint8_t* buf) buf += 77; /* audio control & shuffled PCM audio */ } buf += dv_write_dif_id(dv_sect_video, chan, i, j, buf); - buf += 77; /* 1 video macro block: 1 bytes control + buf += 77; /* 1 video macroblock: 1 bytes control 4 * 14 bytes Y 8x8 data 10 bytes Cr 8x8 data 10 bytes Cb 8x8 data */ diff --git a/libavcodec/dvdata.h b/libavcodec/dvdata.h index 6197b285a6..40206455f6 100644 --- a/libavcodec/dvdata.h +++ b/libavcodec/dvdata.h @@ -48,13 +48,13 @@ typedef struct DVprofile { int height; /* picture height in pixels */ int width; /* picture width in pixels */ AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */ - const uint16_t *video_place; /* positions of all DV macro blocks */ + const uint16_t *video_place; /* positions of all DV macroblocks */ enum PixelFormat pix_fmt; /* picture pixel format */ int bpm; /* blocks per macroblock */ const uint8_t *block_sizes; /* AC block sizes, in bits */ int audio_stride; /* size of audio_shuffle table */ - int audio_min_samples[3];/* min ammount of audio samples */ - /* for 48Khz, 44.1Khz and 32Khz */ + int audio_min_samples[3];/* min amount of audio samples */ + /* for 48kHz, 44.1kHz and 32kHz */ int audio_samples_dist[5];/* how many samples are supposed to be */ /* in each frame in a 5 frames window */ const uint8_t (*audio_shuffle)[9]; /* PCM shuffling table */ @@ -323,7 +323,7 @@ static const uint8_t dv100_qstep[16] = { 2, 3, 4, 5, 6, 7, 8, 16, 18, 20, 22, 24, 28, 52 }; -/* NOTE: I prefer hardcoding the positioning of dv blocks, it is +/* NOTE: I prefer hardcoding the positioning of DV blocks, it is simpler :-) */ static const uint16_t dv_place_420[1620] = { @@ -6175,7 +6175,7 @@ static const DVprofile dv_profiles[] = { .bpm = 6, .block_sizes = block_sizes_dv2550, .audio_stride = 90, - .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ .audio_shuffle = dv_audio_shuffle525, }, @@ -6195,7 +6195,7 @@ static const DVprofile dv_profiles[] = { .bpm = 6, .block_sizes = block_sizes_dv2550, .audio_stride = 108, - .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 }, .audio_shuffle = dv_audio_shuffle625, }, @@ -6215,7 +6215,7 @@ static const DVprofile dv_profiles[] = { .bpm = 6, .block_sizes = block_sizes_dv2550, .audio_stride = 108, - .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 }, .audio_shuffle = dv_audio_shuffle625, }, @@ -6235,7 +6235,7 @@ static const DVprofile dv_profiles[] = { .bpm = 6, .block_sizes = block_sizes_dv2550, .audio_stride = 90, - .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ .audio_shuffle = dv_audio_shuffle525, }, @@ -6255,7 +6255,7 @@ static const DVprofile dv_profiles[] = { .bpm = 6, .block_sizes = block_sizes_dv2550, .audio_stride = 108, - .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 }, .audio_shuffle = dv_audio_shuffle625, }, @@ -6275,7 +6275,7 @@ static const DVprofile dv_profiles[] = { .bpm = 8, .block_sizes = block_sizes_dv100, .audio_stride = 90, - .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ .audio_shuffle = dv_audio_shuffle525, }, @@ -6295,7 +6295,7 @@ static const DVprofile dv_profiles[] = { .bpm = 8, .block_sizes = block_sizes_dv100, .audio_stride = 108, - .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 }, .audio_shuffle = dv_audio_shuffle625, }, @@ -6315,7 +6315,7 @@ static const DVprofile dv_profiles[] = { .bpm = 8, .block_sizes = block_sizes_dv100, .audio_stride = 90, - .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ .audio_shuffle = dv_audio_shuffle525, }, @@ -6335,7 +6335,7 @@ static const DVprofile dv_profiles[] = { .bpm = 8, .block_sizes = block_sizes_dv100, .audio_stride = 90, - .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32Khz */ + .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */ .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */ .audio_shuffle = dv_audio_shuffle525, } diff --git a/libavcodec/msmpeg4data.c b/libavcodec/msmpeg4data.c index 2b6e670c3b..da899b544b 100644 --- a/libavcodec/msmpeg4data.c +++ b/libavcodec/msmpeg4data.c @@ -33,7 +33,7 @@ VLC ff_msmp4_mb_i_vlc; VLC ff_msmp4_dc_luma_vlc[2]; VLC ff_msmp4_dc_chroma_vlc[2]; -/* intra picture macro block coded block pattern */ +/* intra picture macroblock coded block pattern */ const uint16_t ff_msmp4_mb_i_table[64][2] = { { 0x1, 1 },{ 0x17, 6 },{ 0x9, 5 },{ 0x5, 5 }, { 0x6, 5 },{ 0x47, 9 },{ 0x20, 7 },{ 0x10, 7 }, @@ -53,7 +53,7 @@ const uint16_t ff_msmp4_mb_i_table[64][2] = { { 0xd, 8 },{ 0x713, 13 },{ 0x1da, 10 },{ 0x169, 10 }, }; -/* non intra picture macro block coded block pattern + mb type */ +/* non intra picture macroblock coded block pattern + mb type */ const uint32_t table_mb_non_intra[128][2] = { { 0x40, 7 },{ 0x13c9, 13 },{ 0x9fd, 12 },{ 0x1fc, 15 }, { 0x9fc, 12 },{ 0xa83, 18 },{ 0x12d34, 17 },{ 0x83bc, 16 }, @@ -304,7 +304,7 @@ static const int8_t table0_run[132] = { 23, 24, 25, 26, }; -/* vlc table 1, for intra chroma and P macro blocks */ +/* vlc table 1, for intra chroma and P macroblocks */ static const uint16_t table1_vlc[149][2] = { { 0x4, 3 },{ 0x14, 5 },{ 0x17, 7 },{ 0x7f, 8 }, diff --git a/libavcodec/msmpeg4data.h b/libavcodec/msmpeg4data.h index 5dc8846d70..45c589c268 100644 --- a/libavcodec/msmpeg4data.h +++ b/libavcodec/msmpeg4data.h @@ -49,7 +49,7 @@ extern VLC ff_msmp4_mb_i_vlc; extern VLC ff_msmp4_dc_luma_vlc[2]; extern VLC ff_msmp4_dc_chroma_vlc[2]; -/* intra picture macro block coded block pattern */ +/* intra picture macroblock coded block pattern */ extern const uint16_t ff_msmp4_mb_i_table[64][2]; extern const uint8_t cbpy_tab[16][2]; diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index 938e44694c..0c05147229 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -250,7 +250,7 @@ void rv10_encode_picture_header(MpegEncContext *s, int picture_number) /* specific MPEG like DC coding not used */ } /* if multiple packets per frame are sent, the position at which - to display the macro blocks is coded here */ + to display the macroblocks is coded here */ if(!full_frame){ put_bits(&s->pb, 6, 0); /* mb_x */ put_bits(&s->pb, 6, 0); /* mb_y */ @@ -352,7 +352,7 @@ static int rv10_decode_picture_header(MpegEncContext *s) } } /* if multiple packets per frame are sent, the position at which - to display the macro blocks is coded here */ + to display the macroblocks is coded here */ mb_xy= s->mb_x + s->mb_y*s->mb_width; if(show_bits(&s->gb, 12)==0 || (mb_xy && mb_xy < s->mb_num)){ |