3 |
* XVID VFW FRONTEND |
* XVID VFW FRONTEND |
4 |
* codec |
* codec |
5 |
* |
* |
6 |
|
* Copyright(C) Peter Ross <pross@xvid.org> |
7 |
|
* |
8 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
9 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
10 |
* the Free Software Foundation; either version 2 of the License, or |
* the Free Software Foundation; either version 2 of the License, or |
19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
21 |
* |
* |
22 |
*************************************************************************/ |
* $Id: codec.c,v 1.27 2010-12-02 06:46:07 Isibaar Exp $ |
|
|
|
|
/************************************************************************** |
|
|
* |
|
|
* History: |
|
|
* |
|
|
* 12.07.2002 num_threads |
|
|
* 23.06.2002 XVID_CPU_CHKONLY; loading speed up |
|
|
* 25.04.2002 ICDECOMPRESS_PREROLL |
|
|
* 17.04.2002 re-enabled lumi masking for 1st pass |
|
|
* 15.04.2002 updated cbr support |
|
|
* 04.04.2002 separated 2-pass code to 2pass.c |
|
|
* interlacing support |
|
|
* hinted ME support |
|
|
* 23.03.2002 daniel smith <danielsmith@astroboymail.com> |
|
|
* changed inter4v to only be in modes 5 or 6 |
|
|
* fixed null mode crash ? |
|
|
* merged foxer's alternative 2-pass code |
|
|
* added DEBUGERR output on errors instead of returning |
|
|
* 16.03.2002 daniel smith <danielsmith@astroboymail.com> |
|
|
* changed BITMAPV4HEADER to BITMAPINFOHEADER |
|
|
* - prevents memcpy crash in compress_get_format() |
|
|
* credits are processed in external 2pass mode |
|
|
* motion search precision = 0 now effective in 2-pass |
|
|
* modulated quantization |
|
|
* added DX50 fourcc |
|
|
* 01.12.2001 inital version; (c)2001 peter ross <pross@xvid.org> |
|
23 |
* |
* |
24 |
*************************************************************************/ |
*************************************************************************/ |
25 |
|
|
197 |
outhdr->biClrUsed = 0; |
outhdr->biClrUsed = 0; |
198 |
outhdr->biClrImportant = 0; |
outhdr->biClrImportant = 0; |
199 |
|
|
200 |
if (codec->config.fourcc_used == 0) |
if ((codec->config.fourcc_used == 0) || (profiles[codec->config.profile].flags & PROFILE_XVID)) |
201 |
{ |
{ |
202 |
outhdr->biCompression = FOURCC_XVID; |
outhdr->biCompression = FOURCC_XVID; |
203 |
} |
} |