[svn] / trunk / xvidcore / vfw / src / driverproc.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/vfw/src/driverproc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1453, Wed May 26 05:23:03 2004 UTC revision 1630, Fri Sep 9 11:34:51 2005 UTC
# Line 19  Line 19 
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: driverproc.c,v 1.5 2004-05-26 05:23:03 syskin Exp $   * $Id: driverproc.c,v 1.8 2005-09-09 11:34:51 suxen_drol Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 60  Line 60 
60    
61          case DRV_LOAD :          case DRV_LOAD :
62          case DRV_FREE :          case DRV_FREE :
63                  return DRV_OK;                  return DRVCNF_OK;
64    
65          case DRV_OPEN :          case DRV_OPEN :
66                  DPRINTF("DRV_OPEN");                  DPRINTF("DRV_OPEN");
# Line 70  Line 70 
70    
71                          if (icopen != NULL && icopen->fccType != ICTYPE_VIDEO)                          if (icopen != NULL && icopen->fccType != ICTYPE_VIDEO)
72                          {                          {
73                                  return DRV_CANCEL;                                  return DRVCNF_CANCEL;
74                          }                          }
75    
76                          codec = malloc(sizeof(CODEC));                          codec = malloc(sizeof(CODEC));
# Line 116  Line 116 
116                  clean_dll_bindings(codec);                  clean_dll_bindings(codec);
117          status_destroy_always(&codec->status);          status_destroy_always(&codec->status);
118                  free(codec);                  free(codec);
119                  return DRV_OK;                  return DRVCNF_OK;
120    
121          case DRV_DISABLE :          case DRV_DISABLE :
122          case DRV_ENABLE :          case DRV_ENABLE :
123                  return DRV_OK;                  return DRVCNF_OK;
124    
125          case DRV_INSTALL :          case DRV_INSTALL :
126          case DRV_REMOVE :          case DRV_REMOVE :
127                  return DRV_OK;                  return DRVCNF_OK;
128    
129          case DRV_QUERYCONFIGURE :          case DRV_QUERYCONFIGURE :
130          case DRV_CONFIGURE :          case DRV_CONFIGURE :
131                  return DRV_CANCEL;                  return DRVCNF_CANCEL;
132    
133    
134          /* info */          /* info */
135    
136          case ICM_GETINFO :          case ICM_GETINFO :
137                  DPRINTF("ICM_GETINFO");                  DPRINTF("ICM_GETINFO");
138                  {  
139                    if (lParam1 && lParam2 >= sizeof(ICINFO)) {
140                          ICINFO *icinfo = (ICINFO *)lParam1;                          ICINFO *icinfo = (ICINFO *)lParam1;
141    
142                          icinfo->fccType = ICTYPE_VIDEO;                          icinfo->fccType = ICTYPE_VIDEO;
# Line 146  Line 147 
147                                  VIDCF_COMPRESSFRAMES;                                  VIDCF_COMPRESSFRAMES;
148    
149                          icinfo->dwVersion = 0;                          icinfo->dwVersion = 0;
150    #if !defined(ICVERSION)
151    #define ICVERSION       0x0104
152    #endif
153                          icinfo->dwVersionICM = ICVERSION;                          icinfo->dwVersionICM = ICVERSION;
154    
155                          wcscpy(icinfo->szName, XVID_NAME_L);                          wcscpy(icinfo->szName, XVID_NAME_L);
# Line 154  Line 158 
158                          return lParam2; /* size of struct */                          return lParam2; /* size of struct */
159                  }                  }
160    
161                    return 0;       /* error */
162    
163                  /* state control */                  /* state control */
164    
165          case ICM_ABOUT :          case ICM_ABOUT :
# Line 307  Line 313 
313          dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0);          dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0);
314          if (dwDriverId != (DWORD)NULL)          if (dwDriverId != (DWORD)NULL)
315          {          {
316                    if (lstrcmpi(lpCmdLine, "about")==0) {
317                            DriverProc(dwDriverId, 0, ICM_ABOUT, (LPARAM)GetDesktopWindow(), 0);
318                    }else{
319                  DriverProc(dwDriverId, 0, ICM_CONFIGURE, (LPARAM)GetDesktopWindow(), 0);                  DriverProc(dwDriverId, 0, ICM_CONFIGURE, (LPARAM)GetDesktopWindow(), 0);
320                    }
321                  DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0);                  DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0);
322          }          }
323  }  }

Legend:
Removed from v.1453  
changed lines
  Added in v.1630

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4