comparison xvmcvideo.c @ 6481:493dc59d469a libavcodec

add FF_ prefix to all (frame)_TYPE usage
author aurel
date Sun, 09 Mar 2008 23:31:02 +0000
parents fc98cdbe29b8
children ecbe9565dcae
comparison
equal deleted inserted replaced
6480:6f01a499e785 6481:493dc59d469a
88 88
89 render->p_future_surface = NULL; 89 render->p_future_surface = NULL;
90 render->p_past_surface = NULL; 90 render->p_past_surface = NULL;
91 91
92 switch(s->pict_type){ 92 switch(s->pict_type){
93 case I_TYPE: 93 case FF_I_TYPE:
94 return 0;// no prediction from other frames 94 return 0;// no prediction from other frames
95 case B_TYPE: 95 case FF_B_TYPE:
96 next = (xvmc_render_state_t*)s->next_picture.data[2]; 96 next = (xvmc_render_state_t*)s->next_picture.data[2];
97 assert(next!=NULL); 97 assert(next!=NULL);
98 assert(next->state & MP_XVMC_STATE_PREDICTION); 98 assert(next->state & MP_XVMC_STATE_PREDICTION);
99 if(next == NULL) return -1; 99 if(next == NULL) return -1;
100 if(next->magic != MP_XVMC_RENDER_MAGIC) return -1; 100 if(next->magic != MP_XVMC_RENDER_MAGIC) return -1;
101 render->p_future_surface = next->p_surface; 101 render->p_future_surface = next->p_surface;
102 //no return here, going to set forward prediction 102 //no return here, going to set forward prediction
103 case P_TYPE: 103 case FF_P_TYPE:
104 last = (xvmc_render_state_t*)s->last_picture.data[2]; 104 last = (xvmc_render_state_t*)s->last_picture.data[2];
105 if(last == NULL)// && !s->first_field) 105 if(last == NULL)// && !s->first_field)
106 last = render;//predict second field from the first 106 last = render;//predict second field from the first
107 if(last->magic != MP_XVMC_RENDER_MAGIC) return -1; 107 if(last->magic != MP_XVMC_RENDER_MAGIC) return -1;
108 assert(last->state & MP_XVMC_STATE_PREDICTION); 108 assert(last->state & MP_XVMC_STATE_PREDICTION);