Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

Error codes returned by XviD API entry points.
[Global constants used in both encoder and decoder.]


Defines

#define XVID_ERR_FAIL   -1
 Operation failed.

#define XVID_ERR_OK   0
 Operation succeed.

#define XVID_ERR_MEMORY   1
 Operation failed.

#define XVID_ERR_FORMAT   2
 Operation failed.


Define Documentation

#define XVID_ERR_FAIL   -1
 

Operation failed.

The requested XviD operation failed. If this error code is returned from :

  • the xvid_init function : you must not try to use an XviD's instance from this point of the code. Clean all instances you already created and exit the program cleanly.
  • xvid_encore or xvid_decore : something was wrong and en/decoding operation was not completed sucessfully. you can stop the en/decoding process or just ignore and go on.
  • xvid_stop : you can safely ignore it if you call this function at the end of your program.

#define XVID_ERR_FORMAT   2
 

Operation failed.

The format of the parameters or input stream were incorrect.

#define XVID_ERR_MEMORY   1
 

Operation failed.

Insufficent memory was available on the host system.

#define XVID_ERR_OK   0
 

Operation succeed.

The requested XviD operation succeed, you can continue to use XviD's functions.




Author : XviD team <xvid-devel@xvid.org> Date : 2003-02-13