Mercurial > libavcodec.hg
comparison rv34.c @ 6481:493dc59d469a libavcodec
add FF_ prefix to all (frame)_TYPE usage
author | aurel |
---|---|
date | Sun, 09 Mar 2008 23:31:02 +0000 |
parents | b5702c981fe2 |
children | 48759bfbd073 |
comparison
equal
deleted
inserted
replaced
6480:6f01a499e785 | 6481:493dc59d469a |
---|---|
689 case RV34_MB_TYPE_INTRA: | 689 case RV34_MB_TYPE_INTRA: |
690 case RV34_MB_TYPE_INTRA16x16: | 690 case RV34_MB_TYPE_INTRA16x16: |
691 fill_rectangle(s->current_picture_ptr->motion_val[0][s->mb_x * 2 + s->mb_y * 2 * s->b8_stride], 2, 2, s->b8_stride, 0, 4); | 691 fill_rectangle(s->current_picture_ptr->motion_val[0][s->mb_x * 2 + s->mb_y * 2 * s->b8_stride], 2, 2, s->b8_stride, 0, 4); |
692 return 0; | 692 return 0; |
693 case RV34_MB_SKIP: | 693 case RV34_MB_SKIP: |
694 if(s->pict_type == P_TYPE){ | 694 if(s->pict_type == FF_P_TYPE){ |
695 fill_rectangle(s->current_picture_ptr->motion_val[0][s->mb_x * 2 + s->mb_y * 2 * s->b8_stride], 2, 2, s->b8_stride, 0, 4); | 695 fill_rectangle(s->current_picture_ptr->motion_val[0][s->mb_x * 2 + s->mb_y * 2 * s->b8_stride], 2, 2, s->b8_stride, 0, 4); |
696 rv34_mc_1mv (r, block_type, 0, 0, 0, 2, 2, 0); | 696 rv34_mc_1mv (r, block_type, 0, 0, 0, 2, 2, 0); |
697 break; | 697 break; |
698 } | 698 } |
699 case RV34_MB_B_DIRECT: | 699 case RV34_MB_B_DIRECT: |
912 if(r->block_type == -1) | 912 if(r->block_type == -1) |
913 return -1; | 913 return -1; |
914 s->current_picture_ptr->mb_type[mb_pos] = rv34_mb_type_to_lavc[r->block_type]; | 914 s->current_picture_ptr->mb_type[mb_pos] = rv34_mb_type_to_lavc[r->block_type]; |
915 r->mb_type[mb_pos] = r->block_type; | 915 r->mb_type[mb_pos] = r->block_type; |
916 if(r->block_type == RV34_MB_SKIP){ | 916 if(r->block_type == RV34_MB_SKIP){ |
917 if(s->pict_type == P_TYPE) | 917 if(s->pict_type == FF_P_TYPE) |
918 r->mb_type[mb_pos] = RV34_MB_P_16x16; | 918 r->mb_type[mb_pos] = RV34_MB_P_16x16; |
919 if(s->pict_type == B_TYPE) | 919 if(s->pict_type == FF_B_TYPE) |
920 r->mb_type[mb_pos] = RV34_MB_B_DIRECT; | 920 r->mb_type[mb_pos] = RV34_MB_B_DIRECT; |
921 } | 921 } |
922 r->is16 = !!IS_INTRA16x16(s->current_picture_ptr->mb_type[mb_pos]); | 922 r->is16 = !!IS_INTRA16x16(s->current_picture_ptr->mb_type[mb_pos]); |
923 rv34_decode_mv(r, r->block_type); | 923 rv34_decode_mv(r, r->block_type); |
924 if(r->block_type == RV34_MB_SKIP){ | 924 if(r->block_type == RV34_MB_SKIP){ |
1105 r->intra_types = r->intra_types_hist + s->b4_stride * 4; | 1105 r->intra_types = r->intra_types_hist + s->b4_stride * 4; |
1106 r->mb_type = av_realloc(r->mb_type, r->s.mb_stride * r->s.mb_height * sizeof(*r->mb_type)); | 1106 r->mb_type = av_realloc(r->mb_type, r->s.mb_stride * r->s.mb_height * sizeof(*r->mb_type)); |
1107 r->cbp_luma = av_realloc(r->cbp_luma, r->s.mb_stride * r->s.mb_height * sizeof(*r->cbp_luma)); | 1107 r->cbp_luma = av_realloc(r->cbp_luma, r->s.mb_stride * r->s.mb_height * sizeof(*r->cbp_luma)); |
1108 r->cbp_chroma = av_realloc(r->cbp_chroma, r->s.mb_stride * r->s.mb_height * sizeof(*r->cbp_chroma)); | 1108 r->cbp_chroma = av_realloc(r->cbp_chroma, r->s.mb_stride * r->s.mb_height * sizeof(*r->cbp_chroma)); |
1109 } | 1109 } |
1110 s->pict_type = r->si.type ? r->si.type : I_TYPE; | 1110 s->pict_type = r->si.type ? r->si.type : FF_I_TYPE; |
1111 if(MPV_frame_start(s, s->avctx) < 0) | 1111 if(MPV_frame_start(s, s->avctx) < 0) |
1112 return -1; | 1112 return -1; |
1113 ff_er_frame_start(s); | 1113 ff_er_frame_start(s); |
1114 s->current_picture_ptr = &s->current_picture; | 1114 s->current_picture_ptr = &s->current_picture; |
1115 s->mb_x = s->mb_y = 0; | 1115 s->mb_x = s->mb_y = 0; |
1268 if(last){ | 1268 if(last){ |
1269 if(r->loop_filter) | 1269 if(r->loop_filter) |
1270 r->loop_filter(r); | 1270 r->loop_filter(r); |
1271 ff_er_frame_end(s); | 1271 ff_er_frame_end(s); |
1272 MPV_frame_end(s); | 1272 MPV_frame_end(s); |
1273 if (s->pict_type == B_TYPE || s->low_delay) { | 1273 if (s->pict_type == FF_B_TYPE || s->low_delay) { |
1274 *pict= *(AVFrame*)s->current_picture_ptr; | 1274 *pict= *(AVFrame*)s->current_picture_ptr; |
1275 } else if (s->last_picture_ptr != NULL) { | 1275 } else if (s->last_picture_ptr != NULL) { |
1276 *pict= *(AVFrame*)s->last_picture_ptr; | 1276 *pict= *(AVFrame*)s->last_picture_ptr; |
1277 } | 1277 } |
1278 | 1278 |