208 |
|
|
209 |
if (lpbiOutput == NULL) |
if (lpbiOutput == NULL) |
210 |
{ |
{ |
211 |
return sizeof(BITMAPV4HEADER); |
return sizeof(BITMAPINFOHEADER); |
212 |
} |
} |
213 |
|
|
214 |
memcpy(outhdr, inhdr, sizeof(BITMAPINFOHEADER)); |
memcpy(outhdr, inhdr, sizeof(BITMAPINFOHEADER)); |
486 |
for (i=0; i<config->num_zones && config->zones[i].frame <= framenum; i++) ; |
for (i=0; i<config->num_zones && config->zones[i].frame <= framenum; i++) ; |
487 |
i--; |
i--; |
488 |
|
|
489 |
|
frame->type = config->zones[i].type; |
490 |
|
|
491 |
if (config->zones[i].greyscale) { |
if (config->zones[i].greyscale) { |
492 |
frame->vop_flags |= XVID_VOP_GREYSCALE; |
frame->vop_flags |= XVID_VOP_GREYSCALE; |
493 |
} |
} |
542 |
frame.motion |= XVID_ME_QUARTERPELREFINE16 | XVID_ME_QUARTERPELREFINE8; |
frame.motion |= XVID_ME_QUARTERPELREFINE16 | XVID_ME_QUARTERPELREFINE8; |
543 |
} |
} |
544 |
|
|
545 |
if ((profiles[codec->config.profile].flags & PROFILE_GMC) && codec->config.gmc) |
if ((profiles[codec->config.profile].flags & PROFILE_GMC) && codec->config.gmc) { |
546 |
frame.vol_flags |= XVID_VOL_GMC; |
frame.vol_flags |= XVID_VOL_GMC; |
547 |
|
frame.motion |= XVID_GME_REFINE; |
548 |
|
} |
549 |
|
|
550 |
if ((profiles[codec->config.profile].flags & PROFILE_INTERLACE) && codec->config.interlacing) |
if ((profiles[codec->config.profile].flags & PROFILE_INTERLACE) && codec->config.interlacing) |
551 |
frame.vol_flags |= XVID_VOL_INTERLACING; |
frame.vol_flags |= XVID_VOL_INTERLACING; |