Exemplo n.º 1
0
static void intra_stats_ctx_set_image(intra_stats_ctx *_this,const char *_name,
 int _nxblocks,int _nyblocks){
  _this->n++;
  intra_stats_reset(&_this->st_vp8);
  intra_stats_reset(&_this->st_od);
  image_data_init(&_this->img,_name,_nxblocks,_nyblocks);
#if WRITE_IMAGES
  image_files_init(&_this->files_vp8,_nxblocks,_nyblocks);
  image_files_init(&_this->files_od,_nxblocks,_nyblocks);
#endif
}
Exemplo n.º 2
0
static int stats_start(void *_ctx,const char *_name,
 const video_input_info *_info,int _pli,int _nxblocks,int _nyblocks){
  cfl_stats_ctx *ctx;
  ctx=(cfl_stats_ctx *)_ctx;
  ctx->curr_pli=_pli;
  image_data_init(&ctx->img[_pli],_name,B_SZ_LOG-(_pli!=0),_nxblocks,_nyblocks);
  if (_pli==0) {
    fprintf(stdout,"%s\n",_name);
    ctx->n++;
  }
  if (_pli>0) {
    intra_stats_reset(&ctx->st_fdp[_pli-1]);
    intra_stats_reset(&ctx->st_cfl[_pli-1]);
  }
  return EXIT_SUCCESS;
}