Mercurial > libavcodec.hg
annotate xvmcvideo.c @ 1805:5dd5b2052f5b libavcodec
mpeg4 b frame + adaptive quantization assertion failure fix
author | michael |
---|---|
date | Sat, 14 Feb 2004 03:49:43 +0000 |
parents | 628bf341e099 |
children | 024752284c25 |
rev | line source |
---|---|
1392
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
1 /* |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
2 * XVideo Motion Compensation |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
3 * Copyright (c) 2003 Ivan Kalvachev |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
4 * |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
5 * This library is free software; you can redistribute it and/or |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
6 * modify it under the terms of the GNU Lesser General Public |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
7 * License as published by the Free Software Foundation; either |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
8 * version 2 of the License, or (at your option) any later version. |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
9 * |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
10 * This library is distributed in the hope that it will be useful, |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
13 * Lesser General Public License for more details. |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
14 * |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
15 * You should have received a copy of the GNU Lesser General Public |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
16 * License along with this library; if not, write to the Free Software |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
18 */ |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
19 |
1381 | 20 #include <limits.h> |
21 | |
22 //avcodec include | |
23 #include "avcodec.h" | |
24 #include "dsputil.h" | |
25 #include "mpegvideo.h" | |
26 | |
27 #undef NDEBUG | |
28 #include <assert.h> | |
29 | |
30 #ifdef USE_FASTMEMCPY | |
31 #include "fastmemcpy.h" | |
32 #endif | |
33 | |
34 #ifdef HAVE_XVMC | |
1392
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
35 |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
36 //X11 includes are in the xvmc_render.h |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
37 //by replacing it with none-X one |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
38 //XvMC emulation could be performed |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
39 |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
40 #include "xvmc_render.h" |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
41 |
1381 | 42 //#include "xvmc_debug.h" |
43 | |
1580
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
44 //set s->block |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
45 inline void XVMC_init_block(MpegEncContext *s){ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
46 xvmc_render_state_t * render; |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
47 render = (xvmc_render_state_t*)s->current_picture.data[2]; |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
48 assert(render != NULL); |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
49 if( (render == NULL) || (render->magic != MP_XVMC_RENDER_MAGIC) ){ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
50 assert(0); |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
51 return;//make sure that this is render packet |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
52 } |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
53 s->block =(DCTELEM *)(render->data_blocks+(render->next_free_data_block_num)*64); |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
54 } |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
55 |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
56 void XVMC_pack_pblocks(MpegEncContext *s, int cbp){ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
57 int i,j; |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
58 #define numblocks 6 |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
59 |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
60 j=0; |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
61 for(i=0;i<numblocks;i++){ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
62 if(cbp & (1<<(numblocks-1-i)) ){ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
63 s->pblocks[i] = (short *)(&s->block[(j++)]); |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
64 }else{ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
65 s->pblocks[i] = NULL; |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
66 } |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
67 // printf("s->pblocks[%d]=%p ,s->block=%p cbp=%d\n",i,s->pblocks[i],s->block,cbp); |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
68 } |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
69 } |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
70 |
1381 | 71 static int calc_cbp(MpegEncContext *s, int blocknum){ |
72 /* compute cbp */ | |
73 // for I420 bit_offset=5 | |
74 int i,cbp = 0; | |
75 for(i=0; i<blocknum; i++) { | |
76 if(s->block_last_index[i] >= 0) | |
77 cbp |= 1 << (5 - i); | |
78 } | |
79 return cbp; | |
80 } | |
81 | |
82 | |
83 | |
84 //these functions should be called on every new field or/and frame | |
85 //They should be safe if they are called few times for same field! | |
86 int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx){ | |
87 xvmc_render_state_t * render,* last, * next; | |
88 | |
89 assert(avctx != NULL); | |
1392
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
90 |
1381 | 91 render = (xvmc_render_state_t*)s->current_picture.data[2]; |
92 assert(render != NULL); | |
1392
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
93 if( (render == NULL) || (render->magic != MP_XVMC_RENDER_MAGIC) ) |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
94 return -1;//make sure that this is render packet |
1381 | 95 |
96 render->picture_structure = s->picture_structure; | |
97 render->flags = (s->first_field)? 0: XVMC_SECOND_FIELD; | |
98 | |
99 //make sure that all data is drawn by XVMC_end_frame | |
100 assert(render->filled_mv_blocks_num==0); | |
101 | |
102 render->p_future_surface = NULL; | |
103 render->p_past_surface = NULL; | |
104 | |
105 switch(s->pict_type){ | |
106 case I_TYPE: | |
107 return 0;// no prediction from other frames | |
108 case B_TYPE: | |
109 next = (xvmc_render_state_t*)s->next_picture.data[2]; | |
110 assert(next!=NULL); | |
111 assert(next->state & MP_XVMC_STATE_PREDICTION); | |
1392
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
112 if(next == NULL) return -1; |
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
113 if(next->magic != MP_XVMC_RENDER_MAGIC) return -1; |
1381 | 114 render->p_future_surface = next->p_surface; |
115 //no return here, going to set forward prediction | |
116 case P_TYPE: | |
117 last = (xvmc_render_state_t*)s->last_picture.data[2]; | |
118 if(last == NULL)// && !s->first_field) | |
119 last = render;//predict second field from the first | |
1392
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
120 if(last->magic != MP_XVMC_RENDER_MAGIC) return -1; |
1381 | 121 assert(last->state & MP_XVMC_STATE_PREDICTION); |
122 render->p_past_surface = last->p_surface; | |
123 return 0; | |
124 } | |
125 | |
126 return -1; | |
127 } | |
128 | |
129 void XVMC_field_end(MpegEncContext *s){ | |
130 xvmc_render_state_t * render; | |
131 render = (xvmc_render_state_t*)s->current_picture.data[2]; | |
132 assert(render != NULL); | |
133 | |
134 if(render->filled_mv_blocks_num > 0){ | |
135 // printf("xvmcvideo.c: rendering %d left blocks after last slice!!!\n",render->filled_mv_blocks_num ); | |
136 ff_draw_horiz_band(s,0,0); | |
137 } | |
138 } | |
139 | |
1580
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
140 void XVMC_decode_mb(MpegEncContext *s){ |
1381 | 141 XvMCMacroBlock * mv_block; |
142 xvmc_render_state_t * render; | |
143 int i,cbp,blocks_per_mb; | |
144 | |
145 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; | |
146 | |
147 | |
148 if(s->encoding){ | |
149 fprintf(stderr,"XVMC doesn't support encoding!!!\n"); | |
1517 | 150 av_abort(); |
1381 | 151 } |
152 | |
153 //from MPV_decode_mb(), | |
154 /* update DC predictors for P macroblocks */ | |
155 if (!s->mb_intra) { | |
156 s->last_dc[0] = | |
157 s->last_dc[1] = | |
158 s->last_dc[2] = 128 << s->intra_dc_precision; | |
159 } | |
160 | |
161 //MC doesn't skip blocks | |
162 s->mb_skiped = 0; | |
163 | |
164 | |
165 // do I need to export quant when I could not perform postprocessing? | |
166 // anyway, it doesn't hurrt | |
167 s->current_picture.qscale_table[mb_xy] = s->qscale; | |
168 | |
169 //START OF XVMC specific code | |
170 render = (xvmc_render_state_t*)s->current_picture.data[2]; | |
171 assert(render!=NULL); | |
172 assert(render->magic==MP_XVMC_RENDER_MAGIC); | |
173 assert(render->mv_blocks); | |
1392
13a02518ffb6
Add GNU header, remove X includes, add more check for xvmc render packet
iive
parents:
1381
diff
changeset
|
174 |
1381 | 175 //take the next free macroblock |
176 mv_block = &render->mv_blocks[render->start_mv_blocks_num + | |
177 render->filled_mv_blocks_num ]; | |
178 | |
179 // memset(mv_block,0,sizeof(XvMCMacroBlock)); | |
180 | |
181 mv_block->x = s->mb_x; | |
182 mv_block->y = s->mb_y; | |
183 mv_block->dct_type = s->interlaced_dct;//XVMC_DCT_TYPE_FRAME/FIELD; | |
184 // mv_block->motion_type = 0; //zero to silense warnings | |
185 if(s->mb_intra){ | |
186 mv_block->macroblock_type = XVMC_MB_TYPE_INTRA;//no MC, all done | |
187 }else{ | |
188 mv_block->macroblock_type = XVMC_MB_TYPE_PATTERN; | |
189 | |
190 if(s->mv_dir & MV_DIR_FORWARD){ | |
191 mv_block->macroblock_type|= XVMC_MB_TYPE_MOTION_FORWARD; | |
192 //pmv[n][dir][xy]=mv[dir][n][xy] | |
193 mv_block->PMV[0][0][0] = s->mv[0][0][0]; | |
194 mv_block->PMV[0][0][1] = s->mv[0][0][1]; | |
195 mv_block->PMV[1][0][0] = s->mv[0][1][0]; | |
196 mv_block->PMV[1][0][1] = s->mv[0][1][1]; | |
197 } | |
198 if(s->mv_dir & MV_DIR_BACKWARD){ | |
199 mv_block->macroblock_type|=XVMC_MB_TYPE_MOTION_BACKWARD; | |
200 mv_block->PMV[0][1][0] = s->mv[1][0][0]; | |
201 mv_block->PMV[0][1][1] = s->mv[1][0][1]; | |
202 mv_block->PMV[1][1][0] = s->mv[1][1][0]; | |
203 mv_block->PMV[1][1][1] = s->mv[1][1][1]; | |
204 } | |
205 | |
206 switch(s->mv_type){ | |
207 case MV_TYPE_16X16: | |
208 mv_block->motion_type = XVMC_PREDICTION_FRAME; | |
209 break; | |
210 case MV_TYPE_16X8: | |
211 mv_block->motion_type = XVMC_PREDICTION_16x8; | |
212 break; | |
213 case MV_TYPE_FIELD: | |
214 mv_block->motion_type = XVMC_PREDICTION_FIELD; | |
215 if(s->picture_structure == PICT_FRAME){ | |
216 mv_block->PMV[0][0][1]<<=1; | |
217 mv_block->PMV[1][0][1]<<=1; | |
218 mv_block->PMV[0][1][1]<<=1; | |
219 mv_block->PMV[1][1][1]<<=1; | |
220 } | |
221 break; | |
222 case MV_TYPE_DMV: | |
223 mv_block->motion_type = XVMC_PREDICTION_DUAL_PRIME; | |
224 if(s->picture_structure == PICT_FRAME){ | |
225 | |
226 mv_block->PMV[0][0][0] = s->mv[0][0][0];//top from top | |
227 mv_block->PMV[0][0][1] = s->mv[0][0][1]<<1; | |
228 | |
229 mv_block->PMV[0][1][0] = s->mv[0][0][0];//bottom from bottom | |
230 mv_block->PMV[0][1][1] = s->mv[0][0][1]<<1; | |
231 | |
232 mv_block->PMV[1][0][0] = s->mv[0][2][0];//dmv00, top from bottom | |
233 mv_block->PMV[1][0][1] = s->mv[0][2][1]<<1;//dmv01 | |
234 | |
235 mv_block->PMV[1][1][0] = s->mv[0][3][0];//dmv10, bottom from top | |
236 mv_block->PMV[1][1][1] = s->mv[0][3][1]<<1;//dmv11 | |
237 | |
238 }else{ | |
239 mv_block->PMV[0][1][0] = s->mv[0][2][0];//dmv00 | |
240 mv_block->PMV[0][1][1] = s->mv[0][2][1];//dmv01 | |
241 } | |
242 break; | |
243 default: | |
244 assert(0); | |
245 } | |
246 | |
247 mv_block->motion_vertical_field_select = 0; | |
248 | |
249 //set correct field referenses | |
250 if(s->mv_type == MV_TYPE_FIELD || s->mv_type == MV_TYPE_16X8){ | |
251 if( s->field_select[0][0] ) mv_block->motion_vertical_field_select|=1; | |
252 if( s->field_select[1][0] ) mv_block->motion_vertical_field_select|=2; | |
253 if( s->field_select[0][1] ) mv_block->motion_vertical_field_select|=4; | |
254 if( s->field_select[1][1] ) mv_block->motion_vertical_field_select|=8; | |
255 } | |
256 }//!intra | |
257 //time to handle data blocks; | |
258 mv_block->index = render->next_free_data_block_num; | |
259 blocks_per_mb = 6; | |
260 /* | |
261 switch( s->chroma_format){ | |
262 case CHROMA_422: | |
263 blocks_per_mb = 8; | |
264 break; | |
265 case CHROMA_444: | |
266 blocks_per_mb = 12; | |
267 break; | |
268 } | |
269 */ | |
270 if(s->flags & CODEC_FLAG_GRAY){ | |
271 if(s->mb_intra){//intra frames are alwasy full chroma block | |
1580
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
272 for(i=4; i<blocks_per_mb; i++){ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
273 memset(s->pblocks[i],0,sizeof(short)*8*8);//so we need to clear them |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
274 if(!render->unsigned_intra) |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
275 s->pblocks[i][0] = 1<<10; |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
276 } |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
277 }else |
1381 | 278 blocks_per_mb = 4;//Luminance blocks only |
1580
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
279 } |
1381 | 280 cbp = calc_cbp(s,blocks_per_mb); |
281 mv_block->coded_block_pattern = cbp; | |
282 if(cbp == 0) | |
283 mv_block->macroblock_type &= ~XVMC_MB_TYPE_PATTERN; | |
284 | |
285 for(i=0; i<blocks_per_mb; i++){ | |
286 if(s->block_last_index[i] >= 0){ | |
287 // i do not have unsigned_intra MOCO to test, hope it is OK | |
288 if( (s->mb_intra) && ( render->idct || (!render->idct && !render->unsigned_intra)) ) | |
1580
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
289 s->pblocks[i][0]-=1<<10; |
1381 | 290 if(!render->idct){ |
1580
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
291 s->dsp.idct(s->pblocks[i]); |
1381 | 292 //!!TODO!clip!!! |
293 } | |
1580
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
294 //copy blocks only if the codec doesn't support pblocks reordering |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
295 if(s->avctx->xvmc_acceleration == 1){ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
296 memcpy(&render->data_blocks[(render->next_free_data_block_num)*64], |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
297 s->pblocks[i],sizeof(short)*8*8); |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
298 }else{ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
299 /* if(s->pblocks[i] != &render->data_blocks[ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
300 (render->next_free_data_block_num)*64]){ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
301 printf("ERROR mb(%d,%d) s->pblocks[i]=%p data_block[]=%p\n", |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
302 s->mb_x,s->mb_y, s->pblocks[i], |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
303 &render->data_blocks[(render->next_free_data_block_num)*64]); |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
304 }*/ |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
305 } |
628bf341e099
XvMC speedup by removing one memcpy and doing MB packing
iive
parents:
1517
diff
changeset
|
306 render->next_free_data_block_num++; |
1381 | 307 } |
308 } | |
309 render->filled_mv_blocks_num++; | |
310 | |
311 assert(render->filled_mv_blocks_num <= render->total_number_of_mv_blocks); | |
312 assert(render->next_free_data_block_num <= render->total_number_of_data_blocks); | |
313 | |
314 | |
315 if(render->filled_mv_blocks_num >= render->total_number_of_mv_blocks) | |
316 ff_draw_horiz_band(s,0,0); | |
317 | |
318 // DumpRenderInfo(render); | |
319 // DumpMBlockInfo(mv_block); | |
320 | |
321 } | |
322 | |
323 #endif |