|
|
@ -209,21 +209,20 @@ static int dv_init_dynamic_tables(const DVprofile *d) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int j,i,c,s,p; |
|
|
|
int j,i,c,s,p; |
|
|
|
|
|
|
|
|
|
|
|
if (d->work_chunks[dv_work_pool_size(d)-1].buf_offset) |
|
|
|
if (!d->work_chunks[dv_work_pool_size(d)-1].buf_offset) { |
|
|
|
return 0; |
|
|
|
p = i = 0; |
|
|
|
|
|
|
|
for (c=0; c<d->n_difchan; c++) { |
|
|
|
p = i = 0; |
|
|
|
for (s=0; s<d->difseg_size; s++) { |
|
|
|
for (c=0; c<d->n_difchan; c++) { |
|
|
|
p += 6; |
|
|
|
for (s=0; s<d->difseg_size; s++) { |
|
|
|
for (j=0; j<27; j++) { |
|
|
|
p += 6; |
|
|
|
p += !(j%3); |
|
|
|
for (j=0; j<27; j++) { |
|
|
|
if (!(DV_PROFILE_IS_1080i50(d) && c != 0 && s == 11) && |
|
|
|
p += !(j%3); |
|
|
|
!(DV_PROFILE_IS_720p50(d) && s > 9)) { |
|
|
|
if (!(DV_PROFILE_IS_1080i50(d) && c != 0 && s == 11) && |
|
|
|
dv_calc_mb_coordinates(d, c, s, j, &d->work_chunks[i].mb_coordinates[0]); |
|
|
|
!(DV_PROFILE_IS_720p50(d) && s > 9)) { |
|
|
|
d->work_chunks[i++].buf_offset = p; |
|
|
|
dv_calc_mb_coordinates(d, c, s, j, &d->work_chunks[i].mb_coordinates[0]); |
|
|
|
} |
|
|
|
d->work_chunks[i++].buf_offset = p; |
|
|
|
p += 5; |
|
|
|
} |
|
|
|
} |
|
|
|
p += 5; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|