Beispiel #1
0
static void od_mode_block(void *_ctx,const unsigned char *_data,int _stride,
 int _bi,int _bj){
  intra_stats_ctx *ctx;
  od_coeff        *block;
  (void)_data;
  (void)_stride;
#if PRINT_PROGRESS
  if(_bi==0&&_bj==0){
    fprintf(stdout,"in od_mode_block\n");
  }
#endif
  ctx=(intra_stats_ctx *)_ctx;
  block=&ctx->img.fdct[ctx->img.fdct_stride*B_SZ*(_bj+1)+B_SZ*(_bi+1)];
  ctx->img.mode[ctx->img.nxblocks*_bj+_bi]=
   od_select_mode_satd(block,ctx->img.fdct_stride,NULL);
}
Beispiel #2
0
static void od_mode_block(void *_ctx,const unsigned char *_data,int _stride,
 int _bi,int _bj){
  intra_stats_ctx *ctx;
  od_coeff         block[5*B_SZ*B_SZ];
  (void)_data;
  (void)_stride;
#if PRINT_PROGRESS
  if(_bi==0&&_bj==0){
    fprintf(stdout,"in od_mode_block\n");
  }
#endif
  ctx=(intra_stats_ctx *)_ctx;
  image_data_load_block(&ctx->img,_bi,_bj,block);
  ctx->img.mode[ctx->img.nxblocks*_bj+_bi]=
   od_select_mode_satd(block,NULL,ctx->img.b_sz_log);
}
Beispiel #3
0
static void od_mode_block(void *_ctx,const unsigned char *_data,int _stride,
 int _bi,int _bj){
  cfl_stats_ctx *ctx;
  (void)_data;
  (void)_stride;
  ctx=(cfl_stats_ctx *)_ctx;
  if (ctx->curr_pli==0) {
    od_coeff block[5*B_SZ_MAX*B_SZ_MAX];
#if PRINT_PROGRESS
    if(_bi==0&&_bj==0){
      fprintf(stdout,"in od_mode_block\n");
    }
#endif
    image_data_load_block(&ctx->img[0],_bi,_bj,block);
    ctx->img[0].mode[ctx->img[0].nxblocks*_bj+_bi]=
     od_select_mode_satd(block,NULL,ctx->img[0].b_sz_log);
  }
}