comparison h261.c @ 2792:0a8c847ad5e7 libavcodec

skip_idct skip_frame skip_loop_filter
author michael
date Thu, 14 Jul 2005 21:39:36 +0000
parents ef44d24680d1
children ef2149182f1c
comparison
equal deleted inserted replaced
2791:f191093dc8fe 2792:0a8c847ad5e7
968 s->current_picture.pict_type= s->pict_type; 968 s->current_picture.pict_type= s->pict_type;
969 s->current_picture.key_frame= s->pict_type == I_TYPE; 969 s->current_picture.key_frame= s->pict_type == I_TYPE;
970 970
971 /* skip everything if we are in a hurry>=5 */ 971 /* skip everything if we are in a hurry>=5 */
972 if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size); 972 if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size);
973 if( (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==B_TYPE)
974 ||(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=I_TYPE)
975 || avctx->skip_frame >= AVDISCARD_ALL)
976 return get_consumed_bytes(s, buf_size);
973 977
974 if(MPV_frame_start(s, avctx) < 0) 978 if(MPV_frame_start(s, avctx) < 0)
975 return -1; 979 return -1;
976 980
977 ff_er_frame_start(s); 981 ff_er_frame_start(s);