• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching defs:block_type

69 static int rv34_decode_mv(RV34DecContext *r, int block_type);
366 r->block_type = RV34_MB_TYPE_INTRA16x16;
376 r->block_type = RV34_MB_TYPE_INTRA;
398 r->block_type = r->decode_mb_info(r);
399 if(r->block_type == -1)
401 s->current_picture_ptr->f.mb_type[mb_pos] = rv34_mb_type_to_lavc[r->block_type];
402 r->mb_type[mb_pos] = r->block_type;
403 if(r->block_type == RV34_MB_SKIP){
410 rv34_decode_mv(r, r->block_type);
411 if(r->block_type == RV34_MB_SKIP){
468 static void rv34_pred_mv(RV34DecContext *r, int block_type, int subblock_no, int dmv_no)
476 int c_off = part_sizes_w[block_type];
509 for(j = 0; j < part_sizes_h[block_type]; j++){
510 for(i = 0; i < part_sizes_w[block_type]; i++){
552 static void rv34_pred_mv_b(RV34DecContext *r, int block_type, int dir)
599 if(block_type == RV34_MB_B_BACKWARD || block_type == RV34_MB_B_FORWARD){
607 static void rv34_pred_mv_rv3(RV34DecContext *r, int block_type, int dir)
659 * @param block_type type of the current block
670 static inline void rv34_mc(RV34DecContext *r, const int block_type,
756 if(block_type == RV34_MB_P_16x8){
760 }else if(block_type == RV34_MB_P_8x16){
765 is16x16 = (block_type != RV34_MB_P_8x8) && (block_type != RV34_MB_P_16x8) && (block_type != RV34_MB_P_8x16);
771 static void rv34_mc_1mv(RV34DecContext *r, const int block_type,
775 rv34_mc(r, block_type, xoff, yoff, mv_off, width, height, dir, r->rv30, 0,
802 static void rv34_mc_2mv(RV34DecContext *r, const int block_type)
804 int weighted = !r->rv30 && block_type != RV34_MB_B_BIDIR && r->weight1 != 8192;
806 rv34_mc(r, block_type, 0, 0, 0, 2, 2, 0, r->rv30, weighted,
810 rv34_mc(r, block_type, 0, 0, 0, 2, 2, 1, r->rv30, 0,
814 rv34_mc(r, block_type, 0, 0, 0, 2, 2, 1, r->rv30, 1,
848 static int rv34_decode_mv(RV34DecContext *r, int block_type)
857 for(i = 0; i < num_mvs[block_type]; i++){
861 switch(block_type){
869 rv34_mc_1mv (r, block_type, 0, 0, 0, 2, 2, 0);
889 rv34_mc_2mv(r, block_type);
896 rv34_pred_mv(r, block_type, 0, 0);
897 rv34_mc_1mv (r, block_type, 0, 0, 0, 2, 2, 0);
904 rv34_pred_mv_rv3(r, block_type, block_type == RV34_MB_B_BACKWARD);
906 rv34_pred_mv_b (r, block_type, block_type == RV34_MB_B_BACKWARD);
907 rv34_mc_1mv (r, block_type, 0, 0, 0, 2, 2, block_type == RV34_MB_B_BACKWARD);
911 rv34_pred_mv(r, block_type, 0, 0);
912 rv34_pred_mv(r, block_type, 1 + (block_type == RV34_MB_P_16x8), 1);
913 if(block_type == RV34_MB_P_16x8){
914 rv34_mc_1mv(r, block_type, 0, 0, 0, 2, 1, 0);
915 rv34_mc_1mv(r, block_type, 0, 8, s->b8_stride, 2, 1, 0);
917 if(block_type == RV34_MB_P_8x16){
918 rv34_mc_1mv(r, block_type, 0, 0, 0, 1, 2, 0);
919 rv34_mc_1mv(r, block_type, 8, 0, 1, 1, 2, 0);
923 rv34_pred_mv_b (r, block_type, 0);
924 rv34_pred_mv_b (r, block_type, 1);
925 rv34_mc_2mv (r, block_type);
929 rv34_pred_mv(r, block_type, i, i);
930 rv34_mc_1mv (r, block_type, (i&1)<<3, (i&2)<<2, (i&1)+(i>>1)*s->b8_stride, 1, 1, 0);