• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching defs:cel

45  * Maximum cost: 138 bits per cel
246 * Initialize cel evaluators and set their source coordinates
463 * Get distortion for all options available to a cel
465 static void gather_data_for_cel(CelEvaluation *cel, RoqContext *enc,
469 int index = cel->sourceY*enc->width/64 + cel->sourceX/8;
475 cel->motion = enc->this_motion8[index];
477 cel->eval_dist[RoQ_ID_FCC] =
478 eval_motion_dist(enc, cel->sourceX, cel->sourceY,
481 cel->eval_dist[RoQ_ID_FCC] = INT_MAX;
484 cel->eval_dist[RoQ_ID_MOT] = block_sse(enc->frame_to_enc->data,
486 cel->sourceX, cel->sourceY,
487 cel->sourceX, cel->sourceY,
491 cel->eval_dist[RoQ_ID_MOT] = INT_MAX;
493 get_frame_mb(enc->frame_to_enc, cel->sourceX, cel->sourceY, mb8, 8);
495 cel->eval_dist[RoQ_ID_SLD] =
497 tempData->codebooks.numCB4, &cel->cbEntry, 8);
499 gather_data_for_subcel(cel->subCels + 0, cel->sourceX+0, cel->sourceY+0, enc, tempData);
500 gather_data_for_subcel(cel->subCels + 1, cel->sourceX+4, cel->sourceY+0, enc, tempData);
501 gather_data_for_subcel(cel->subCels + 2, cel->sourceX+0, cel->sourceY+4, enc, tempData);
502 gather_data_for_subcel(cel->subCels + 3, cel->sourceX+4, cel->sourceY+4, enc, tempData);
504 cel->eval_dist[RoQ_ID_CCC] = 0;
507 cel->eval_dist[RoQ_ID_CCC] +=
508 cel->subCels[i].eval_dist[cel->subCels[i].best_coding];
509 divide_bit_use += cel->subCels[i].best_bit_use;
516 if (ROQ_LAMBDA_SCALE*cel->eval_dist[i] + enc->lambda*bitsUsed[i] <
518 cel->best_coding = i;
519 best_dist = ROQ_LAMBDA_SCALE*cel->eval_dist[i] +
523 tempData->used_option[cel->best_coding]++;
524 tempData->mainChunkSize += bitsUsed[cel->best_coding];
526 if (cel->best_coding == RoQ_ID_SLD)
527 tempData->codebooks.usedCB4[cel->cbEntry]++;
529 if (cel->best_coding == RoQ_ID_CCC)
531 if (cel->subCels[i].best_coding == RoQ_ID_SLD)
532 tempData->codebooks.usedCB4[cel->subCels[i].cbEntry]++;
533 else if (cel->subCels[i].best_coding == RoQ_ID_CCC)
535 tempData->codebooks.usedCB2[cel->subCels[i].subCels[j]]++;