comparison roqvideoenc.c @ 12024:fdafbcef52f5 libavcodec

Fix grammar errors in documentation
author mru
date Wed, 30 Jun 2010 15:38:06 +0000
parents 7dd2a45249a9
children
comparison
equal deleted inserted replaced
12023:c7455450364d 12024:fdafbcef52f5
163 enc->frame_to_enc->linesize, enc->last_frame->linesize, 163 enc->frame_to_enc->linesize, enc->last_frame->linesize,
164 size); 164 size);
165 } 165 }
166 166
167 /** 167 /**
168 * Returns distortion between two macroblocks 168 * @return distortion between two macroblocks
169 */ 169 */
170 static inline int squared_diff_macroblock(uint8_t a[], uint8_t b[], int size) 170 static inline int squared_diff_macroblock(uint8_t a[], uint8_t b[], int size)
171 { 171 {
172 int cp, sdiff=0; 172 int cp, sdiff=0;
173 173
238 int *closest_cb2; 238 int *closest_cb2;
239 int used_option[4]; 239 int used_option[4];
240 } RoqTempdata; 240 } RoqTempdata;
241 241
242 /** 242 /**
243 * Initializes cel evaluators and sets their source coordinates 243 * Initialize cel evaluators and set their source coordinates
244 */ 244 */
245 static void create_cel_evals(RoqContext *enc, RoqTempdata *tempData) 245 static void create_cel_evals(RoqContext *enc, RoqTempdata *tempData)
246 { 246 {
247 int n=0, x, y, i; 247 int n=0, x, y, i;
248 248
391 this_motion[offset] = bestpick; 391 this_motion[offset] = bestpick;
392 } 392 }
393 } 393 }
394 394
395 /** 395 /**
396 * Gets distortion for all options available to a subcel 396 * Get distortion for all options available to a subcel
397 */ 397 */
398 static void gather_data_for_subcel(SubcelEvaluation *subcel, int x, 398 static void gather_data_for_subcel(SubcelEvaluation *subcel, int x,
399 int y, RoqContext *enc, RoqTempdata *tempData) 399 int y, RoqContext *enc, RoqTempdata *tempData)
400 { 400 {
401 uint8_t mb4[4*4*3]; 401 uint8_t mb4[4*4*3];
455 enc->lambda*bitsUsed[i]; 455 enc->lambda*bitsUsed[i];
456 } 456 }
457 } 457 }
458 458
459 /** 459 /**
460 * Gets distortion for all options available to a cel 460 * Get distortion for all options available to a cel
461 */ 461 */
462 static void gather_data_for_cel(CelEvaluation *cel, RoqContext *enc, 462 static void gather_data_for_cel(CelEvaluation *cel, RoqContext *enc,
463 RoqTempdata *tempData) 463 RoqTempdata *tempData)
464 { 464 {
465 uint8_t mb8[8*8*3]; 465 uint8_t mb8[8*8*3];
771 *block++ = (u+2)/4; 771 *block++ = (u+2)/4;
772 *block++ = (v+2)/4; 772 *block++ = (v+2)/4;
773 } 773 }
774 774
775 /** 775 /**
776 * Creates YUV clusters for the entire image 776 * Create YUV clusters for the entire image
777 */ 777 */
778 static void create_clusters(AVFrame *frame, int w, int h, uint8_t *yuvClusters) 778 static void create_clusters(AVFrame *frame, int w, int h, uint8_t *yuvClusters)
779 { 779 {
780 int i, j, k, l; 780 int i, j, k, l;
781 781