26 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
27 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
28 |
* |
* |
29 |
* $Id: encoder.c,v 1.95.2.1 2003-02-22 08:49:44 suxen_drol Exp $ |
* $Id: encoder.c,v 1.95.2.2 2003-03-09 00:28:09 edgomez Exp $ |
30 |
* |
* |
31 |
****************************************************************************/ |
****************************************************************************/ |
32 |
|
|
634 |
* Returned values : |
* Returned values : |
635 |
* - >0 - output bytes |
* - >0 - output bytes |
636 |
* - 0 - no output |
* - 0 - no output |
637 |
|
* - XVID_ERR_VERSION - wrong version passed to core |
638 |
|
* - XVID_ERR_END - End of stream reached before end of coding |
639 |
* - XVID_ERR_FORMAT - the image subsystem reported the image had a wrong |
* - XVID_ERR_FORMAT - the image subsystem reported the image had a wrong |
640 |
* format |
* format |
641 |
****************************************************************************/ |
****************************************************************************/ |
1031 |
|
|
1032 |
done_flush: |
done_flush: |
1033 |
|
|
1034 |
|
#if 0 |
1035 |
{ |
{ |
1036 |
char tmp[100]; |
char tmp[100]; |
1037 |
wsprintf(tmp,"\\frame%03i.pgm", pEnc->m_framenum); |
wsprintf(tmp,"\\frame%03i.pgm", pEnc->m_framenum); |
1038 |
image_dump_yuvpgm(&pEnc->current->image, pEnc->mbParam.edged_width, |
image_dump_yuvpgm(&pEnc->current->image, pEnc->mbParam.edged_width, |
1039 |
pEnc->mbParam.width, pEnc->mbParam.height, tmp); |
pEnc->mbParam.width, pEnc->mbParam.height, tmp); |
1040 |
} |
} |
1041 |
|
#endif |
1042 |
|
|
1043 |
/* packed_mode: repeat */ |
/* packed_mode: repeat */ |
1044 |
pEnc->flush_bframes = 1; |
pEnc->flush_bframes = 1; |