Commit 55c208ed authored by Loren Merritt's avatar Loren Merritt

cosmetics (spelling)


git-svn-id: svn://svn.videolan.org/x264/trunk@563 df754926-b1dd-0310-bc7b-ec298dee348c
parent 8850b6fa
......@@ -34,7 +34,7 @@ static const int x264_cabac_context_init_I[460][2] =
{ 2, 54 }, { 3, 74 }, { -28,127 }, { -23, 104 },
{ -6, 53 }, { -1, 54 }, { 7, 51 },
/* 11 - 23 unsused for I */
/* 11 - 23 unused for I */
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
{ 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
......
......@@ -563,7 +563,7 @@ struct x264_t
} stat;
/* CPU functions dependants */
/* CPU functions dependents */
x264_predict_t predict_16x16[4+3];
x264_predict_t predict_8x8c[4+3];
x264_predict8x8_t predict_8x8[9+3];
......
......@@ -299,7 +299,7 @@ static int x264_mb_predict_mv_direct16x16_temporal( x264_t *h )
}
else
{
/* the colocated ref isn't in the current list0 */
/* the collocated ref isn't in the current list0 */
/* FIXME: we might still be able to use direct_8x8 on some partitions */
/* FIXME: with B-pyramid + extensive ref list reordering
* (not currently used), we would also have to check
......@@ -848,7 +848,7 @@ int x264_macroblock_cache_init( x264_t *h )
CHECKED_MALLOC( h->mb.mvr[i][j], 2 * i_mb_count * sizeof(int16_t) );
}
/* init with not avaiable (for top right idx=7,15) */
/* init with not available (for top right idx=7,15) */
memset( h->mb.cache.ref[0], -2, X264_SCAN8_SIZE * sizeof( int8_t ) );
memset( h->mb.cache.ref[1], -2, X264_SCAN8_SIZE * sizeof( int8_t ) );
......
......@@ -139,7 +139,7 @@ static void predict_16x16_p( uint8_t *src )
int V = 0;
int i00;
/* calcule H and V */
/* calculate H and V */
for( i = 0; i <= 7; i++ )
{
H += ( i + 1 ) * ( src[ 8 + i - FDEC_STRIDE ] - src[6 -i -FDEC_STRIDE] );
......
......@@ -204,7 +204,7 @@ void x264_quant_init( x264_t *h, int cpu, x264_quant_function_t *pf )
#ifdef HAVE_MMXEXT
/* determine the biggest coeffient in all quant8_mf tables */
/* determine the biggest coefficient in all quant8_mf tables */
for( i = 0; i < 2*6*8*8; i++ )
{
int q = h->quant8_mf[0][0][0][i];
......@@ -212,7 +212,7 @@ void x264_quant_init( x264_t *h, int cpu, x264_quant_function_t *pf )
maxQ8 = q;
}
/* determine the biggest coeffient in all quant4_mf tables ( maxQ4 )
/* determine the biggest coefficient in all quant4_mf tables ( maxQ4 )
and the biggest DC coefficient if all quant4_mf tables ( maxQdc ) */
for( i = 0; i < 4*6*4*4; i++ )
{
......
......@@ -308,7 +308,7 @@ static void predict_16x16_mode_available( unsigned int i_neighbour, int *mode, i
{
if( i_neighbour & MB_TOPLEFT )
{
/* top and left avaible */
/* top and left available */
*mode++ = I_PRED_16x16_V;
*mode++ = I_PRED_16x16_H;
*mode++ = I_PRED_16x16_DC;
......@@ -331,7 +331,7 @@ static void predict_16x16_mode_available( unsigned int i_neighbour, int *mode, i
}
else
{
/* none avaible */
/* none available */
*mode = I_PRED_16x16_DC_128;
*pi_count = 1;
}
......@@ -342,7 +342,7 @@ static void predict_8x8chroma_mode_available( unsigned int i_neighbour, int *mod
{
if( i_neighbour & MB_TOPLEFT )
{
/* top and left avaible */
/* top and left available */
*mode++ = I_PRED_CHROMA_V;
*mode++ = I_PRED_CHROMA_H;
*mode++ = I_PRED_CHROMA_DC;
......@@ -365,7 +365,7 @@ static void predict_8x8chroma_mode_available( unsigned int i_neighbour, int *mod
}
else
{
/* none avaible */
/* none available */
*mode = I_PRED_CHROMA_DC_128;
*pi_count = 1;
}
......
......@@ -1006,7 +1006,7 @@ static int x264_slice_write( x264_t *h )
x264_macroblock_analyse( h );
TIMER_STOP( i_mtime_analyse );
/* encode this macrobock -> be careful it can change the mb type to P_SKIP if needed */
/* encode this macroblock -> be careful it can change the mb type to P_SKIP if needed */
TIMER_START( i_mtime_encode );
x264_macroblock_encode( h );
TIMER_STOP( i_mtime_encode );
......@@ -1297,7 +1297,7 @@ do_encode:
}
/* ------------------- Setup frame context ----------------------------- */
/* 5: Init data dependant of frame type */
/* 5: Init data dependent of frame type */
TIMER_START( i_mtime_encode_frame );
if( h->fenc->i_type == X264_TYPE_IDR )
{
......
......@@ -301,7 +301,7 @@ void x264_sps_write( bs_t *s, x264_sps_t *sps )
}
else
{
bs_write( s, 8, 255); /* aspect_ratio_idc (extented) */
bs_write( s, 8, 255); /* aspect_ratio_idc (extended) */
bs_write( s, 16, sps->vui.i_sar_width );
bs_write( s, 16, sps->vui.i_sar_height );
}
......
......@@ -233,7 +233,7 @@ lowres_intra_mb:
fenc->i_intra_mbs[b-p0]++;
}
if( p1 > p0+1 )
i_bcost = i_bcost * 9 / 8; // arbitray penalty for I-blocks in and after B-frames
i_bcost = i_bcost * 9 / 8; // arbitrary penalty for I-blocks in and after B-frames
}
}
......
......@@ -251,7 +251,7 @@ typedef struct
float f_qblur; /* temporally blur quants */
float f_complexity_blur; /* temporally blur complexity */
x264_zone_t *zones; /* ratecontrol overrides */
int i_zones; /* sumber of zone_t's */
int i_zones; /* number of zone_t's */
char *psz_zones; /* alternate method of specifying zones */
} rc;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment