Debug.h
上传用户:lusi_8715
上传日期:2007-01-08
资源大小:199k
文件大小:2k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /**************************************************************************************
  2.  *                                                                                    *
  3.  * This application contains code from OpenDivX and is released as a "Larger Work"    *
  4.  * under that license. Consistant with that license, this application is released     *
  5.  * under the GNU General Public License.                                              *
  6.  *                                                                                    *
  7.  * The OpenDivX license can be found at: http://www.projectmayo.com/opendivx/docs.php *
  8.  * The GPL can be found at: http://www.gnu.org/copyleft/gpl.html                      *
  9.  *                                                                                    *
  10.  * Copyright (c) 2001 - Project Mayo                                                  *
  11.  *                                                                                    *
  12.  * Authors: Damien Chavarria <darc at projectmayo.com>                                *
  13.  *                                                                                    *
  14.  **************************************************************************************/
  15. #ifndef PM_DEBUG_H
  16. #define PM_DEBUG_H
  17. #include <windows.h>
  18. #include <stdio.h>
  19. #ifdef _DEBUG__
  20. extern FILE *debug_file;
  21. #endif
  22. /*
  23.  * Version
  24.  */
  25. #define VERSION "0.3.3"
  26. /*
  27.  * DEBUG MACRO
  28.  */
  29. #ifdef _DEBUG__
  30. #define PM_DEBUG(X, arg) { 
  31.   
  32.   fprintf(debug_file, X, arg); 
  33. }
  34. #else
  35. #define PM_DEBUG(X, arg) {}
  36. #endif
  37. /*
  38.  * Type For options 
  39.  *
  40.  *
  41.  */
  42. typedef struct _options_t {
  43. DWORD loop;
  44. DWORD on_top;
  45. DWORD maintain_aspect_ratio;
  46. DWORD use_bilinear;
  47. DWORD change_fullscreen_res;
  48. } options_t;
  49. #endif