Changeset 6649 for trunk/src/quartz
- Timestamp:
- Sep 5, 2001, 3:39:12 PM (24 years ago)
- Location:
- trunk/src/quartz
- Files:
-
- 20 edited
-
amerror.c (modified) (3 diffs)
-
complist.c (modified) (3 diffs)
-
fgraph.c (modified) (2 diffs)
-
guid.c (modified) (1 diff)
-
ibasaud.c (modified) (14 diffs)
-
ibasvid.c (modified) (43 diffs)
-
ifgraph.c (modified) (23 diffs)
-
imcntl.c (modified) (19 diffs)
-
imem.c (modified) (12 diffs)
-
imevent.c (modified) (19 diffs)
-
impos.c (modified) (21 diffs)
-
imseek.c (modified) (22 diffs)
-
initquartz.cpp (modified) (3 diffs)
-
initterm.cpp (modified) (1 diff)
-
irclock.c (modified) (9 diffs)
-
iunk.c (modified) (5 diffs)
-
ividwin.c (modified) (49 diffs)
-
main.c (modified) (7 diffs)
-
memalloc.c (modified) (2 diffs)
-
sysclock.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/quartz/amerror.c
r6578 r6649 1 /* $Id: amerror.c,v 1.2 2001-09-05 13:36:34 bird Exp $ */ 1 2 2 3 #include "config.h" … … 19 20 LPWSTR QUARTZ_strncpyAtoW( LPWSTR lpwstr, LPCSTR lpstr, INT wbuflen ) 20 21 { 21 INTlen;22 23 len = MultiByteToWideChar( CP_ACP, 0, lpstr, -1, lpwstr, wbuflen );24 if ( len == 0 )25 *lpwstr = 0;26 return lpwstr;22 INT len; 23 24 len = MultiByteToWideChar( CP_ACP, 0, lpstr, -1, lpwstr, wbuflen ); 25 if ( len == 0 ) 26 *lpwstr = 0; 27 return lpwstr; 27 28 } 28 29 … … 30 31 static LPCSTR hresult_to_string( HRESULT hr ) 31 32 { 32 switch ( hr )33 {34 #define ENTRY(x)case x: return (const char*)#x;35 /* some known codes */36 ENTRY(S_OK)37 ENTRY(S_FALSE)38 ENTRY(E_FAIL)39 ENTRY(E_POINTER)40 ENTRY(E_NOTIMPL)41 ENTRY(E_NOINTERFACE)42 ENTRY(E_OUTOFMEMORY)43 ENTRY(CLASS_E_CLASSNOTAVAILABLE)44 ENTRY(CLASS_E_NOAGGREGATION)45 46 /* vfwmsgs.h */47 ENTRY(VFW_S_NO_MORE_ITEMS)48 ENTRY(VFW_E_BAD_KEY)49 ENTRY(VFW_E_INVALIDMEDIATYPE)50 ENTRY(VFW_E_INVALIDSUBTYPE)51 ENTRY(VFW_E_NEED_OWNER)52 ENTRY(VFW_E_ENUM_OUT_OF_SYNC)53 ENTRY(VFW_E_ALREADY_CONNECTED)54 ENTRY(VFW_E_FILTER_ACTIVE)55 ENTRY(VFW_E_NO_TYPES)56 ENTRY(VFW_E_NO_ACCEPTABLE_TYPES)57 ENTRY(VFW_E_INVALID_DIRECTION)58 ENTRY(VFW_E_NOT_CONNECTED)59 ENTRY(VFW_E_NO_ALLOCATOR)60 ENTRY(VFW_E_RUNTIME_ERROR)61 ENTRY(VFW_E_BUFFER_NOTSET)62 ENTRY(VFW_E_BUFFER_OVERFLOW)63 ENTRY(VFW_E_BADALIGN)64 ENTRY(VFW_E_ALREADY_COMMITTED)65 ENTRY(VFW_E_BUFFERS_OUTSTANDING)66 ENTRY(VFW_E_NOT_COMMITTED)67 ENTRY(VFW_E_SIZENOTSET)68 ENTRY(VFW_E_NO_CLOCK)69 ENTRY(VFW_E_NO_SINK)70 ENTRY(VFW_E_NO_INTERFACE)71 ENTRY(VFW_E_NOT_FOUND)72 ENTRY(VFW_E_CANNOT_CONNECT)73 ENTRY(VFW_E_CANNOT_RENDER)74 ENTRY(VFW_E_CHANGING_FORMAT)75 ENTRY(VFW_E_NO_COLOR_KEY_SET)76 ENTRY(VFW_E_NOT_OVERLAY_CONNECTION)77 ENTRY(VFW_E_NOT_SAMPLE_CONNECTION)78 ENTRY(VFW_E_PALETTE_SET)79 ENTRY(VFW_E_COLOR_KEY_SET)80 ENTRY(VFW_E_NO_COLOR_KEY_FOUND)81 ENTRY(VFW_E_NO_PALETTE_AVAILABLE)82 ENTRY(VFW_E_NO_DISPLAY_PALETTE)83 ENTRY(VFW_E_TOO_MANY_COLORS)84 ENTRY(VFW_E_STATE_CHANGED)85 ENTRY(VFW_E_NOT_STOPPED)86 ENTRY(VFW_E_NOT_PAUSED)87 ENTRY(VFW_E_NOT_RUNNING)88 ENTRY(VFW_E_WRONG_STATE)89 ENTRY(VFW_E_START_TIME_AFTER_END)90 ENTRY(VFW_E_INVALID_RECT)91 ENTRY(VFW_E_TYPE_NOT_ACCEPTED)92 ENTRY(VFW_E_SAMPLE_REJECTED)93 ENTRY(VFW_E_SAMPLE_REJECTED_EOS)94 ENTRY(VFW_S_DUPLICATE_NAME)95 ENTRY(VFW_E_DUPLICATE_NAME)96 ENTRY(VFW_E_TIMEOUT)97 ENTRY(VFW_E_INVALID_FILE_FORMAT)98 ENTRY(VFW_E_ENUM_OUT_OF_RANGE)99 ENTRY(VFW_E_CIRCULAR_GRAPH)100 ENTRY(VFW_E_NOT_ALLOWED_TO_SAVE)101 ENTRY(VFW_E_TIME_ALREADY_PASSED)102 ENTRY(VFW_E_ALREADY_CANCELLED)103 ENTRY(VFW_E_CORRUPT_GRAPH_FILE)104 ENTRY(VFW_E_ADVISE_ALREADY_SET)105 ENTRY(VFW_S_STATE_INTERMEDIATE)106 ENTRY(VFW_E_NO_MODEX_AVAILABLE)107 ENTRY(VFW_E_NO_ADVISE_SET)108 ENTRY(VFW_E_NO_FULLSCREEN)109 ENTRY(VFW_E_IN_FULLSCREEN_MODE)110 ENTRY(VFW_E_UNKNOWN_FILE_TYPE)111 ENTRY(VFW_E_CANNOT_LOAD_SOURCE_FILTER)112 ENTRY(VFW_S_PARTIAL_RENDER)113 ENTRY(VFW_E_FILE_TOO_SHORT)114 ENTRY(VFW_E_INVALID_FILE_VERSION)115 ENTRY(VFW_S_SOME_DATA_IGNORED)116 ENTRY(VFW_S_CONNECTIONS_DEFERRED)117 ENTRY(VFW_E_INVALID_CLSID)118 ENTRY(VFW_E_INVALID_MEDIA_TYPE)119 ENTRY(VFW_E_SAMPLE_TIME_NOT_SET)120 ENTRY(VFW_S_RESOURCE_NOT_NEEDED)121 ENTRY(VFW_E_MEDIA_TIME_NOT_SET)122 ENTRY(VFW_E_NO_TIME_FORMAT_SET)123 ENTRY(VFW_E_MONO_AUDIO_HW)124 ENTRY(VFW_S_MEDIA_TYPE_IGNORED)125 ENTRY(VFW_E_NO_DECOMPRESSOR)126 ENTRY(VFW_E_NO_AUDIO_HARDWARE)127 ENTRY(VFW_S_VIDEO_NOT_RENDERED)128 ENTRY(VFW_S_AUDIO_NOT_RENDERED)129 ENTRY(VFW_E_RPZA)130 ENTRY(VFW_S_RPZA)131 ENTRY(VFW_E_PROCESSOR_NOT_SUITABLE)132 ENTRY(VFW_E_UNSUPPORTED_AUDIO)133 ENTRY(VFW_E_UNSUPPORTED_VIDEO)134 ENTRY(VFW_E_MPEG_NOT_CONSTRAINED)135 ENTRY(VFW_E_NOT_IN_GRAPH)136 ENTRY(VFW_S_ESTIMATED)137 ENTRY(VFW_E_NO_TIME_FORMAT)138 ENTRY(VFW_E_READ_ONLY)139 ENTRY(VFW_S_RESERVED)140 ENTRY(VFW_E_BUFFER_UNDERFLOW)141 ENTRY(VFW_E_UNSUPPORTED_STREAM)142 ENTRY(VFW_E_NO_TRANSPORT)143 ENTRY(VFW_S_STREAM_OFF)144 ENTRY(VFW_S_CANT_CUE)145 ENTRY(VFW_E_BAD_VIDEOCD)146 ENTRY(VFW_S_NO_STOP_TIME)147 ENTRY(VFW_E_OUT_OF_VIDEO_MEMORY)148 ENTRY(VFW_E_VP_NEGOTIATION_FAILED)149 ENTRY(VFW_E_DDRAW_CAPS_NOT_SUITABLE)150 ENTRY(VFW_E_NO_VP_HARDWARE)151 ENTRY(VFW_E_NO_CAPTURE_HARDWARE)152 ENTRY(VFW_E_DVD_OPERATION_INHIBITED)153 ENTRY(VFW_E_DVD_INVALIDDOMAIN)154 ENTRY(VFW_E_DVD_NO_BUTTON)155 ENTRY(VFW_E_DVD_GRAPHNOTREADY)156 ENTRY(VFW_E_DVD_RENDERFAIL)157 ENTRY(VFW_E_DVD_DECNOTENOUGH)158 ENTRY(VFW_E_DDRAW_VERSION_NOT_SUITABLE)159 ENTRY(VFW_E_COPYPROT_FAILED)160 ENTRY(VFW_S_NOPREVIEWPIN)161 ENTRY(VFW_E_TIME_EXPIRED)162 ENTRY(VFW_S_DVD_NON_ONE_SEQUENTIAL)163 ENTRY(VFW_E_DVD_WRONG_SPEED)164 ENTRY(VFW_E_DVD_MENU_DOES_NOT_EXIST)165 ENTRY(VFW_E_DVD_CMD_CANCELLED)166 ENTRY(VFW_E_DVD_STATE_WRONG_VERSION)167 ENTRY(VFW_E_DVD_STATE_CORRUPT)168 ENTRY(VFW_E_DVD_STATE_WRONG_DISC)169 ENTRY(VFW_E_DVD_INCOMPATIBLE_REGION)170 ENTRY(VFW_E_DVD_NO_ATTRIBUTES)171 ENTRY(VFW_E_DVD_NO_GOUP_PGC)172 ENTRY(VFW_E_DVD_LOW_PARENTAL_LEVEL)173 ENTRY(VFW_E_DVD_NOT_IN_KARAOKE_MODE)174 ENTRY(VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE)175 ENTRY(VFW_S_DVD_NOT_ACCURATE)176 ENTRY(VFW_E_FRAME_STEP_UNSUPPORTED)177 ENTRY(VFW_E_DVD_STREAM_DISABLED)178 ENTRY(VFW_E_DVD_TITLE_UNKNOWN)179 ENTRY(VFW_E_DVD_INVALID_DISC)180 ENTRY(VFW_E_DVD_NO_RESUME_INFORMATION)181 ENTRY(VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD)182 ENTRY(VFW_E_PIN_ALREADY_BLOCKED)183 ENTRY(VFW_E_CERTIFICATION_FAILURE)184 #undefENTRY185 }186 187 return NULL;33 switch ( hr ) 34 { 35 #define ENTRY(x) case x: return (const char*)#x; 36 /* some known codes */ 37 ENTRY(S_OK) 38 ENTRY(S_FALSE) 39 ENTRY(E_FAIL) 40 ENTRY(E_POINTER) 41 ENTRY(E_NOTIMPL) 42 ENTRY(E_NOINTERFACE) 43 ENTRY(E_OUTOFMEMORY) 44 ENTRY(CLASS_E_CLASSNOTAVAILABLE) 45 ENTRY(CLASS_E_NOAGGREGATION) 46 47 /* vfwmsgs.h */ 48 ENTRY(VFW_S_NO_MORE_ITEMS) 49 ENTRY(VFW_E_BAD_KEY) 50 ENTRY(VFW_E_INVALIDMEDIATYPE) 51 ENTRY(VFW_E_INVALIDSUBTYPE) 52 ENTRY(VFW_E_NEED_OWNER) 53 ENTRY(VFW_E_ENUM_OUT_OF_SYNC) 54 ENTRY(VFW_E_ALREADY_CONNECTED) 55 ENTRY(VFW_E_FILTER_ACTIVE) 56 ENTRY(VFW_E_NO_TYPES) 57 ENTRY(VFW_E_NO_ACCEPTABLE_TYPES) 58 ENTRY(VFW_E_INVALID_DIRECTION) 59 ENTRY(VFW_E_NOT_CONNECTED) 60 ENTRY(VFW_E_NO_ALLOCATOR) 61 ENTRY(VFW_E_RUNTIME_ERROR) 62 ENTRY(VFW_E_BUFFER_NOTSET) 63 ENTRY(VFW_E_BUFFER_OVERFLOW) 64 ENTRY(VFW_E_BADALIGN) 65 ENTRY(VFW_E_ALREADY_COMMITTED) 66 ENTRY(VFW_E_BUFFERS_OUTSTANDING) 67 ENTRY(VFW_E_NOT_COMMITTED) 68 ENTRY(VFW_E_SIZENOTSET) 69 ENTRY(VFW_E_NO_CLOCK) 70 ENTRY(VFW_E_NO_SINK) 71 ENTRY(VFW_E_NO_INTERFACE) 72 ENTRY(VFW_E_NOT_FOUND) 73 ENTRY(VFW_E_CANNOT_CONNECT) 74 ENTRY(VFW_E_CANNOT_RENDER) 75 ENTRY(VFW_E_CHANGING_FORMAT) 76 ENTRY(VFW_E_NO_COLOR_KEY_SET) 77 ENTRY(VFW_E_NOT_OVERLAY_CONNECTION) 78 ENTRY(VFW_E_NOT_SAMPLE_CONNECTION) 79 ENTRY(VFW_E_PALETTE_SET) 80 ENTRY(VFW_E_COLOR_KEY_SET) 81 ENTRY(VFW_E_NO_COLOR_KEY_FOUND) 82 ENTRY(VFW_E_NO_PALETTE_AVAILABLE) 83 ENTRY(VFW_E_NO_DISPLAY_PALETTE) 84 ENTRY(VFW_E_TOO_MANY_COLORS) 85 ENTRY(VFW_E_STATE_CHANGED) 86 ENTRY(VFW_E_NOT_STOPPED) 87 ENTRY(VFW_E_NOT_PAUSED) 88 ENTRY(VFW_E_NOT_RUNNING) 89 ENTRY(VFW_E_WRONG_STATE) 90 ENTRY(VFW_E_START_TIME_AFTER_END) 91 ENTRY(VFW_E_INVALID_RECT) 92 ENTRY(VFW_E_TYPE_NOT_ACCEPTED) 93 ENTRY(VFW_E_SAMPLE_REJECTED) 94 ENTRY(VFW_E_SAMPLE_REJECTED_EOS) 95 ENTRY(VFW_S_DUPLICATE_NAME) 96 ENTRY(VFW_E_DUPLICATE_NAME) 97 ENTRY(VFW_E_TIMEOUT) 98 ENTRY(VFW_E_INVALID_FILE_FORMAT) 99 ENTRY(VFW_E_ENUM_OUT_OF_RANGE) 100 ENTRY(VFW_E_CIRCULAR_GRAPH) 101 ENTRY(VFW_E_NOT_ALLOWED_TO_SAVE) 102 ENTRY(VFW_E_TIME_ALREADY_PASSED) 103 ENTRY(VFW_E_ALREADY_CANCELLED) 104 ENTRY(VFW_E_CORRUPT_GRAPH_FILE) 105 ENTRY(VFW_E_ADVISE_ALREADY_SET) 106 ENTRY(VFW_S_STATE_INTERMEDIATE) 107 ENTRY(VFW_E_NO_MODEX_AVAILABLE) 108 ENTRY(VFW_E_NO_ADVISE_SET) 109 ENTRY(VFW_E_NO_FULLSCREEN) 110 ENTRY(VFW_E_IN_FULLSCREEN_MODE) 111 ENTRY(VFW_E_UNKNOWN_FILE_TYPE) 112 ENTRY(VFW_E_CANNOT_LOAD_SOURCE_FILTER) 113 ENTRY(VFW_S_PARTIAL_RENDER) 114 ENTRY(VFW_E_FILE_TOO_SHORT) 115 ENTRY(VFW_E_INVALID_FILE_VERSION) 116 ENTRY(VFW_S_SOME_DATA_IGNORED) 117 ENTRY(VFW_S_CONNECTIONS_DEFERRED) 118 ENTRY(VFW_E_INVALID_CLSID) 119 ENTRY(VFW_E_INVALID_MEDIA_TYPE) 120 ENTRY(VFW_E_SAMPLE_TIME_NOT_SET) 121 ENTRY(VFW_S_RESOURCE_NOT_NEEDED) 122 ENTRY(VFW_E_MEDIA_TIME_NOT_SET) 123 ENTRY(VFW_E_NO_TIME_FORMAT_SET) 124 ENTRY(VFW_E_MONO_AUDIO_HW) 125 ENTRY(VFW_S_MEDIA_TYPE_IGNORED) 126 ENTRY(VFW_E_NO_DECOMPRESSOR) 127 ENTRY(VFW_E_NO_AUDIO_HARDWARE) 128 ENTRY(VFW_S_VIDEO_NOT_RENDERED) 129 ENTRY(VFW_S_AUDIO_NOT_RENDERED) 130 ENTRY(VFW_E_RPZA) 131 ENTRY(VFW_S_RPZA) 132 ENTRY(VFW_E_PROCESSOR_NOT_SUITABLE) 133 ENTRY(VFW_E_UNSUPPORTED_AUDIO) 134 ENTRY(VFW_E_UNSUPPORTED_VIDEO) 135 ENTRY(VFW_E_MPEG_NOT_CONSTRAINED) 136 ENTRY(VFW_E_NOT_IN_GRAPH) 137 ENTRY(VFW_S_ESTIMATED) 138 ENTRY(VFW_E_NO_TIME_FORMAT) 139 ENTRY(VFW_E_READ_ONLY) 140 ENTRY(VFW_S_RESERVED) 141 ENTRY(VFW_E_BUFFER_UNDERFLOW) 142 ENTRY(VFW_E_UNSUPPORTED_STREAM) 143 ENTRY(VFW_E_NO_TRANSPORT) 144 ENTRY(VFW_S_STREAM_OFF) 145 ENTRY(VFW_S_CANT_CUE) 146 ENTRY(VFW_E_BAD_VIDEOCD) 147 ENTRY(VFW_S_NO_STOP_TIME) 148 ENTRY(VFW_E_OUT_OF_VIDEO_MEMORY) 149 ENTRY(VFW_E_VP_NEGOTIATION_FAILED) 150 ENTRY(VFW_E_DDRAW_CAPS_NOT_SUITABLE) 151 ENTRY(VFW_E_NO_VP_HARDWARE) 152 ENTRY(VFW_E_NO_CAPTURE_HARDWARE) 153 ENTRY(VFW_E_DVD_OPERATION_INHIBITED) 154 ENTRY(VFW_E_DVD_INVALIDDOMAIN) 155 ENTRY(VFW_E_DVD_NO_BUTTON) 156 ENTRY(VFW_E_DVD_GRAPHNOTREADY) 157 ENTRY(VFW_E_DVD_RENDERFAIL) 158 ENTRY(VFW_E_DVD_DECNOTENOUGH) 159 ENTRY(VFW_E_DDRAW_VERSION_NOT_SUITABLE) 160 ENTRY(VFW_E_COPYPROT_FAILED) 161 ENTRY(VFW_S_NOPREVIEWPIN) 162 ENTRY(VFW_E_TIME_EXPIRED) 163 ENTRY(VFW_S_DVD_NON_ONE_SEQUENTIAL) 164 ENTRY(VFW_E_DVD_WRONG_SPEED) 165 ENTRY(VFW_E_DVD_MENU_DOES_NOT_EXIST) 166 ENTRY(VFW_E_DVD_CMD_CANCELLED) 167 ENTRY(VFW_E_DVD_STATE_WRONG_VERSION) 168 ENTRY(VFW_E_DVD_STATE_CORRUPT) 169 ENTRY(VFW_E_DVD_STATE_WRONG_DISC) 170 ENTRY(VFW_E_DVD_INCOMPATIBLE_REGION) 171 ENTRY(VFW_E_DVD_NO_ATTRIBUTES) 172 ENTRY(VFW_E_DVD_NO_GOUP_PGC) 173 ENTRY(VFW_E_DVD_LOW_PARENTAL_LEVEL) 174 ENTRY(VFW_E_DVD_NOT_IN_KARAOKE_MODE) 175 ENTRY(VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE) 176 ENTRY(VFW_S_DVD_NOT_ACCURATE) 177 ENTRY(VFW_E_FRAME_STEP_UNSUPPORTED) 178 ENTRY(VFW_E_DVD_STREAM_DISABLED) 179 ENTRY(VFW_E_DVD_TITLE_UNKNOWN) 180 ENTRY(VFW_E_DVD_INVALID_DISC) 181 ENTRY(VFW_E_DVD_NO_RESUME_INFORMATION) 182 ENTRY(VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD) 183 ENTRY(VFW_E_PIN_ALREADY_BLOCKED) 184 ENTRY(VFW_E_CERTIFICATION_FAILURE) 185 #undef ENTRY 186 } 187 188 return NULL; 188 189 } 189 190 190 191 /*********************************************************************** 191 * AMGetErrorTextA(quartz.@)192 * AMGetErrorTextA (quartz.@) 192 193 */ 193 194 DWORD WINAPI AMGetErrorTextA(HRESULT hr, LPSTR pszbuf, DWORD dwBufLen) 194 195 { 195 LPCSTRlpszRes;196 DWORD len;197 198 lpszRes = hresult_to_string( hr );199 if ( lpszRes == NULL )200 return 0;201 len = (DWORD)(strlen(lpszRes)+1);202 if ( len > dwBufLen )203 return 0;204 205 memcpy( pszbuf, lpszRes, len );206 return len;196 LPCSTR lpszRes; 197 DWORD len; 198 199 lpszRes = hresult_to_string( hr ); 200 if ( lpszRes == NULL ) 201 return 0; 202 len = (DWORD)(strlen(lpszRes)+1); 203 if ( len > dwBufLen ) 204 return 0; 205 206 memcpy( pszbuf, lpszRes, len ); 207 return len; 207 208 } 208 209 209 210 /*********************************************************************** 210 * AMGetErrorTextW(quartz.@)211 * AMGetErrorTextW (quartz.@) 211 212 */ 212 213 DWORD WINAPI AMGetErrorTextW(HRESULT hr, LPWSTR pwszbuf, DWORD dwBufLen) 213 214 { 214 CHARszBuf[MAX_ERROR_TEXT_LEN+1];215 DWORDdwLen;216 217 dwLen = AMGetErrorTextA(hr,szBuf,MAX_ERROR_TEXT_LEN);218 if ( dwLen == 0 )219 return 0;220 szBuf[dwLen] = 0;221 222 QUARTZ_strncpyAtoW( pwszbuf, szBuf, dwBufLen );223 224 return lstrlenW( pwszbuf );225 } 215 CHAR szBuf[MAX_ERROR_TEXT_LEN+1]; 216 DWORD dwLen; 217 218 dwLen = AMGetErrorTextA(hr,szBuf,MAX_ERROR_TEXT_LEN); 219 if ( dwLen == 0 ) 220 return 0; 221 szBuf[dwLen] = 0; 222 223 QUARTZ_strncpyAtoW( pwszbuf, szBuf, dwBufLen ); 224 225 return lstrlenW( pwszbuf ); 226 } -
trunk/src/quartz/complist.c
r6578 r6649 1 /* $Id: complist.c,v 1.2 2001-09-05 13:36:34 bird Exp $ */ 1 2 /* 2 3 * List of components. (for internal use) … … 24 25 struct QUARTZ_CompList 25 26 { 26 QUARTZ_CompListItem*pFirst;27 QUARTZ_CompListItem*pLast;27 QUARTZ_CompListItem* pFirst; 28 QUARTZ_CompListItem* pLast; 28 29 }; 29 30 30 31 struct QUARTZ_CompListItem 31 32 { 32 IUnknown*punk;33 QUARTZ_CompListItem*pNext;34 QUARTZ_CompListItem*pPrev;33 IUnknown* punk; 34 QUARTZ_CompListItem* pNext; 35 QUARTZ_CompListItem* pPrev; 35 36 }; 36 37 … … 38 39 QUARTZ_CompList* QUARTZ_CompList_Alloc( void ) 39 40 { 40 QUARTZ_CompList*pList;41 QUARTZ_CompList* pList; 41 42 42 pList = (QUARTZ_CompList*)QUARTZ_AllocMem( sizeof(QUARTZ_CompList) );43 if ( pList != NULL )44 {45 /* construct. */46 pList->pFirst = NULL;47 pList->pLast = NULL;48 }43 pList = (QUARTZ_CompList*)QUARTZ_AllocMem( sizeof(QUARTZ_CompList) ); 44 if ( pList != NULL ) 45 { 46 /* construct. */ 47 pList->pFirst = NULL; 48 pList->pLast = NULL; 49 } 49 50 50 return pList;51 return pList; 51 52 } 52 53 53 54 void QUARTZ_CompList_Free( QUARTZ_CompList* pList ) 54 55 { 55 QUARTZ_CompListItem*pCur;56 QUARTZ_CompListItem*pNext;56 QUARTZ_CompListItem* pCur; 57 QUARTZ_CompListItem* pNext; 57 58 58 if ( pList != NULL )59 {60 pCur = pList->pFirst;61 while ( pCur != NULL )62 {63 pNext = pCur->pNext;64 if ( pCur->punk != NULL )65 IUnknown_Release( pCur->punk );66 QUARTZ_FreeMem( pCur );67 pCur = pNext;68 }69 QUARTZ_FreeMem( pList );70 }59 if ( pList != NULL ) 60 { 61 pCur = pList->pFirst; 62 while ( pCur != NULL ) 63 { 64 pNext = pCur->pNext; 65 if ( pCur->punk != NULL ) 66 IUnknown_Release( pCur->punk ); 67 QUARTZ_FreeMem( pCur ); 68 pCur = pNext; 69 } 70 QUARTZ_FreeMem( pList ); 71 } 71 72 } 72 73 73 74 QUARTZ_CompList* QUARTZ_CompList_Dup( QUARTZ_CompList* pList ) 74 75 { 75 QUARTZ_CompList*pNewList;76 QUARTZ_CompListItem*pCur;77 HRESULThr;76 QUARTZ_CompList* pNewList; 77 QUARTZ_CompListItem* pCur; 78 HRESULT hr; 78 79 79 pNewList = QUARTZ_CompList_Alloc();80 if ( pNewList == NULL )81 return NULL;80 pNewList = QUARTZ_CompList_Alloc(); 81 if ( pNewList == NULL ) 82 return NULL; 82 83 83 pCur = pList->pFirst;84 while ( pCur != NULL )85 {86 if ( pCur->punk != NULL )87 {88 hr = QUARTZ_CompList_AddComp( pNewList, pCur->punk );89 if ( FAILED(hr) )90 {91 QUARTZ_CompList_Free( pNewList );92 return NULL;93 }94 }95 pCur = pCur->pNext;96 }84 pCur = pList->pFirst; 85 while ( pCur != NULL ) 86 { 87 if ( pCur->punk != NULL ) 88 { 89 hr = QUARTZ_CompList_AddComp( pNewList, pCur->punk ); 90 if ( FAILED(hr) ) 91 { 92 QUARTZ_CompList_Free( pNewList ); 93 return NULL; 94 } 95 } 96 pCur = pCur->pNext; 97 } 97 98 98 return pNewList;99 return pNewList; 99 100 } 100 101 101 102 HRESULT QUARTZ_CompList_AddComp( QUARTZ_CompList* pList, IUnknown* punk ) 102 103 { 103 QUARTZ_CompListItem*pItem;104 QUARTZ_CompListItem* pItem; 104 105 105 pItem = (QUARTZ_CompListItem*)QUARTZ_AllocMem( sizeof(QUARTZ_CompListItem) );106 if ( pItem == NULL )107 return E_OUTOFMEMORY; /* out of memory. */108 pItem->punk = punk; IUnknown_AddRef(punk);106 pItem = (QUARTZ_CompListItem*)QUARTZ_AllocMem( sizeof(QUARTZ_CompListItem) ); 107 if ( pItem == NULL ) 108 return E_OUTOFMEMORY; /* out of memory. */ 109 pItem->punk = punk; IUnknown_AddRef(punk); 109 110 110 if ( pList->pFirst != NULL )111 pList->pFirst->pPrev = pItem;112 else113 pList->pLast = pItem;114 pList->pFirst = pItem;115 pItem->pNext = pList->pFirst;116 pItem->pPrev = NULL;111 if ( pList->pFirst != NULL ) 112 pList->pFirst->pPrev = pItem; 113 else 114 pList->pLast = pItem; 115 pList->pFirst = pItem; 116 pItem->pNext = pList->pFirst; 117 pItem->pPrev = NULL; 117 118 118 return S_OK;119 return S_OK; 119 120 } 120 121 121 122 HRESULT QUARTZ_CompList_RemoveComp( QUARTZ_CompList* pList, IUnknown* punk ) 122 123 { 123 QUARTZ_CompListItem*pCur;124 QUARTZ_CompListItem* pCur; 124 125 125 pCur = QUARTZ_CompList_SearchComp( pList, punk );126 if ( pCur == NULL )127 return S_FALSE; /* already removed. */126 pCur = QUARTZ_CompList_SearchComp( pList, punk ); 127 if ( pCur == NULL ) 128 return S_FALSE; /* already removed. */ 128 129 129 /* remove from list. */130 if ( pCur->pNext != NULL )131 pCur->pNext->pPrev = pCur->pPrev;132 else133 pList->pLast = pCur->pPrev;134 if ( pCur->pPrev != NULL )135 pCur->pPrev->pNext = pCur->pNext;136 else137 pList->pFirst = pCur->pNext;130 /* remove from list. */ 131 if ( pCur->pNext != NULL ) 132 pCur->pNext->pPrev = pCur->pPrev; 133 else 134 pList->pLast = pCur->pPrev; 135 if ( pCur->pPrev != NULL ) 136 pCur->pPrev->pNext = pCur->pNext; 137 else 138 pList->pFirst = pCur->pNext; 138 139 139 /* release this item. */140 if ( pCur->punk != NULL )141 IUnknown_Release( pCur->punk );142 QUARTZ_FreeMem( pCur );140 /* release this item. */ 141 if ( pCur->punk != NULL ) 142 IUnknown_Release( pCur->punk ); 143 QUARTZ_FreeMem( pCur ); 143 144 144 return S_OK;145 return S_OK; 145 146 } 146 147 147 148 QUARTZ_CompListItem* QUARTZ_CompList_SearchComp( 148 QUARTZ_CompList* pList, IUnknown* punk )149 QUARTZ_CompList* pList, IUnknown* punk ) 149 150 { 150 QUARTZ_CompListItem*pCur;151 QUARTZ_CompListItem* pCur; 151 152 152 pCur = pList->pFirst;153 while ( pCur != NULL )154 {155 if ( pCur->punk == punk )156 return pCur;157 pCur = pCur->pNext;158 }153 pCur = pList->pFirst; 154 while ( pCur != NULL ) 155 { 156 if ( pCur->punk == punk ) 157 return pCur; 158 pCur = pCur->pNext; 159 } 159 160 160 return NULL;161 return NULL; 161 162 } 162 163 163 164 QUARTZ_CompListItem* QUARTZ_CompList_GetFirst( 164 QUARTZ_CompList* pList )165 QUARTZ_CompList* pList ) 165 166 { 166 return pList->pFirst;167 return pList->pFirst; 167 168 } 168 169 169 170 QUARTZ_CompListItem* QUARTZ_CompList_GetNext( 170 QUARTZ_CompList* pList, QUARTZ_CompListItem* pPrev )171 QUARTZ_CompList* pList, QUARTZ_CompListItem* pPrev ) 171 172 { 172 return pPrev->pNext;173 return pPrev->pNext; 173 174 } 174 175 175 176 IUnknown* QUARTZ_CompList_GetItemPtr( QUARTZ_CompListItem* pItem ) 176 177 { 177 return pItem->punk;178 return pItem->punk; 178 179 } -
trunk/src/quartz/fgraph.c
r6578 r6649 1 /* $Id: fgraph.c,v 1.3 2001-09-05 13:36:34 bird Exp $ */ 1 2 /* 2 3 * Implementation of CLSID_FilterGraph. … … 43 44 HRESULT QUARTZ_CreateFilterGraph(IUnknown* punkOuter,void** ppobj) 44 45 { 45 CFilterGraph*pfg;46 CFilterGraph* pfg; 46 47 47 TRACE("(%p,%p)\n",punkOuter,ppobj);48 TRACE("(%p,%p)\n",punkOuter,ppobj); 48 49 49 pfg = (CFilterGraph*)QUARTZ_AllocObj( sizeof(CFilterGraph) );50 if ( pfg == NULL )51 return E_OUTOFMEMORY;50 pfg = (CFilterGraph*)QUARTZ_AllocObj( sizeof(CFilterGraph) ); 51 if ( pfg == NULL ) 52 return E_OUTOFMEMORY; 52 53 53 QUARTZ_IUnkInit( &pfg->unk, punkOuter );54 CFilterGraph_InitIFilterGraph2( pfg );55 CFilterGraph_InitIMediaControl( pfg );56 CFilterGraph_InitIMediaEventEx( pfg );57 CFilterGraph_InitIMediaPosition( pfg );58 CFilterGraph_InitIMediaSeeking( pfg );59 CFilterGraph_InitIBasicVideo2( pfg );60 CFilterGraph_InitIBasicAudio( pfg );61 CFilterGraph_InitIVideoWindow( pfg );54 QUARTZ_IUnkInit( &pfg->unk, punkOuter ); 55 CFilterGraph_InitIFilterGraph2( pfg ); 56 CFilterGraph_InitIMediaControl( pfg ); 57 CFilterGraph_InitIMediaEventEx( pfg ); 58 CFilterGraph_InitIMediaPosition( pfg ); 59 CFilterGraph_InitIMediaSeeking( pfg ); 60 CFilterGraph_InitIBasicVideo2( pfg ); 61 CFilterGraph_InitIBasicAudio( pfg ); 62 CFilterGraph_InitIVideoWindow( pfg ); 62 63 63 pfg->unk.pEntries = IFEntries;64 pfg->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);64 pfg->unk.pEntries = IFEntries; 65 pfg->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]); 65 66 66 *ppobj = (void*)(&pfg->unk);67 *ppobj = (void*)(&pfg->unk); 67 68 68 return S_OK;69 return S_OK; 69 70 } -
trunk/src/quartz/guid.c
r6578 r6649 1 /* $Id: guid.c,v 1.3 2001-09-05 13:36:35 bird Exp $ */ 1 2 // This causes all the DEFINE_GUID macros to instantiate their GUID's 2 3 #define INITGUID -
trunk/src/quartz/ibasaud.c
r6578 r6649 1 /* $Id: ibasaud.c,v 1.2 2001-09-05 13:36:35 bird Exp $ */ 1 2 /* 2 3 * Implementation of IBasicAudio for FilterGraph. … … 30 31 IBasicAudio_fnQueryInterface(IBasicAudio* iface,REFIID riid,void** ppobj) 31 32 { 32 CFilterGraph_THIS(iface,basaud);33 CFilterGraph_THIS(iface,basaud); 33 34 34 TRACE("(%p)->()\n",This);35 TRACE("(%p)->()\n",This); 35 36 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);37 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 37 38 } 38 39 … … 40 41 IBasicAudio_fnAddRef(IBasicAudio* iface) 41 42 { 42 CFilterGraph_THIS(iface,basaud);43 CFilterGraph_THIS(iface,basaud); 43 44 44 TRACE("(%p)->()\n",This);45 TRACE("(%p)->()\n",This); 45 46 46 return IUnknown_AddRef(This->unk.punkControl);47 return IUnknown_AddRef(This->unk.punkControl); 47 48 } 48 49 … … 50 51 IBasicAudio_fnRelease(IBasicAudio* iface) 51 52 { 52 CFilterGraph_THIS(iface,basaud);53 CFilterGraph_THIS(iface,basaud); 53 54 54 TRACE("(%p)->()\n",This);55 TRACE("(%p)->()\n",This); 55 56 56 return IUnknown_Release(This->unk.punkControl);57 return IUnknown_Release(This->unk.punkControl); 57 58 } 58 59 … … 60 61 IBasicAudio_fnGetTypeInfoCount(IBasicAudio* iface,UINT* pcTypeInfo) 61 62 { 62 CFilterGraph_THIS(iface,basaud);63 CFilterGraph_THIS(iface,basaud); 63 64 64 FIXME("(%p)->()\n",This);65 FIXME("(%p)->()\n",This); 65 66 66 return E_NOTIMPL;67 return E_NOTIMPL; 67 68 } 68 69 … … 70 71 IBasicAudio_fnGetTypeInfo(IBasicAudio* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj) 71 72 { 72 CFilterGraph_THIS(iface,basaud);73 CFilterGraph_THIS(iface,basaud); 73 74 74 FIXME("(%p)->()\n",This);75 FIXME("(%p)->()\n",This); 75 76 76 return E_NOTIMPL;77 return E_NOTIMPL; 77 78 } 78 79 … … 80 81 IBasicAudio_fnGetIDsOfNames(IBasicAudio* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId) 81 82 { 82 CFilterGraph_THIS(iface,basaud);83 CFilterGraph_THIS(iface,basaud); 83 84 84 FIXME("(%p)->()\n",This);85 FIXME("(%p)->()\n",This); 85 86 86 return E_NOTIMPL;87 return E_NOTIMPL; 87 88 } 88 89 … … 90 91 IBasicAudio_fnInvoke(IBasicAudio* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr) 91 92 { 92 CFilterGraph_THIS(iface,basaud);93 CFilterGraph_THIS(iface,basaud); 93 94 94 FIXME("(%p)->()\n",This);95 FIXME("(%p)->()\n",This); 95 96 96 return E_NOTIMPL;97 return E_NOTIMPL; 97 98 } 98 99 … … 101 102 IBasicAudio_fnput_Volume(IBasicAudio* iface,long lVol) 102 103 { 103 CFilterGraph_THIS(iface,basaud);104 CFilterGraph_THIS(iface,basaud); 104 105 105 FIXME("(%p)->()\n",This);106 FIXME("(%p)->()\n",This); 106 107 107 return E_NOTIMPL;108 return E_NOTIMPL; 108 109 } 109 110 … … 111 112 IBasicAudio_fnget_Volume(IBasicAudio* iface,long* plVol) 112 113 { 113 CFilterGraph_THIS(iface,basaud);114 CFilterGraph_THIS(iface,basaud); 114 115 115 FIXME("(%p)->()\n",This);116 FIXME("(%p)->()\n",This); 116 117 117 return E_NOTIMPL;118 return E_NOTIMPL; 118 119 } 119 120 … … 121 122 IBasicAudio_fnput_Balance(IBasicAudio* iface,long lBalance) 122 123 { 123 CFilterGraph_THIS(iface,basaud);124 CFilterGraph_THIS(iface,basaud); 124 125 125 FIXME("(%p)->()\n",This);126 FIXME("(%p)->()\n",This); 126 127 127 return E_NOTIMPL;128 return E_NOTIMPL; 128 129 } 129 130 … … 131 132 IBasicAudio_fnget_Balance(IBasicAudio* iface,long* plBalance) 132 133 { 133 CFilterGraph_THIS(iface,basaud);134 CFilterGraph_THIS(iface,basaud); 134 135 135 FIXME("(%p)->()\n",This);136 FIXME("(%p)->()\n",This); 136 137 137 return E_NOTIMPL;138 return E_NOTIMPL; 138 139 } 139 140 … … 141 142 static ICOM_VTABLE(IBasicAudio) ibasicaudio = 142 143 { 143 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE144 /* IUnknown fields */145 IBasicAudio_fnQueryInterface,146 IBasicAudio_fnAddRef,147 IBasicAudio_fnRelease,148 /* IDispatch fields */149 IBasicAudio_fnGetTypeInfoCount,150 IBasicAudio_fnGetTypeInfo,151 IBasicAudio_fnGetIDsOfNames,152 IBasicAudio_fnInvoke,153 /* IBasicAudio fields */154 IBasicAudio_fnput_Volume,155 IBasicAudio_fnget_Volume,156 IBasicAudio_fnput_Balance,157 IBasicAudio_fnget_Balance,144 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 145 /* IUnknown fields */ 146 IBasicAudio_fnQueryInterface, 147 IBasicAudio_fnAddRef, 148 IBasicAudio_fnRelease, 149 /* IDispatch fields */ 150 IBasicAudio_fnGetTypeInfoCount, 151 IBasicAudio_fnGetTypeInfo, 152 IBasicAudio_fnGetIDsOfNames, 153 IBasicAudio_fnInvoke, 154 /* IBasicAudio fields */ 155 IBasicAudio_fnput_Volume, 156 IBasicAudio_fnget_Volume, 157 IBasicAudio_fnput_Balance, 158 IBasicAudio_fnget_Balance, 158 159 }; 159 160 … … 161 162 void CFilterGraph_InitIBasicAudio( CFilterGraph* pfg ) 162 163 { 163 TRACE("(%p)\n",pfg);164 ICOM_VTBL(&pfg->basaud) = &ibasicaudio;164 TRACE("(%p)\n",pfg); 165 ICOM_VTBL(&pfg->basaud) = &ibasicaudio; 165 166 } 166 167 -
trunk/src/quartz/ibasvid.c
r6578 r6649 1 /* $Id: ibasvid.c,v 1.2 2001-09-05 13:36:35 bird Exp $ */ 1 2 /* 2 3 * Implementation of IBasicVideo2 for FilterGraph. … … 29 30 IBasicVideo2_fnQueryInterface(IBasicVideo2* iface,REFIID riid,void** ppobj) 30 31 { 31 CFilterGraph_THIS(iface,basvid);32 33 TRACE("(%p)->()\n",This);34 35 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);32 CFilterGraph_THIS(iface,basvid); 33 34 TRACE("(%p)->()\n",This); 35 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 36 37 } 37 38 … … 39 40 IBasicVideo2_fnAddRef(IBasicVideo2* iface) 40 41 { 41 CFilterGraph_THIS(iface,basvid);42 43 TRACE("(%p)->()\n",This);44 45 return IUnknown_AddRef(This->unk.punkControl);42 CFilterGraph_THIS(iface,basvid); 43 44 TRACE("(%p)->()\n",This); 45 46 return IUnknown_AddRef(This->unk.punkControl); 46 47 } 47 48 … … 49 50 IBasicVideo2_fnRelease(IBasicVideo2* iface) 50 51 { 51 CFilterGraph_THIS(iface,basvid);52 53 TRACE("(%p)->()\n",This);54 55 return IUnknown_Release(This->unk.punkControl);52 CFilterGraph_THIS(iface,basvid); 53 54 TRACE("(%p)->()\n",This); 55 56 return IUnknown_Release(This->unk.punkControl); 56 57 } 57 58 … … 59 60 IBasicVideo2_fnGetTypeInfoCount(IBasicVideo2* iface,UINT* pcTypeInfo) 60 61 { 61 CFilterGraph_THIS(iface,basvid);62 63 FIXME("(%p)->()\n",This);64 65 return E_NOTIMPL;62 CFilterGraph_THIS(iface,basvid); 63 64 FIXME("(%p)->()\n",This); 65 66 return E_NOTIMPL; 66 67 } 67 68 … … 69 70 IBasicVideo2_fnGetTypeInfo(IBasicVideo2* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj) 70 71 { 71 CFilterGraph_THIS(iface,basvid);72 73 FIXME("(%p)->()\n",This);74 75 return E_NOTIMPL;72 CFilterGraph_THIS(iface,basvid); 73 74 FIXME("(%p)->()\n",This); 75 76 return E_NOTIMPL; 76 77 } 77 78 … … 79 80 IBasicVideo2_fnGetIDsOfNames(IBasicVideo2* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId) 80 81 { 81 CFilterGraph_THIS(iface,basvid);82 83 FIXME("(%p)->()\n",This);84 85 return E_NOTIMPL;82 CFilterGraph_THIS(iface,basvid); 83 84 FIXME("(%p)->()\n",This); 85 86 return E_NOTIMPL; 86 87 } 87 88 … … 89 90 IBasicVideo2_fnInvoke(IBasicVideo2* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr) 90 91 { 91 CFilterGraph_THIS(iface,basvid);92 93 FIXME("(%p)->()\n",This);94 95 return E_NOTIMPL;92 CFilterGraph_THIS(iface,basvid); 93 94 FIXME("(%p)->()\n",This); 95 96 return E_NOTIMPL; 96 97 } 97 98 … … 100 101 IBasicVideo2_fnget_AvgTimePerFrame(IBasicVideo2* iface,REFTIME* prefTime) 101 102 { 102 CFilterGraph_THIS(iface,basvid);103 104 FIXME("(%p)->()\n",This);105 106 return E_NOTIMPL;103 CFilterGraph_THIS(iface,basvid); 104 105 FIXME("(%p)->()\n",This); 106 107 return E_NOTIMPL; 107 108 } 108 109 … … 110 111 IBasicVideo2_fnget_BitRate(IBasicVideo2* iface,long* plRate) 111 112 { 112 CFilterGraph_THIS(iface,basvid);113 114 FIXME("(%p)->()\n",This);115 116 return E_NOTIMPL;113 CFilterGraph_THIS(iface,basvid); 114 115 FIXME("(%p)->()\n",This); 116 117 return E_NOTIMPL; 117 118 } 118 119 … … 120 121 IBasicVideo2_fnget_BitErrorRate(IBasicVideo2* iface,long* plRate) 121 122 { 122 CFilterGraph_THIS(iface,basvid);123 124 FIXME("(%p)->()\n",This);125 126 return E_NOTIMPL;123 CFilterGraph_THIS(iface,basvid); 124 125 FIXME("(%p)->()\n",This); 126 127 return E_NOTIMPL; 127 128 } 128 129 … … 130 131 IBasicVideo2_fnget_VideoWidth(IBasicVideo2* iface,long* plWidth) 131 132 { 132 CFilterGraph_THIS(iface,basvid);133 134 FIXME("(%p)->()\n",This);135 136 return E_NOTIMPL;133 CFilterGraph_THIS(iface,basvid); 134 135 FIXME("(%p)->()\n",This); 136 137 return E_NOTIMPL; 137 138 } 138 139 … … 140 141 IBasicVideo2_fnget_VideoHeight(IBasicVideo2* iface,long* plHeight) 141 142 { 142 CFilterGraph_THIS(iface,basvid);143 144 FIXME("(%p)->()\n",This);145 146 return E_NOTIMPL;143 CFilterGraph_THIS(iface,basvid); 144 145 FIXME("(%p)->()\n",This); 146 147 return E_NOTIMPL; 147 148 } 148 149 … … 150 151 IBasicVideo2_fnput_SourceLeft(IBasicVideo2* iface,long lLeft) 151 152 { 152 CFilterGraph_THIS(iface,basvid);153 154 FIXME("(%p)->()\n",This);155 156 return E_NOTIMPL;153 CFilterGraph_THIS(iface,basvid); 154 155 FIXME("(%p)->()\n",This); 156 157 return E_NOTIMPL; 157 158 } 158 159 … … 160 161 IBasicVideo2_fnget_SourceLeft(IBasicVideo2* iface,long* plLeft) 161 162 { 162 CFilterGraph_THIS(iface,basvid);163 164 FIXME("(%p)->()\n",This);165 166 return E_NOTIMPL;163 CFilterGraph_THIS(iface,basvid); 164 165 FIXME("(%p)->()\n",This); 166 167 return E_NOTIMPL; 167 168 } 168 169 … … 170 171 IBasicVideo2_fnput_SourceWidth(IBasicVideo2* iface,long lWidth) 171 172 { 172 CFilterGraph_THIS(iface,basvid);173 174 FIXME("(%p)->()\n",This);175 176 return E_NOTIMPL;173 CFilterGraph_THIS(iface,basvid); 174 175 FIXME("(%p)->()\n",This); 176 177 return E_NOTIMPL; 177 178 } 178 179 … … 180 181 IBasicVideo2_fnget_SourceWidth(IBasicVideo2* iface,long* plWidth) 181 182 { 182 CFilterGraph_THIS(iface,basvid);183 184 FIXME("(%p)->()\n",This);185 186 return E_NOTIMPL;183 CFilterGraph_THIS(iface,basvid); 184 185 FIXME("(%p)->()\n",This); 186 187 return E_NOTIMPL; 187 188 } 188 189 … … 190 191 IBasicVideo2_fnput_SourceTop(IBasicVideo2* iface,long lTop) 191 192 { 192 CFilterGraph_THIS(iface,basvid);193 194 FIXME("(%p)->()\n",This);195 196 return E_NOTIMPL;193 CFilterGraph_THIS(iface,basvid); 194 195 FIXME("(%p)->()\n",This); 196 197 return E_NOTIMPL; 197 198 } 198 199 … … 200 201 IBasicVideo2_fnget_SourceTop(IBasicVideo2* iface,long* plTop) 201 202 { 202 CFilterGraph_THIS(iface,basvid);203 204 FIXME("(%p)->()\n",This);205 206 return E_NOTIMPL;203 CFilterGraph_THIS(iface,basvid); 204 205 FIXME("(%p)->()\n",This); 206 207 return E_NOTIMPL; 207 208 } 208 209 … … 210 211 IBasicVideo2_fnput_SourceHeight(IBasicVideo2* iface,long lHeight) 211 212 { 212 CFilterGraph_THIS(iface,basvid);213 214 FIXME("(%p)->()\n",This);215 216 return E_NOTIMPL;213 CFilterGraph_THIS(iface,basvid); 214 215 FIXME("(%p)->()\n",This); 216 217 return E_NOTIMPL; 217 218 } 218 219 … … 220 221 IBasicVideo2_fnget_SourceHeight(IBasicVideo2* iface,long* plHeight) 221 222 { 222 CFilterGraph_THIS(iface,basvid);223 224 FIXME("(%p)->()\n",This);225 226 return E_NOTIMPL;223 CFilterGraph_THIS(iface,basvid); 224 225 FIXME("(%p)->()\n",This); 226 227 return E_NOTIMPL; 227 228 } 228 229 … … 230 231 IBasicVideo2_fnput_DestinationLeft(IBasicVideo2* iface,long lLeft) 231 232 { 232 CFilterGraph_THIS(iface,basvid);233 234 FIXME("(%p)->()\n",This);235 236 return E_NOTIMPL;233 CFilterGraph_THIS(iface,basvid); 234 235 FIXME("(%p)->()\n",This); 236 237 return E_NOTIMPL; 237 238 } 238 239 … … 240 241 IBasicVideo2_fnget_DestinationLeft(IBasicVideo2* iface,long* plLeft) 241 242 { 242 CFilterGraph_THIS(iface,basvid);243 244 FIXME("(%p)->()\n",This);245 246 return E_NOTIMPL;243 CFilterGraph_THIS(iface,basvid); 244 245 FIXME("(%p)->()\n",This); 246 247 return E_NOTIMPL; 247 248 } 248 249 … … 250 251 IBasicVideo2_fnput_DestinationWidth(IBasicVideo2* iface,long lWidth) 251 252 { 252 CFilterGraph_THIS(iface,basvid);253 254 FIXME("(%p)->()\n",This);255 256 return E_NOTIMPL;253 CFilterGraph_THIS(iface,basvid); 254 255 FIXME("(%p)->()\n",This); 256 257 return E_NOTIMPL; 257 258 } 258 259 … … 260 261 IBasicVideo2_fnget_DestinationWidth(IBasicVideo2* iface,long* plWidth) 261 262 { 262 CFilterGraph_THIS(iface,basvid);263 264 FIXME("(%p)->()\n",This);265 266 return E_NOTIMPL;263 CFilterGraph_THIS(iface,basvid); 264 265 FIXME("(%p)->()\n",This); 266 267 return E_NOTIMPL; 267 268 } 268 269 … … 270 271 IBasicVideo2_fnput_DestinationTop(IBasicVideo2* iface,long lTop) 271 272 { 272 CFilterGraph_THIS(iface,basvid);273 274 FIXME("(%p)->()\n",This);275 276 return E_NOTIMPL;273 CFilterGraph_THIS(iface,basvid); 274 275 FIXME("(%p)->()\n",This); 276 277 return E_NOTIMPL; 277 278 } 278 279 … … 280 281 IBasicVideo2_fnget_DestinationTop(IBasicVideo2* iface,long* plTop) 281 282 { 282 CFilterGraph_THIS(iface,basvid);283 284 FIXME("(%p)->()\n",This);285 286 return E_NOTIMPL;283 CFilterGraph_THIS(iface,basvid); 284 285 FIXME("(%p)->()\n",This); 286 287 return E_NOTIMPL; 287 288 } 288 289 … … 290 291 IBasicVideo2_fnput_DestinationHeight(IBasicVideo2* iface,long lHeight) 291 292 { 292 CFilterGraph_THIS(iface,basvid);293 294 FIXME("(%p)->()\n",This);295 296 return E_NOTIMPL;293 CFilterGraph_THIS(iface,basvid); 294 295 FIXME("(%p)->()\n",This); 296 297 return E_NOTIMPL; 297 298 } 298 299 … … 300 301 IBasicVideo2_fnget_DestinationHeight(IBasicVideo2* iface,long* plHeight) 301 302 { 302 CFilterGraph_THIS(iface,basvid);303 304 FIXME("(%p)->()\n",This);305 306 return E_NOTIMPL;303 CFilterGraph_THIS(iface,basvid); 304 305 FIXME("(%p)->()\n",This); 306 307 return E_NOTIMPL; 307 308 } 308 309 … … 310 311 IBasicVideo2_fnSetSourcePosition(IBasicVideo2* iface,long lLeft,long lTop,long lWidth,long lHeight) 311 312 { 312 CFilterGraph_THIS(iface,basvid);313 314 FIXME("(%p)->()\n",This);315 316 return E_NOTIMPL;313 CFilterGraph_THIS(iface,basvid); 314 315 FIXME("(%p)->()\n",This); 316 317 return E_NOTIMPL; 317 318 } 318 319 … … 320 321 IBasicVideo2_fnGetSourcePosition(IBasicVideo2* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight) 321 322 { 322 CFilterGraph_THIS(iface,basvid);323 324 FIXME("(%p)->()\n",This);325 326 return E_NOTIMPL;323 CFilterGraph_THIS(iface,basvid); 324 325 FIXME("(%p)->()\n",This); 326 327 return E_NOTIMPL; 327 328 } 328 329 … … 330 331 IBasicVideo2_fnSetDefaultSourcePosition(IBasicVideo2* iface) 331 332 { 332 CFilterGraph_THIS(iface,basvid);333 334 FIXME("(%p)->()\n",This);335 336 return E_NOTIMPL;333 CFilterGraph_THIS(iface,basvid); 334 335 FIXME("(%p)->()\n",This); 336 337 return E_NOTIMPL; 337 338 } 338 339 … … 340 341 IBasicVideo2_fnSetDestinationPosition(IBasicVideo2* iface,long lLeft,long lTop,long lWidth,long lHeight) 341 342 { 342 CFilterGraph_THIS(iface,basvid);343 344 FIXME("(%p)->()\n",This);345 346 return E_NOTIMPL;343 CFilterGraph_THIS(iface,basvid); 344 345 FIXME("(%p)->()\n",This); 346 347 return E_NOTIMPL; 347 348 } 348 349 … … 350 351 IBasicVideo2_fnGetDestinationPosition(IBasicVideo2* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight) 351 352 { 352 CFilterGraph_THIS(iface,basvid);353 354 FIXME("(%p)->()\n",This);355 356 return E_NOTIMPL;353 CFilterGraph_THIS(iface,basvid); 354 355 FIXME("(%p)->()\n",This); 356 357 return E_NOTIMPL; 357 358 } 358 359 … … 360 361 IBasicVideo2_fnSetDefaultDestinationPosition(IBasicVideo2* iface) 361 362 { 362 CFilterGraph_THIS(iface,basvid);363 364 FIXME("(%p)->()\n",This);365 366 return E_NOTIMPL;363 CFilterGraph_THIS(iface,basvid); 364 365 FIXME("(%p)->()\n",This); 366 367 return E_NOTIMPL; 367 368 } 368 369 … … 370 371 IBasicVideo2_fnGetVideoSize(IBasicVideo2* iface,long* plWidth,long* plHeight) 371 372 { 372 CFilterGraph_THIS(iface,basvid);373 374 FIXME("(%p)->()\n",This);375 376 return E_NOTIMPL;373 CFilterGraph_THIS(iface,basvid); 374 375 FIXME("(%p)->()\n",This); 376 377 return E_NOTIMPL; 377 378 } 378 379 … … 380 381 IBasicVideo2_fnGetVideoPaletteEntries(IBasicVideo2* iface,long lStart,long lCount,long* plRet,long* plPaletteEntry) 381 382 { 382 CFilterGraph_THIS(iface,basvid);383 384 FIXME("(%p)->()\n",This);385 386 return E_NOTIMPL;383 CFilterGraph_THIS(iface,basvid); 384 385 FIXME("(%p)->()\n",This); 386 387 return E_NOTIMPL; 387 388 } 388 389 … … 390 391 IBasicVideo2_fnGetCurrentImage(IBasicVideo2* iface,long* plBufferSize,long* plDIBBuffer) 391 392 { 392 CFilterGraph_THIS(iface,basvid);393 394 FIXME("(%p)->()\n",This);395 396 return E_NOTIMPL;393 CFilterGraph_THIS(iface,basvid); 394 395 FIXME("(%p)->()\n",This); 396 397 return E_NOTIMPL; 397 398 } 398 399 … … 400 401 IBasicVideo2_fnIsUsingDefaultSource(IBasicVideo2* iface) 401 402 { 402 CFilterGraph_THIS(iface,basvid);403 404 FIXME("(%p)->()\n",This);405 406 return E_NOTIMPL;403 CFilterGraph_THIS(iface,basvid); 404 405 FIXME("(%p)->()\n",This); 406 407 return E_NOTIMPL; 407 408 } 408 409 … … 410 411 IBasicVideo2_fnIsUsingDefaultDestination(IBasicVideo2* iface) 411 412 { 412 CFilterGraph_THIS(iface,basvid);413 414 FIXME("(%p)->()\n",This);415 416 return E_NOTIMPL;413 CFilterGraph_THIS(iface,basvid); 414 415 FIXME("(%p)->()\n",This); 416 417 return E_NOTIMPL; 417 418 } 418 419 … … 420 421 IBasicVideo2_fnGetPreferredAspectRatio(IBasicVideo2* iface,long* plRateX,long* plRateY) 421 422 { 422 CFilterGraph_THIS(iface,basvid);423 424 FIXME("(%p)->()\n",This);425 426 return E_NOTIMPL;423 CFilterGraph_THIS(iface,basvid); 424 425 FIXME("(%p)->()\n",This); 426 427 return E_NOTIMPL; 427 428 } 428 429 … … 432 433 static ICOM_VTABLE(IBasicVideo2) ibasicvideo = 433 434 { 434 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE435 /* IUnknown fields */436 IBasicVideo2_fnQueryInterface,437 IBasicVideo2_fnAddRef,438 IBasicVideo2_fnRelease,439 /* IDispatch fields */440 IBasicVideo2_fnGetTypeInfoCount,441 IBasicVideo2_fnGetTypeInfo,442 IBasicVideo2_fnGetIDsOfNames,443 IBasicVideo2_fnInvoke,444 /* IBasicVideo fields */445 IBasicVideo2_fnget_AvgTimePerFrame,446 IBasicVideo2_fnget_BitRate,447 IBasicVideo2_fnget_BitErrorRate,448 IBasicVideo2_fnget_VideoWidth,449 IBasicVideo2_fnget_VideoHeight,450 IBasicVideo2_fnput_SourceLeft,451 IBasicVideo2_fnget_SourceLeft,452 IBasicVideo2_fnput_SourceWidth,453 IBasicVideo2_fnget_SourceWidth,454 IBasicVideo2_fnput_SourceTop,455 IBasicVideo2_fnget_SourceTop,456 IBasicVideo2_fnput_SourceHeight,457 IBasicVideo2_fnget_SourceHeight,458 IBasicVideo2_fnput_DestinationLeft,459 IBasicVideo2_fnget_DestinationLeft,460 IBasicVideo2_fnput_DestinationWidth,461 IBasicVideo2_fnget_DestinationWidth,462 IBasicVideo2_fnput_DestinationTop,463 IBasicVideo2_fnget_DestinationTop,464 IBasicVideo2_fnput_DestinationHeight,465 IBasicVideo2_fnget_DestinationHeight,466 IBasicVideo2_fnSetSourcePosition,467 IBasicVideo2_fnGetSourcePosition,468 IBasicVideo2_fnSetDefaultSourcePosition,469 IBasicVideo2_fnSetDestinationPosition,470 IBasicVideo2_fnGetDestinationPosition,471 IBasicVideo2_fnSetDefaultDestinationPosition,472 IBasicVideo2_fnGetVideoSize,473 IBasicVideo2_fnGetVideoPaletteEntries,474 IBasicVideo2_fnGetCurrentImage,475 IBasicVideo2_fnIsUsingDefaultSource,476 IBasicVideo2_fnIsUsingDefaultDestination,477 /* IBasicVideo2 fields */478 IBasicVideo2_fnGetPreferredAspectRatio,435 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 436 /* IUnknown fields */ 437 IBasicVideo2_fnQueryInterface, 438 IBasicVideo2_fnAddRef, 439 IBasicVideo2_fnRelease, 440 /* IDispatch fields */ 441 IBasicVideo2_fnGetTypeInfoCount, 442 IBasicVideo2_fnGetTypeInfo, 443 IBasicVideo2_fnGetIDsOfNames, 444 IBasicVideo2_fnInvoke, 445 /* IBasicVideo fields */ 446 IBasicVideo2_fnget_AvgTimePerFrame, 447 IBasicVideo2_fnget_BitRate, 448 IBasicVideo2_fnget_BitErrorRate, 449 IBasicVideo2_fnget_VideoWidth, 450 IBasicVideo2_fnget_VideoHeight, 451 IBasicVideo2_fnput_SourceLeft, 452 IBasicVideo2_fnget_SourceLeft, 453 IBasicVideo2_fnput_SourceWidth, 454 IBasicVideo2_fnget_SourceWidth, 455 IBasicVideo2_fnput_SourceTop, 456 IBasicVideo2_fnget_SourceTop, 457 IBasicVideo2_fnput_SourceHeight, 458 IBasicVideo2_fnget_SourceHeight, 459 IBasicVideo2_fnput_DestinationLeft, 460 IBasicVideo2_fnget_DestinationLeft, 461 IBasicVideo2_fnput_DestinationWidth, 462 IBasicVideo2_fnget_DestinationWidth, 463 IBasicVideo2_fnput_DestinationTop, 464 IBasicVideo2_fnget_DestinationTop, 465 IBasicVideo2_fnput_DestinationHeight, 466 IBasicVideo2_fnget_DestinationHeight, 467 IBasicVideo2_fnSetSourcePosition, 468 IBasicVideo2_fnGetSourcePosition, 469 IBasicVideo2_fnSetDefaultSourcePosition, 470 IBasicVideo2_fnSetDestinationPosition, 471 IBasicVideo2_fnGetDestinationPosition, 472 IBasicVideo2_fnSetDefaultDestinationPosition, 473 IBasicVideo2_fnGetVideoSize, 474 IBasicVideo2_fnGetVideoPaletteEntries, 475 IBasicVideo2_fnGetCurrentImage, 476 IBasicVideo2_fnIsUsingDefaultSource, 477 IBasicVideo2_fnIsUsingDefaultDestination, 478 /* IBasicVideo2 fields */ 479 IBasicVideo2_fnGetPreferredAspectRatio, 479 480 }; 480 481 … … 482 483 void CFilterGraph_InitIBasicVideo2( CFilterGraph* pfg ) 483 484 { 484 TRACE("(%p)\n",pfg);485 ICOM_VTBL(&pfg->basvid) = &ibasicvideo;486 } 487 485 TRACE("(%p)\n",pfg); 486 ICOM_VTBL(&pfg->basvid) = &ibasicvideo; 487 } 488 -
trunk/src/quartz/ifgraph.c
r6578 r6649 1 /* $Id: ifgraph.c,v 1.3 2001-09-05 13:36:35 bird Exp $ */ 1 2 /* 2 3 * Implementation of IFilterGraph. … … 29 30 IFilterGraph2_fnQueryInterface(IFilterGraph2* iface,REFIID riid,void** ppobj) 30 31 { 31 CFilterGraph_THIS(iface,fgraph);32 33 TRACE("(%p)->()\n",This);34 35 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);32 CFilterGraph_THIS(iface,fgraph); 33 34 TRACE("(%p)->()\n",This); 35 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 36 37 } 37 38 … … 39 40 IFilterGraph2_fnAddRef(IFilterGraph2* iface) 40 41 { 41 CFilterGraph_THIS(iface,fgraph);42 43 TRACE("(%p)->()\n",This);44 45 return IUnknown_AddRef(This->unk.punkControl);42 CFilterGraph_THIS(iface,fgraph); 43 44 TRACE("(%p)->()\n",This); 45 46 return IUnknown_AddRef(This->unk.punkControl); 46 47 } 47 48 … … 49 50 IFilterGraph2_fnRelease(IFilterGraph2* iface) 50 51 { 51 CFilterGraph_THIS(iface,fgraph);52 53 TRACE("(%p)->()\n",This);54 55 return IUnknown_Release(This->unk.punkControl);52 CFilterGraph_THIS(iface,fgraph); 53 54 TRACE("(%p)->()\n",This); 55 56 return IUnknown_Release(This->unk.punkControl); 56 57 } 57 58 … … 59 60 IFilterGraph2_fnAddFilter(IFilterGraph2* iface,IBaseFilter* pFilter, LPCWSTR pName) 60 61 { 61 CFilterGraph_THIS(iface,fgraph);62 63 FIXME( "(%p)->() stub!\n", This );64 return E_NOTIMPL;62 CFilterGraph_THIS(iface,fgraph); 63 64 FIXME( "(%p)->() stub!\n", This ); 65 return E_NOTIMPL; 65 66 } 66 67 … … 68 69 IFilterGraph2_fnRemoveFilter(IFilterGraph2* iface,IBaseFilter* pFilter) 69 70 { 70 CFilterGraph_THIS(iface,fgraph);71 72 FIXME( "(%p)->() stub!\n", This );73 return E_NOTIMPL;71 CFilterGraph_THIS(iface,fgraph); 72 73 FIXME( "(%p)->() stub!\n", This ); 74 return E_NOTIMPL; 74 75 } 75 76 … … 77 78 IFilterGraph2_fnEnumFilters(IFilterGraph2* iface,IEnumFilters** ppEnum) 78 79 { 79 CFilterGraph_THIS(iface,fgraph);80 81 FIXME( "(%p)->() stub!\n", This );82 return E_NOTIMPL;80 CFilterGraph_THIS(iface,fgraph); 81 82 FIXME( "(%p)->() stub!\n", This ); 83 return E_NOTIMPL; 83 84 } 84 85 … … 86 87 IFilterGraph2_fnFindFilterByName(IFilterGraph2* iface,LPCWSTR pName,IBaseFilter** ppFilter) 87 88 { 88 CFilterGraph_THIS(iface,fgraph);89 90 FIXME( "(%p)->() stub!\n", This );91 return E_NOTIMPL;89 CFilterGraph_THIS(iface,fgraph); 90 91 FIXME( "(%p)->() stub!\n", This ); 92 return E_NOTIMPL; 92 93 } 93 94 … … 95 96 IFilterGraph2_fnConnectDirect(IFilterGraph2* iface,IPin* pOut,IPin* pIn,const AM_MEDIA_TYPE* pmt) 96 97 { 97 CFilterGraph_THIS(iface,fgraph);98 99 FIXME( "(%p)->() stub!\n", This );100 return E_NOTIMPL;98 CFilterGraph_THIS(iface,fgraph); 99 100 FIXME( "(%p)->() stub!\n", This ); 101 return E_NOTIMPL; 101 102 } 102 103 … … 104 105 IFilterGraph2_fnReconnect(IFilterGraph2* iface,IPin* pPin) 105 106 { 106 CFilterGraph_THIS(iface,fgraph);107 108 FIXME( "(%p)->() stub!\n", This );109 return E_NOTIMPL;107 CFilterGraph_THIS(iface,fgraph); 108 109 FIXME( "(%p)->() stub!\n", This ); 110 return E_NOTIMPL; 110 111 } 111 112 … … 113 114 IFilterGraph2_fnDisconnect(IFilterGraph2* iface,IPin* pPin) 114 115 { 115 CFilterGraph_THIS(iface,fgraph);116 117 FIXME( "(%p)->() stub!\n", This );118 return E_NOTIMPL;116 CFilterGraph_THIS(iface,fgraph); 117 118 FIXME( "(%p)->() stub!\n", This ); 119 return E_NOTIMPL; 119 120 } 120 121 … … 122 123 IFilterGraph2_fnSetDefaultSyncSource(IFilterGraph2* iface) 123 124 { 124 CFilterGraph_THIS(iface,fgraph);125 126 FIXME( "(%p)->() stub!\n", This );127 return E_NOTIMPL;125 CFilterGraph_THIS(iface,fgraph); 126 127 FIXME( "(%p)->() stub!\n", This ); 128 return E_NOTIMPL; 128 129 } 129 130 … … 131 132 IFilterGraph2_fnConnect(IFilterGraph2* iface,IPin* pOut,IPin* pIn) 132 133 { 133 CFilterGraph_THIS(iface,fgraph);134 135 FIXME( "(%p)->() stub!\n", This );136 return E_NOTIMPL;134 CFilterGraph_THIS(iface,fgraph); 135 136 FIXME( "(%p)->() stub!\n", This ); 137 return E_NOTIMPL; 137 138 } 138 139 … … 140 141 IFilterGraph2_fnRender(IFilterGraph2* iface,IPin* pOut) 141 142 { 142 CFilterGraph_THIS(iface,fgraph);143 144 FIXME( "(%p)->() stub!\n", This );145 return E_NOTIMPL;143 CFilterGraph_THIS(iface,fgraph); 144 145 FIXME( "(%p)->() stub!\n", This ); 146 return E_NOTIMPL; 146 147 } 147 148 … … 149 150 IFilterGraph2_fnRenderFile(IFilterGraph2* iface,LPCWSTR lpFileName,LPCWSTR lpPlayList) 150 151 { 151 CFilterGraph_THIS(iface,fgraph);152 153 FIXME( "(%p)->() stub!\n", This );154 return E_NOTIMPL;152 CFilterGraph_THIS(iface,fgraph); 153 154 FIXME( "(%p)->() stub!\n", This ); 155 return E_NOTIMPL; 155 156 } 156 157 … … 158 159 IFilterGraph2_fnAddSourceFilter(IFilterGraph2* iface,LPCWSTR lpFileName,LPCWSTR lpFilterName,IBaseFilter** ppBaseFilter) 159 160 { 160 CFilterGraph_THIS(iface,fgraph);161 162 FIXME( "(%p)->() stub!\n", This );163 return E_NOTIMPL;161 CFilterGraph_THIS(iface,fgraph); 162 163 FIXME( "(%p)->() stub!\n", This ); 164 return E_NOTIMPL; 164 165 } 165 166 … … 167 168 IFilterGraph2_fnSetLogFile(IFilterGraph2* iface,DWORD_PTR hFile) 168 169 { 169 CFilterGraph_THIS(iface,fgraph);170 171 FIXME( "(%p)->() stub!\n", This );172 return E_NOTIMPL;170 CFilterGraph_THIS(iface,fgraph); 171 172 FIXME( "(%p)->() stub!\n", This ); 173 return E_NOTIMPL; 173 174 } 174 175 … … 176 177 IFilterGraph2_fnAbort(IFilterGraph2* iface) 177 178 { 178 CFilterGraph_THIS(iface,fgraph);179 180 /* undoc. */181 182 FIXME( "(%p)->() stub!\n", This );183 return E_NOTIMPL;179 CFilterGraph_THIS(iface,fgraph); 180 181 /* undoc. */ 182 183 FIXME( "(%p)->() stub!\n", This ); 184 return E_NOTIMPL; 184 185 } 185 186 … … 187 188 IFilterGraph2_fnShouldOperationContinue(IFilterGraph2* iface) 188 189 { 189 CFilterGraph_THIS(iface,fgraph);190 191 /* undoc. */192 193 FIXME( "(%p)->() stub!\n", This );194 return E_NOTIMPL;190 CFilterGraph_THIS(iface,fgraph); 191 192 /* undoc. */ 193 194 FIXME( "(%p)->() stub!\n", This ); 195 return E_NOTIMPL; 195 196 } 196 197 … … 198 199 IFilterGraph2_fnAddSourceFilterForMoniker(IFilterGraph2* iface,IMoniker* pMon,IBindCtx* pCtx,LPCWSTR pFilterName,IBaseFilter** ppFilter) 199 200 { 200 CFilterGraph_THIS(iface,fgraph);201 202 FIXME( "(%p)->() stub!\n", This );203 return E_NOTIMPL;201 CFilterGraph_THIS(iface,fgraph); 202 203 FIXME( "(%p)->() stub!\n", This ); 204 return E_NOTIMPL; 204 205 } 205 206 … … 207 208 IFilterGraph2_fnReconnectEx(IFilterGraph2* iface,IPin* pPin,const AM_MEDIA_TYPE* pmt) 208 209 { 209 CFilterGraph_THIS(iface,fgraph);210 211 FIXME( "(%p)->() stub!\n", This );212 return E_NOTIMPL;210 CFilterGraph_THIS(iface,fgraph); 211 212 FIXME( "(%p)->() stub!\n", This ); 213 return E_NOTIMPL; 213 214 } 214 215 … … 216 217 IFilterGraph2_fnRenderEx(IFilterGraph2* iface,IPin* pPin,DWORD dwParam1,DWORD* pdwParam2) 217 218 { 218 CFilterGraph_THIS(iface,fgraph);219 220 /* undoc. */221 FIXME( "(%p)->() stub!\n", This );222 return E_NOTIMPL;219 CFilterGraph_THIS(iface,fgraph); 220 221 /* undoc. */ 222 FIXME( "(%p)->() stub!\n", This ); 223 return E_NOTIMPL; 223 224 } 224 225 … … 228 229 static ICOM_VTABLE(IFilterGraph2) ifgraph = 229 230 { 230 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE231 /* IUnknown fields */232 IFilterGraph2_fnQueryInterface,233 IFilterGraph2_fnAddRef,234 IFilterGraph2_fnRelease,235 /* IFilterGraph fields */236 IFilterGraph2_fnAddFilter,237 IFilterGraph2_fnRemoveFilter,238 IFilterGraph2_fnEnumFilters,239 IFilterGraph2_fnFindFilterByName,240 IFilterGraph2_fnConnectDirect,241 IFilterGraph2_fnReconnect,242 IFilterGraph2_fnDisconnect,243 IFilterGraph2_fnSetDefaultSyncSource,244 /* IGraphBuilder fields */245 IFilterGraph2_fnConnect,246 IFilterGraph2_fnRender,247 IFilterGraph2_fnRenderFile,248 IFilterGraph2_fnAddSourceFilter,249 IFilterGraph2_fnSetLogFile,250 IFilterGraph2_fnAbort,251 IFilterGraph2_fnShouldOperationContinue,252 /* IFilterGraph2 fields */253 IFilterGraph2_fnAddSourceFilterForMoniker,254 IFilterGraph2_fnReconnectEx,255 IFilterGraph2_fnRenderEx,231 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 232 /* IUnknown fields */ 233 IFilterGraph2_fnQueryInterface, 234 IFilterGraph2_fnAddRef, 235 IFilterGraph2_fnRelease, 236 /* IFilterGraph fields */ 237 IFilterGraph2_fnAddFilter, 238 IFilterGraph2_fnRemoveFilter, 239 IFilterGraph2_fnEnumFilters, 240 IFilterGraph2_fnFindFilterByName, 241 IFilterGraph2_fnConnectDirect, 242 IFilterGraph2_fnReconnect, 243 IFilterGraph2_fnDisconnect, 244 IFilterGraph2_fnSetDefaultSyncSource, 245 /* IGraphBuilder fields */ 246 IFilterGraph2_fnConnect, 247 IFilterGraph2_fnRender, 248 IFilterGraph2_fnRenderFile, 249 IFilterGraph2_fnAddSourceFilter, 250 IFilterGraph2_fnSetLogFile, 251 IFilterGraph2_fnAbort, 252 IFilterGraph2_fnShouldOperationContinue, 253 /* IFilterGraph2 fields */ 254 IFilterGraph2_fnAddSourceFilterForMoniker, 255 IFilterGraph2_fnReconnectEx, 256 IFilterGraph2_fnRenderEx, 256 257 }; 257 258 258 259 void CFilterGraph_InitIFilterGraph2( CFilterGraph* pfg ) 259 260 { 260 TRACE("(%p)\n",pfg);261 ICOM_VTBL(&pfg->fgraph) = &ifgraph;262 } 261 TRACE("(%p)\n",pfg); 262 ICOM_VTBL(&pfg->fgraph) = &ifgraph; 263 } -
trunk/src/quartz/imcntl.c
r6578 r6649 1 /* $Id: imcntl.c,v 1.2 2001-09-05 13:36:35 bird Exp $ */ 1 2 /* 2 3 * Implementation of IMediaControl for FilterGraph. … … 30 31 IMediaControl_fnQueryInterface(IMediaControl* iface,REFIID riid,void** ppobj) 31 32 { 32 CFilterGraph_THIS(iface,mediacontrol);33 34 TRACE("(%p)->()\n",This);35 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);33 CFilterGraph_THIS(iface,mediacontrol); 34 35 TRACE("(%p)->()\n",This); 36 37 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 37 38 } 38 39 … … 40 41 IMediaControl_fnAddRef(IMediaControl* iface) 41 42 { 42 CFilterGraph_THIS(iface,mediacontrol);43 44 TRACE("(%p)->()\n",This);45 46 return IUnknown_AddRef(This->unk.punkControl);43 CFilterGraph_THIS(iface,mediacontrol); 44 45 TRACE("(%p)->()\n",This); 46 47 return IUnknown_AddRef(This->unk.punkControl); 47 48 } 48 49 … … 50 51 IMediaControl_fnRelease(IMediaControl* iface) 51 52 { 52 CFilterGraph_THIS(iface,mediacontrol);53 54 TRACE("(%p)->()\n",This);55 56 return IUnknown_Release(This->unk.punkControl);53 CFilterGraph_THIS(iface,mediacontrol); 54 55 TRACE("(%p)->()\n",This); 56 57 return IUnknown_Release(This->unk.punkControl); 57 58 } 58 59 … … 60 61 IMediaControl_fnGetTypeInfoCount(IMediaControl* iface,UINT* pcTypeInfo) 61 62 { 62 CFilterGraph_THIS(iface,mediacontrol);63 64 FIXME("(%p)->()\n",This);65 66 return E_NOTIMPL;63 CFilterGraph_THIS(iface,mediacontrol); 64 65 FIXME("(%p)->()\n",This); 66 67 return E_NOTIMPL; 67 68 } 68 69 … … 70 71 IMediaControl_fnGetTypeInfo(IMediaControl* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj) 71 72 { 72 CFilterGraph_THIS(iface,mediacontrol);73 74 FIXME("(%p)->()\n",This);75 76 return E_NOTIMPL;73 CFilterGraph_THIS(iface,mediacontrol); 74 75 FIXME("(%p)->()\n",This); 76 77 return E_NOTIMPL; 77 78 } 78 79 … … 80 81 IMediaControl_fnGetIDsOfNames(IMediaControl* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId) 81 82 { 82 CFilterGraph_THIS(iface,mediacontrol);83 84 FIXME("(%p)->()\n",This);85 86 return E_NOTIMPL;83 CFilterGraph_THIS(iface,mediacontrol); 84 85 FIXME("(%p)->()\n",This); 86 87 return E_NOTIMPL; 87 88 } 88 89 … … 90 91 IMediaControl_fnInvoke(IMediaControl* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr) 91 92 { 92 CFilterGraph_THIS(iface,mediacontrol);93 94 FIXME("(%p)->()\n",This);95 96 return E_NOTIMPL;93 CFilterGraph_THIS(iface,mediacontrol); 94 95 FIXME("(%p)->()\n",This); 96 97 return E_NOTIMPL; 97 98 } 98 99 … … 101 102 IMediaControl_fnRun(IMediaControl* iface) 102 103 { 103 CFilterGraph_THIS(iface,mediacontrol);104 105 FIXME("(%p)->()\n",This);106 107 return E_NOTIMPL;104 CFilterGraph_THIS(iface,mediacontrol); 105 106 FIXME("(%p)->()\n",This); 107 108 return E_NOTIMPL; 108 109 } 109 110 … … 111 112 IMediaControl_fnPause(IMediaControl* iface) 112 113 { 113 CFilterGraph_THIS(iface,mediacontrol);114 115 FIXME("(%p)->()\n",This);116 117 return E_NOTIMPL;114 CFilterGraph_THIS(iface,mediacontrol); 115 116 FIXME("(%p)->()\n",This); 117 118 return E_NOTIMPL; 118 119 } 119 120 … … 121 122 IMediaControl_fnStop(IMediaControl* iface) 122 123 { 123 CFilterGraph_THIS(iface,mediacontrol);124 125 FIXME("(%p)->()\n",This);126 127 return E_NOTIMPL;124 CFilterGraph_THIS(iface,mediacontrol); 125 126 FIXME("(%p)->()\n",This); 127 128 return E_NOTIMPL; 128 129 } 129 130 … … 131 132 IMediaControl_fnGetState(IMediaControl* iface,LONG lTimeOut,OAFilterState* pFilterState) 132 133 { 133 CFilterGraph_THIS(iface,mediacontrol);134 135 FIXME("(%p)->()\n",This);136 137 return E_NOTIMPL;134 CFilterGraph_THIS(iface,mediacontrol); 135 136 FIXME("(%p)->()\n",This); 137 138 return E_NOTIMPL; 138 139 } 139 140 … … 141 142 IMediaControl_fnRenderFile(IMediaControl* iface,BSTR bstrFileName) 142 143 { 143 CFilterGraph_THIS(iface,mediacontrol);144 145 FIXME("(%p)->()\n",This);146 147 return E_NOTIMPL;144 CFilterGraph_THIS(iface,mediacontrol); 145 146 FIXME("(%p)->()\n",This); 147 148 return E_NOTIMPL; 148 149 } 149 150 … … 151 152 IMediaControl_fnAddSourceFilter(IMediaControl* iface,BSTR bstrFileName,IDispatch** ppobj) 152 153 { 153 CFilterGraph_THIS(iface,mediacontrol);154 155 FIXME("(%p)->()\n",This);156 157 return E_NOTIMPL;154 CFilterGraph_THIS(iface,mediacontrol); 155 156 FIXME("(%p)->()\n",This); 157 158 return E_NOTIMPL; 158 159 } 159 160 … … 161 162 IMediaControl_fnget_FilterCollection(IMediaControl* iface,IDispatch** ppobj) 162 163 { 163 CFilterGraph_THIS(iface,mediacontrol);164 165 FIXME("(%p)->()\n",This);166 167 return E_NOTIMPL;164 CFilterGraph_THIS(iface,mediacontrol); 165 166 FIXME("(%p)->()\n",This); 167 168 return E_NOTIMPL; 168 169 } 169 170 … … 171 172 IMediaControl_fnget_RegFilterCollection(IMediaControl* iface,IDispatch** ppobj) 172 173 { 173 CFilterGraph_THIS(iface,mediacontrol);174 175 FIXME("(%p)->()\n",This);176 177 return E_NOTIMPL;174 CFilterGraph_THIS(iface,mediacontrol); 175 176 FIXME("(%p)->()\n",This); 177 178 return E_NOTIMPL; 178 179 } 179 180 … … 181 182 IMediaControl_fnStopWhenReady(IMediaControl* iface) 182 183 { 183 CFilterGraph_THIS(iface,mediacontrol);184 185 FIXME("(%p)->()\n",This);186 187 return E_NOTIMPL;184 CFilterGraph_THIS(iface,mediacontrol); 185 186 FIXME("(%p)->()\n",This); 187 188 return E_NOTIMPL; 188 189 } 189 190 … … 191 192 static ICOM_VTABLE(IMediaControl) imediacontrol = 192 193 { 193 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE194 /* IUnknown fields */195 IMediaControl_fnQueryInterface,196 IMediaControl_fnAddRef,197 IMediaControl_fnRelease,198 /* IDispatch fields */199 IMediaControl_fnGetTypeInfoCount,200 IMediaControl_fnGetTypeInfo,201 IMediaControl_fnGetIDsOfNames,202 IMediaControl_fnInvoke,203 /* IMediaControl fields */204 IMediaControl_fnRun,205 IMediaControl_fnPause,206 IMediaControl_fnStop,207 IMediaControl_fnGetState,208 IMediaControl_fnRenderFile,209 IMediaControl_fnAddSourceFilter,210 IMediaControl_fnget_FilterCollection,211 IMediaControl_fnget_RegFilterCollection,212 IMediaControl_fnStopWhenReady,194 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 195 /* IUnknown fields */ 196 IMediaControl_fnQueryInterface, 197 IMediaControl_fnAddRef, 198 IMediaControl_fnRelease, 199 /* IDispatch fields */ 200 IMediaControl_fnGetTypeInfoCount, 201 IMediaControl_fnGetTypeInfo, 202 IMediaControl_fnGetIDsOfNames, 203 IMediaControl_fnInvoke, 204 /* IMediaControl fields */ 205 IMediaControl_fnRun, 206 IMediaControl_fnPause, 207 IMediaControl_fnStop, 208 IMediaControl_fnGetState, 209 IMediaControl_fnRenderFile, 210 IMediaControl_fnAddSourceFilter, 211 IMediaControl_fnget_FilterCollection, 212 IMediaControl_fnget_RegFilterCollection, 213 IMediaControl_fnStopWhenReady, 213 214 }; 214 215 … … 216 217 void CFilterGraph_InitIMediaControl( CFilterGraph* pfg ) 217 218 { 218 TRACE("(%p)\n",pfg);219 ICOM_VTBL(&pfg->mediacontrol) = &imediacontrol;220 } 219 TRACE("(%p)\n",pfg); 220 ICOM_VTBL(&pfg->mediacontrol) = &imediacontrol; 221 } -
trunk/src/quartz/imem.c
r6578 r6649 1 /* $Id: imem.c,v 1.3 2001-09-05 13:36:35 bird Exp $ */ 1 2 /* 2 3 * Implementation of CLSID_MemoryAllocator. … … 27 28 IMemAllocator_fnQueryInterface(IMemAllocator* iface,REFIID riid,void** ppobj) 28 29 { 29 CMemoryAllocator_THIS(iface,memalloc);30 CMemoryAllocator_THIS(iface,memalloc); 30 31 31 TRACE("(%p)->()\n",This);32 TRACE("(%p)->()\n",This); 32 33 33 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);34 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 34 35 } 35 36 … … 37 38 IMemAllocator_fnAddRef(IMemAllocator* iface) 38 39 { 39 CMemoryAllocator_THIS(iface,memalloc);40 CMemoryAllocator_THIS(iface,memalloc); 40 41 41 TRACE("(%p)->()\n",This);42 TRACE("(%p)->()\n",This); 42 43 43 return IUnknown_AddRef(This->unk.punkControl);44 return IUnknown_AddRef(This->unk.punkControl); 44 45 } 45 46 … … 47 48 IMemAllocator_fnRelease(IMemAllocator* iface) 48 49 { 49 CMemoryAllocator_THIS(iface,memalloc);50 CMemoryAllocator_THIS(iface,memalloc); 50 51 51 TRACE("(%p)->()\n",This);52 TRACE("(%p)->()\n",This); 52 53 53 return IUnknown_Release(This->unk.punkControl);54 return IUnknown_Release(This->unk.punkControl); 54 55 } 55 56 … … 57 58 IMemAllocator_fnSetProperties(IMemAllocator* iface,ALLOCATOR_PROPERTIES* pPropReq,ALLOCATOR_PROPERTIES* pPropActual) 58 59 { 59 CMemoryAllocator_THIS(iface,memalloc);60 CMemoryAllocator_THIS(iface,memalloc); 60 61 61 FIXME( "(%p)->() stub!\n", This );62 return E_NOTIMPL;62 FIXME( "(%p)->() stub!\n", This ); 63 return E_NOTIMPL; 63 64 } 64 65 … … 66 67 IMemAllocator_fnGetProperties(IMemAllocator* iface,ALLOCATOR_PROPERTIES* pProp) 67 68 { 68 CMemoryAllocator_THIS(iface,memalloc);69 CMemoryAllocator_THIS(iface,memalloc); 69 70 70 FIXME( "(%p)->() stub!\n", This );71 return E_NOTIMPL;71 FIXME( "(%p)->() stub!\n", This ); 72 return E_NOTIMPL; 72 73 } 73 74 … … 75 76 IMemAllocator_fnCommit(IMemAllocator* iface) 76 77 { 77 CMemoryAllocator_THIS(iface,memalloc);78 CMemoryAllocator_THIS(iface,memalloc); 78 79 79 FIXME( "(%p)->() stub!\n", This );80 return E_NOTIMPL;80 FIXME( "(%p)->() stub!\n", This ); 81 return E_NOTIMPL; 81 82 } 82 83 … … 84 85 IMemAllocator_fnDecommit(IMemAllocator* iface) 85 86 { 86 CMemoryAllocator_THIS(iface,memalloc);87 CMemoryAllocator_THIS(iface,memalloc); 87 88 88 FIXME( "(%p)->() stub!\n", This );89 return E_NOTIMPL;89 FIXME( "(%p)->() stub!\n", This ); 90 return E_NOTIMPL; 90 91 } 91 92 … … 93 94 IMemAllocator_fnGetBuffer(IMemAllocator* iface,IMediaSample** ppSample,REFERENCE_TIME* prtStart,REFERENCE_TIME* prtEnd,DWORD dwFlags) 94 95 { 95 CMemoryAllocator_THIS(iface,memalloc);96 CMemoryAllocator_THIS(iface,memalloc); 96 97 97 FIXME( "(%p)->() stub!\n", This );98 return E_NOTIMPL;98 FIXME( "(%p)->() stub!\n", This ); 99 return E_NOTIMPL; 99 100 } 100 101 … … 102 103 IMemAllocator_fnReleaseBuffer(IMemAllocator* iface,IMediaSample* pSample) 103 104 { 104 CMemoryAllocator_THIS(iface,memalloc);105 CMemoryAllocator_THIS(iface,memalloc); 105 106 106 FIXME( "(%p)->() stub!\n", This );107 return E_NOTIMPL;107 FIXME( "(%p)->() stub!\n", This ); 108 return E_NOTIMPL; 108 109 } 109 110 … … 112 113 static ICOM_VTABLE(IMemAllocator) imemalloc = 113 114 { 114 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE115 /* IUnknown fields */116 IMemAllocator_fnQueryInterface,117 IMemAllocator_fnAddRef,118 IMemAllocator_fnRelease,119 /* IMemAllocator fields */120 IMemAllocator_fnSetProperties,121 IMemAllocator_fnGetProperties,122 IMemAllocator_fnCommit,123 IMemAllocator_fnDecommit,124 IMemAllocator_fnGetBuffer,125 IMemAllocator_fnReleaseBuffer,115 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 116 /* IUnknown fields */ 117 IMemAllocator_fnQueryInterface, 118 IMemAllocator_fnAddRef, 119 IMemAllocator_fnRelease, 120 /* IMemAllocator fields */ 121 IMemAllocator_fnSetProperties, 122 IMemAllocator_fnGetProperties, 123 IMemAllocator_fnCommit, 124 IMemAllocator_fnDecommit, 125 IMemAllocator_fnGetBuffer, 126 IMemAllocator_fnReleaseBuffer, 126 127 }; 127 128 … … 129 130 void CMemoryAllocator_InitIMemAllocator( CMemoryAllocator* pma ) 130 131 { 131 TRACE("(%p)\n",pma);132 ICOM_VTBL(&pma->memalloc) = &imemalloc;132 TRACE("(%p)\n",pma); 133 ICOM_VTBL(&pma->memalloc) = &imemalloc; 133 134 } -
trunk/src/quartz/imevent.c
r6578 r6649 1 /* $Id: imevent.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */ 1 2 /* 2 3 * Implementation of IMediaEvent[Ex] for FilterGraph. … … 30 31 IMediaEventEx_fnQueryInterface(IMediaEventEx* iface,REFIID riid,void** ppobj) 31 32 { 32 CFilterGraph_THIS(iface,mediaevent);33 34 TRACE("(%p)->()\n",This);35 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);33 CFilterGraph_THIS(iface,mediaevent); 34 35 TRACE("(%p)->()\n",This); 36 37 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 37 38 } 38 39 … … 40 41 IMediaEventEx_fnAddRef(IMediaEventEx* iface) 41 42 { 42 CFilterGraph_THIS(iface,mediaevent);43 44 TRACE("(%p)->()\n",This);45 46 return IUnknown_AddRef(This->unk.punkControl);43 CFilterGraph_THIS(iface,mediaevent); 44 45 TRACE("(%p)->()\n",This); 46 47 return IUnknown_AddRef(This->unk.punkControl); 47 48 } 48 49 … … 50 51 IMediaEventEx_fnRelease(IMediaEventEx* iface) 51 52 { 52 CFilterGraph_THIS(iface,mediaevent);53 54 TRACE("(%p)->()\n",This);55 56 return IUnknown_Release(This->unk.punkControl);53 CFilterGraph_THIS(iface,mediaevent); 54 55 TRACE("(%p)->()\n",This); 56 57 return IUnknown_Release(This->unk.punkControl); 57 58 } 58 59 … … 60 61 IMediaEventEx_fnGetTypeInfoCount(IMediaEventEx* iface,UINT* pcTypeInfo) 61 62 { 62 CFilterGraph_THIS(iface,mediaevent);63 64 FIXME("(%p)->()\n",This);65 66 return E_NOTIMPL;63 CFilterGraph_THIS(iface,mediaevent); 64 65 FIXME("(%p)->()\n",This); 66 67 return E_NOTIMPL; 67 68 } 68 69 … … 70 71 IMediaEventEx_fnGetTypeInfo(IMediaEventEx* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj) 71 72 { 72 CFilterGraph_THIS(iface,mediaevent);73 74 FIXME("(%p)->()\n",This);75 76 return E_NOTIMPL;73 CFilterGraph_THIS(iface,mediaevent); 74 75 FIXME("(%p)->()\n",This); 76 77 return E_NOTIMPL; 77 78 } 78 79 … … 80 81 IMediaEventEx_fnGetIDsOfNames(IMediaEventEx* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId) 81 82 { 82 CFilterGraph_THIS(iface,mediaevent);83 84 FIXME("(%p)->()\n",This);85 86 return E_NOTIMPL;83 CFilterGraph_THIS(iface,mediaevent); 84 85 FIXME("(%p)->()\n",This); 86 87 return E_NOTIMPL; 87 88 } 88 89 … … 90 91 IMediaEventEx_fnInvoke(IMediaEventEx* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr) 91 92 { 92 CFilterGraph_THIS(iface,mediaevent);93 94 FIXME("(%p)->()\n",This);95 96 return E_NOTIMPL;93 CFilterGraph_THIS(iface,mediaevent); 94 95 FIXME("(%p)->()\n",This); 96 97 return E_NOTIMPL; 97 98 } 98 99 … … 101 102 IMediaEventEx_fnGetEventHandle(IMediaEventEx* iface,OAEVENT* hEvent) 102 103 { 103 CFilterGraph_THIS(iface,mediaevent);104 105 FIXME("(%p)->() stub!\n",This);106 107 return E_NOTIMPL;104 CFilterGraph_THIS(iface,mediaevent); 105 106 FIXME("(%p)->() stub!\n",This); 107 108 return E_NOTIMPL; 108 109 } 109 110 … … 111 112 IMediaEventEx_fnGetEvent(IMediaEventEx* iface,long* lEventCode,LONG_PTR* plParam1,LONG_PTR* plParam2,long lTimeOut) 112 113 { 113 CFilterGraph_THIS(iface,mediaevent);114 115 FIXME("(%p)->() stub!\n",This);116 117 return E_NOTIMPL;114 CFilterGraph_THIS(iface,mediaevent); 115 116 FIXME("(%p)->() stub!\n",This); 117 118 return E_NOTIMPL; 118 119 } 119 120 … … 121 122 IMediaEventEx_fnWaitForCompletion(IMediaEventEx* iface,long lTimeOut,long* plEventCode) 122 123 { 123 CFilterGraph_THIS(iface,mediaevent);124 125 FIXME("(%p)->() stub!\n",This);126 127 return E_NOTIMPL;124 CFilterGraph_THIS(iface,mediaevent); 125 126 FIXME("(%p)->() stub!\n",This); 127 128 return E_NOTIMPL; 128 129 } 129 130 … … 131 132 IMediaEventEx_fnCancelDefaultHandling(IMediaEventEx* iface,long lEventCode) 132 133 { 133 CFilterGraph_THIS(iface,mediaevent);134 135 FIXME("(%p)->() stub!\n",This);136 137 return E_NOTIMPL;134 CFilterGraph_THIS(iface,mediaevent); 135 136 FIXME("(%p)->() stub!\n",This); 137 138 return E_NOTIMPL; 138 139 } 139 140 … … 141 142 IMediaEventEx_fnRestoreDefaultHandling(IMediaEventEx* iface,long lEventCode) 142 143 { 143 CFilterGraph_THIS(iface,mediaevent);144 145 FIXME("(%p)->() stub!\n",This);146 147 return E_NOTIMPL;144 CFilterGraph_THIS(iface,mediaevent); 145 146 FIXME("(%p)->() stub!\n",This); 147 148 return E_NOTIMPL; 148 149 } 149 150 … … 151 152 IMediaEventEx_fnFreeEventParams(IMediaEventEx* iface,long lEventCode,LONG_PTR lParam1,LONG_PTR lParam2) 152 153 { 153 CFilterGraph_THIS(iface,mediaevent);154 155 FIXME("(%p)->() stub!\n",This);156 157 return E_NOTIMPL;154 CFilterGraph_THIS(iface,mediaevent); 155 156 FIXME("(%p)->() stub!\n",This); 157 158 return E_NOTIMPL; 158 159 } 159 160 … … 161 162 IMediaEventEx_fnSetNotifyWindow(IMediaEventEx* iface,OAHWND hwnd,long message,LONG_PTR lParam) 162 163 { 163 CFilterGraph_THIS(iface,mediaevent);164 165 FIXME("(%p)->() stub!\n",This);166 167 return E_NOTIMPL;164 CFilterGraph_THIS(iface,mediaevent); 165 166 FIXME("(%p)->() stub!\n",This); 167 168 return E_NOTIMPL; 168 169 } 169 170 … … 171 172 IMediaEventEx_fnSetNotifyFlags(IMediaEventEx* iface,long lNotifyFlags) 172 173 { 173 CFilterGraph_THIS(iface,mediaevent);174 175 FIXME("(%p)->() stub!\n",This);176 177 return E_NOTIMPL;174 CFilterGraph_THIS(iface,mediaevent); 175 176 FIXME("(%p)->() stub!\n",This); 177 178 return E_NOTIMPL; 178 179 } 179 180 … … 181 182 IMediaEventEx_fnGetNotifyFlags(IMediaEventEx* iface,long* plNotifyFlags) 182 183 { 183 CFilterGraph_THIS(iface,mediaevent);184 185 FIXME("(%p)->() stub!\n",This);186 187 return E_NOTIMPL;184 CFilterGraph_THIS(iface,mediaevent); 185 186 FIXME("(%p)->() stub!\n",This); 187 188 return E_NOTIMPL; 188 189 } 189 190 … … 192 193 static ICOM_VTABLE(IMediaEventEx) imediaevent = 193 194 { 194 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE195 /* IUnknown fields */196 IMediaEventEx_fnQueryInterface,197 IMediaEventEx_fnAddRef,198 IMediaEventEx_fnRelease,199 /* IDispatch fields */200 IMediaEventEx_fnGetTypeInfoCount,201 IMediaEventEx_fnGetTypeInfo,202 IMediaEventEx_fnGetIDsOfNames,203 IMediaEventEx_fnInvoke,204 /* IMediaEvent fields */205 IMediaEventEx_fnGetEventHandle,206 IMediaEventEx_fnGetEvent,207 IMediaEventEx_fnWaitForCompletion,208 IMediaEventEx_fnCancelDefaultHandling,209 IMediaEventEx_fnRestoreDefaultHandling,210 IMediaEventEx_fnFreeEventParams,211 /* IMediaEventEx fields */212 IMediaEventEx_fnSetNotifyWindow,213 IMediaEventEx_fnSetNotifyFlags,214 IMediaEventEx_fnGetNotifyFlags,195 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 196 /* IUnknown fields */ 197 IMediaEventEx_fnQueryInterface, 198 IMediaEventEx_fnAddRef, 199 IMediaEventEx_fnRelease, 200 /* IDispatch fields */ 201 IMediaEventEx_fnGetTypeInfoCount, 202 IMediaEventEx_fnGetTypeInfo, 203 IMediaEventEx_fnGetIDsOfNames, 204 IMediaEventEx_fnInvoke, 205 /* IMediaEvent fields */ 206 IMediaEventEx_fnGetEventHandle, 207 IMediaEventEx_fnGetEvent, 208 IMediaEventEx_fnWaitForCompletion, 209 IMediaEventEx_fnCancelDefaultHandling, 210 IMediaEventEx_fnRestoreDefaultHandling, 211 IMediaEventEx_fnFreeEventParams, 212 /* IMediaEventEx fields */ 213 IMediaEventEx_fnSetNotifyWindow, 214 IMediaEventEx_fnSetNotifyFlags, 215 IMediaEventEx_fnGetNotifyFlags, 215 216 }; 216 217 … … 218 219 void CFilterGraph_InitIMediaEventEx( CFilterGraph* pfg ) 219 220 { 220 TRACE("(%p)\n",pfg);221 ICOM_VTBL(&pfg->mediaevent) = &imediaevent;222 } 221 TRACE("(%p)\n",pfg); 222 ICOM_VTBL(&pfg->mediaevent) = &imediaevent; 223 } -
trunk/src/quartz/impos.c
r6578 r6649 1 /* $Id: impos.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */ 1 2 /* 2 3 * Implementation of IMediaPosition for FilterGraph. … … 29 30 IMediaPosition_fnQueryInterface(IMediaPosition* iface,REFIID riid,void** ppobj) 30 31 { 31 CFilterGraph_THIS(iface,mediaposition);32 33 TRACE("(%p)->()\n",This);34 35 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);32 CFilterGraph_THIS(iface,mediaposition); 33 34 TRACE("(%p)->()\n",This); 35 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 36 37 } 37 38 … … 39 40 IMediaPosition_fnAddRef(IMediaPosition* iface) 40 41 { 41 CFilterGraph_THIS(iface,mediaposition);42 43 TRACE("(%p)->()\n",This);44 45 return IUnknown_AddRef(This->unk.punkControl);42 CFilterGraph_THIS(iface,mediaposition); 43 44 TRACE("(%p)->()\n",This); 45 46 return IUnknown_AddRef(This->unk.punkControl); 46 47 } 47 48 … … 49 50 IMediaPosition_fnRelease(IMediaPosition* iface) 50 51 { 51 CFilterGraph_THIS(iface,mediaposition);52 53 TRACE("(%p)->()\n",This);54 55 return IUnknown_Release(This->unk.punkControl);52 CFilterGraph_THIS(iface,mediaposition); 53 54 TRACE("(%p)->()\n",This); 55 56 return IUnknown_Release(This->unk.punkControl); 56 57 } 57 58 … … 59 60 IMediaPosition_fnGetTypeInfoCount(IMediaPosition* iface,UINT* pcTypeInfo) 60 61 { 61 CFilterGraph_THIS(iface,mediaposition);62 63 FIXME("(%p)->()\n",This);64 65 return E_NOTIMPL;62 CFilterGraph_THIS(iface,mediaposition); 63 64 FIXME("(%p)->()\n",This); 65 66 return E_NOTIMPL; 66 67 } 67 68 … … 69 70 IMediaPosition_fnGetTypeInfo(IMediaPosition* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj) 70 71 { 71 CFilterGraph_THIS(iface,mediaposition);72 73 FIXME("(%p)->()\n",This);74 75 return E_NOTIMPL;72 CFilterGraph_THIS(iface,mediaposition); 73 74 FIXME("(%p)->()\n",This); 75 76 return E_NOTIMPL; 76 77 } 77 78 … … 79 80 IMediaPosition_fnGetIDsOfNames(IMediaPosition* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId) 80 81 { 81 CFilterGraph_THIS(iface,mediaposition);82 83 FIXME("(%p)->()\n",This);84 85 return E_NOTIMPL;82 CFilterGraph_THIS(iface,mediaposition); 83 84 FIXME("(%p)->()\n",This); 85 86 return E_NOTIMPL; 86 87 } 87 88 … … 89 90 IMediaPosition_fnInvoke(IMediaPosition* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr) 90 91 { 91 CFilterGraph_THIS(iface,mediaposition);92 93 FIXME("(%p)->()\n",This);94 95 return E_NOTIMPL;92 CFilterGraph_THIS(iface,mediaposition); 93 94 FIXME("(%p)->()\n",This); 95 96 return E_NOTIMPL; 96 97 } 97 98 … … 100 101 IMediaPosition_fnget_Duration(IMediaPosition* iface,REFTIME* prefTime) 101 102 { 102 CFilterGraph_THIS(iface,mediaposition);103 104 FIXME("(%p)->() stub!\n",This);105 106 return E_NOTIMPL;103 CFilterGraph_THIS(iface,mediaposition); 104 105 FIXME("(%p)->() stub!\n",This); 106 107 return E_NOTIMPL; 107 108 } 108 109 … … 110 111 IMediaPosition_fnput_CurrentPosition(IMediaPosition* iface,REFTIME refTime) 111 112 { 112 CFilterGraph_THIS(iface,mediaposition);113 114 FIXME("(%p)->() stub!\n",This);115 116 return E_NOTIMPL;113 CFilterGraph_THIS(iface,mediaposition); 114 115 FIXME("(%p)->() stub!\n",This); 116 117 return E_NOTIMPL; 117 118 } 118 119 … … 120 121 IMediaPosition_fnget_CurrentPosition(IMediaPosition* iface,REFTIME* prefTime) 121 122 { 122 CFilterGraph_THIS(iface,mediaposition);123 124 FIXME("(%p)->() stub!\n",This);125 126 return E_NOTIMPL;123 CFilterGraph_THIS(iface,mediaposition); 124 125 FIXME("(%p)->() stub!\n",This); 126 127 return E_NOTIMPL; 127 128 } 128 129 … … 130 131 IMediaPosition_fnget_StopTime(IMediaPosition* iface,REFTIME* prefTime) 131 132 { 132 CFilterGraph_THIS(iface,mediaposition);133 134 FIXME("(%p)->() stub!\n",This);135 136 return E_NOTIMPL;133 CFilterGraph_THIS(iface,mediaposition); 134 135 FIXME("(%p)->() stub!\n",This); 136 137 return E_NOTIMPL; 137 138 } 138 139 … … 140 141 IMediaPosition_fnput_StopTime(IMediaPosition* iface,REFTIME refTime) 141 142 { 142 CFilterGraph_THIS(iface,mediaposition);143 144 FIXME("(%p)->() stub!\n",This);145 146 return E_NOTIMPL;143 CFilterGraph_THIS(iface,mediaposition); 144 145 FIXME("(%p)->() stub!\n",This); 146 147 return E_NOTIMPL; 147 148 } 148 149 … … 150 151 IMediaPosition_fnget_PrerollTime(IMediaPosition* iface,REFTIME* prefTime) 151 152 { 152 CFilterGraph_THIS(iface,mediaposition);153 154 FIXME("(%p)->() stub!\n",This);155 156 return E_NOTIMPL;153 CFilterGraph_THIS(iface,mediaposition); 154 155 FIXME("(%p)->() stub!\n",This); 156 157 return E_NOTIMPL; 157 158 } 158 159 … … 160 161 IMediaPosition_fnput_PrerollTime(IMediaPosition* iface,REFTIME refTime) 161 162 { 162 CFilterGraph_THIS(iface,mediaposition);163 164 FIXME("(%p)->() stub!\n",This);165 166 return E_NOTIMPL;163 CFilterGraph_THIS(iface,mediaposition); 164 165 FIXME("(%p)->() stub!\n",This); 166 167 return E_NOTIMPL; 167 168 } 168 169 … … 170 171 IMediaPosition_fnput_Rate(IMediaPosition* iface,double dblRate) 171 172 { 172 CFilterGraph_THIS(iface,mediaposition);173 174 FIXME("(%p)->() stub!\n",This);175 176 return E_NOTIMPL;173 CFilterGraph_THIS(iface,mediaposition); 174 175 FIXME("(%p)->() stub!\n",This); 176 177 return E_NOTIMPL; 177 178 } 178 179 … … 180 181 IMediaPosition_fnget_Rate(IMediaPosition* iface,double* pdblRate) 181 182 { 182 CFilterGraph_THIS(iface,mediaposition);183 184 FIXME("(%p)->() stub!\n",This);185 186 return E_NOTIMPL;183 CFilterGraph_THIS(iface,mediaposition); 184 185 FIXME("(%p)->() stub!\n",This); 186 187 return E_NOTIMPL; 187 188 } 188 189 … … 190 191 IMediaPosition_fnCanSeekForward(IMediaPosition* iface,LONG* pCanSeek) 191 192 { 192 CFilterGraph_THIS(iface,mediaposition);193 194 FIXME("(%p)->() stub!\n",This);195 196 return E_NOTIMPL;193 CFilterGraph_THIS(iface,mediaposition); 194 195 FIXME("(%p)->() stub!\n",This); 196 197 return E_NOTIMPL; 197 198 } 198 199 … … 200 201 IMediaPosition_fnCanSeekBackward(IMediaPosition* iface,LONG* pCanSeek) 201 202 { 202 CFilterGraph_THIS(iface,mediaposition);203 204 FIXME("(%p)->() stub!\n",This);205 206 return E_NOTIMPL;203 CFilterGraph_THIS(iface,mediaposition); 204 205 FIXME("(%p)->() stub!\n",This); 206 207 return E_NOTIMPL; 207 208 } 208 209 … … 210 211 static ICOM_VTABLE(IMediaPosition) imediaposition = 211 212 { 212 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE213 /* IUnknown fields */214 IMediaPosition_fnQueryInterface,215 IMediaPosition_fnAddRef,216 IMediaPosition_fnRelease,217 /* IDispatch fields */218 IMediaPosition_fnGetTypeInfoCount,219 IMediaPosition_fnGetTypeInfo,220 IMediaPosition_fnGetIDsOfNames,221 IMediaPosition_fnInvoke,222 /* IMediaPosition fields */223 IMediaPosition_fnget_Duration,224 IMediaPosition_fnput_CurrentPosition,225 IMediaPosition_fnget_CurrentPosition,226 IMediaPosition_fnget_StopTime,227 IMediaPosition_fnput_StopTime,228 IMediaPosition_fnget_PrerollTime,229 IMediaPosition_fnput_PrerollTime,230 IMediaPosition_fnput_Rate,231 IMediaPosition_fnget_Rate,232 IMediaPosition_fnCanSeekForward,233 IMediaPosition_fnCanSeekBackward,213 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 214 /* IUnknown fields */ 215 IMediaPosition_fnQueryInterface, 216 IMediaPosition_fnAddRef, 217 IMediaPosition_fnRelease, 218 /* IDispatch fields */ 219 IMediaPosition_fnGetTypeInfoCount, 220 IMediaPosition_fnGetTypeInfo, 221 IMediaPosition_fnGetIDsOfNames, 222 IMediaPosition_fnInvoke, 223 /* IMediaPosition fields */ 224 IMediaPosition_fnget_Duration, 225 IMediaPosition_fnput_CurrentPosition, 226 IMediaPosition_fnget_CurrentPosition, 227 IMediaPosition_fnget_StopTime, 228 IMediaPosition_fnput_StopTime, 229 IMediaPosition_fnget_PrerollTime, 230 IMediaPosition_fnput_PrerollTime, 231 IMediaPosition_fnput_Rate, 232 IMediaPosition_fnget_Rate, 233 IMediaPosition_fnCanSeekForward, 234 IMediaPosition_fnCanSeekBackward, 234 235 }; 235 236 … … 237 238 void CFilterGraph_InitIMediaPosition( CFilterGraph* pfg ) 238 239 { 239 TRACE("(%p)\n",pfg);240 ICOM_VTBL(&pfg->mediaposition) = &imediaposition;241 } 240 TRACE("(%p)\n",pfg); 241 ICOM_VTBL(&pfg->mediaposition) = &imediaposition; 242 } -
trunk/src/quartz/imseek.c
r6578 r6649 1 /* $Id: imseek.c,v 1.2 2001-09-05 13:36:36 bird Exp $ */ 1 2 /* 2 3 * Implementation of IMediaSeeking for FilterGraph. … … 30 31 IMediaSeeking_fnQueryInterface(IMediaSeeking* iface,REFIID riid,void** ppobj) 31 32 { 32 CFilterGraph_THIS(iface,mediaseeking);33 34 TRACE("(%p)->()\n",This);35 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);33 CFilterGraph_THIS(iface,mediaseeking); 34 35 TRACE("(%p)->()\n",This); 36 37 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 37 38 } 38 39 … … 40 41 IMediaSeeking_fnAddRef(IMediaSeeking* iface) 41 42 { 42 CFilterGraph_THIS(iface,mediaseeking);43 44 TRACE("(%p)->()\n",This);45 46 return IUnknown_AddRef(This->unk.punkControl);43 CFilterGraph_THIS(iface,mediaseeking); 44 45 TRACE("(%p)->()\n",This); 46 47 return IUnknown_AddRef(This->unk.punkControl); 47 48 } 48 49 … … 50 51 IMediaSeeking_fnRelease(IMediaSeeking* iface) 51 52 { 52 CFilterGraph_THIS(iface,mediaseeking);53 54 TRACE("(%p)->()\n",This);55 56 return IUnknown_Release(This->unk.punkControl);53 CFilterGraph_THIS(iface,mediaseeking); 54 55 TRACE("(%p)->()\n",This); 56 57 return IUnknown_Release(This->unk.punkControl); 57 58 } 58 59 … … 61 62 IMediaSeeking_fnGetCapabilities(IMediaSeeking* iface,DWORD* pdwCaps) 62 63 { 63 CFilterGraph_THIS(iface,mediaseeking);64 65 FIXME("(%p)->() stub!\n",This);66 67 return E_NOTIMPL;64 CFilterGraph_THIS(iface,mediaseeking); 65 66 FIXME("(%p)->() stub!\n",This); 67 68 return E_NOTIMPL; 68 69 } 69 70 … … 71 72 IMediaSeeking_fnCheckCapabilities(IMediaSeeking* iface,DWORD* pdwCaps) 72 73 { 73 CFilterGraph_THIS(iface,mediaseeking);74 75 FIXME("(%p)->() stub!\n",This);76 77 return E_NOTIMPL;74 CFilterGraph_THIS(iface,mediaseeking); 75 76 FIXME("(%p)->() stub!\n",This); 77 78 return E_NOTIMPL; 78 79 } 79 80 … … 81 82 IMediaSeeking_fnIsFormatSupported(IMediaSeeking* iface,const GUID* pidFormat) 82 83 { 83 CFilterGraph_THIS(iface,mediaseeking);84 85 FIXME("(%p)->() stub!\n",This);86 87 return E_NOTIMPL;84 CFilterGraph_THIS(iface,mediaseeking); 85 86 FIXME("(%p)->() stub!\n",This); 87 88 return E_NOTIMPL; 88 89 } 89 90 … … 91 92 IMediaSeeking_fnQueryPreferredFormat(IMediaSeeking* iface,GUID* pidFormat) 92 93 { 93 CFilterGraph_THIS(iface,mediaseeking);94 95 FIXME("(%p)->() stub!\n",This);96 97 return E_NOTIMPL;94 CFilterGraph_THIS(iface,mediaseeking); 95 96 FIXME("(%p)->() stub!\n",This); 97 98 return E_NOTIMPL; 98 99 } 99 100 … … 101 102 IMediaSeeking_fnGetTimeFormat(IMediaSeeking* iface,GUID* pidFormat) 102 103 { 103 CFilterGraph_THIS(iface,mediaseeking);104 105 FIXME("(%p)->() stub!\n",This);106 107 return E_NOTIMPL;104 CFilterGraph_THIS(iface,mediaseeking); 105 106 FIXME("(%p)->() stub!\n",This); 107 108 return E_NOTIMPL; 108 109 } 109 110 … … 111 112 IMediaSeeking_fnIsUsingTimeFormat(IMediaSeeking* iface,const GUID* pidFormat) 112 113 { 113 CFilterGraph_THIS(iface,mediaseeking);114 115 FIXME("(%p)->() stub!\n",This);116 117 return E_NOTIMPL;114 CFilterGraph_THIS(iface,mediaseeking); 115 116 FIXME("(%p)->() stub!\n",This); 117 118 return E_NOTIMPL; 118 119 } 119 120 … … 121 122 IMediaSeeking_fnSetTimeFormat(IMediaSeeking* iface,const GUID* pidFormat) 122 123 { 123 CFilterGraph_THIS(iface,mediaseeking);124 125 FIXME("(%p)->() stub!\n",This);126 127 return E_NOTIMPL;124 CFilterGraph_THIS(iface,mediaseeking); 125 126 FIXME("(%p)->() stub!\n",This); 127 128 return E_NOTIMPL; 128 129 } 129 130 … … 131 132 IMediaSeeking_fnGetDuration(IMediaSeeking* iface,LONGLONG* pllDuration) 132 133 { 133 CFilterGraph_THIS(iface,mediaseeking);134 135 FIXME("(%p)->() stub!\n",This);136 137 return E_NOTIMPL;134 CFilterGraph_THIS(iface,mediaseeking); 135 136 FIXME("(%p)->() stub!\n",This); 137 138 return E_NOTIMPL; 138 139 } 139 140 … … 141 142 IMediaSeeking_fnGetStopPosition(IMediaSeeking* iface,LONGLONG* pllPos) 142 143 { 143 CFilterGraph_THIS(iface,mediaseeking);144 145 FIXME("(%p)->() stub!\n",This);146 147 return E_NOTIMPL;144 CFilterGraph_THIS(iface,mediaseeking); 145 146 FIXME("(%p)->() stub!\n",This); 147 148 return E_NOTIMPL; 148 149 } 149 150 … … 151 152 IMediaSeeking_fnGetCurrentPosition(IMediaSeeking* iface,LONGLONG* pllPos) 152 153 { 153 CFilterGraph_THIS(iface,mediaseeking);154 155 FIXME("(%p)->() stub!\n",This);156 157 return E_NOTIMPL;154 CFilterGraph_THIS(iface,mediaseeking); 155 156 FIXME("(%p)->() stub!\n",This); 157 158 return E_NOTIMPL; 158 159 } 159 160 … … 161 162 IMediaSeeking_fnConvertTimeFormat(IMediaSeeking* iface,LONGLONG* pllOut,const GUID* pidFmtOut,LONGLONG llIn,const GUID* pidFmtIn) 162 163 { 163 CFilterGraph_THIS(iface,mediaseeking);164 165 FIXME("(%p)->() stub!\n",This);166 167 return E_NOTIMPL;164 CFilterGraph_THIS(iface,mediaseeking); 165 166 FIXME("(%p)->() stub!\n",This); 167 168 return E_NOTIMPL; 168 169 } 169 170 … … 171 172 IMediaSeeking_fnSetPositions(IMediaSeeking* iface,LONGLONG* pllCur,DWORD dwCurFlags,LONGLONG* pllStop,DWORD dwStopFlags) 172 173 { 173 CFilterGraph_THIS(iface,mediaseeking);174 175 FIXME("(%p)->() stub!\n",This);176 177 return E_NOTIMPL;174 CFilterGraph_THIS(iface,mediaseeking); 175 176 FIXME("(%p)->() stub!\n",This); 177 178 return E_NOTIMPL; 178 179 } 179 180 … … 181 182 IMediaSeeking_fnGetPositions(IMediaSeeking* iface,LONGLONG* pllCur,LONGLONG* pllStop) 182 183 { 183 CFilterGraph_THIS(iface,mediaseeking);184 185 FIXME("(%p)->() stub!\n",This);186 187 return E_NOTIMPL;184 CFilterGraph_THIS(iface,mediaseeking); 185 186 FIXME("(%p)->() stub!\n",This); 187 188 return E_NOTIMPL; 188 189 } 189 190 … … 191 192 IMediaSeeking_fnGetAvailable(IMediaSeeking* iface,LONGLONG* pllFirst,LONGLONG* pllLast) 192 193 { 193 CFilterGraph_THIS(iface,mediaseeking);194 195 FIXME("(%p)->() stub!\n",This);196 197 return E_NOTIMPL;194 CFilterGraph_THIS(iface,mediaseeking); 195 196 FIXME("(%p)->() stub!\n",This); 197 198 return E_NOTIMPL; 198 199 } 199 200 … … 201 202 IMediaSeeking_fnSetRate(IMediaSeeking* iface,double dblRate) 202 203 { 203 CFilterGraph_THIS(iface,mediaseeking);204 205 FIXME("(%p)->() stub!\n",This);206 207 return E_NOTIMPL;204 CFilterGraph_THIS(iface,mediaseeking); 205 206 FIXME("(%p)->() stub!\n",This); 207 208 return E_NOTIMPL; 208 209 } 209 210 … … 211 212 IMediaSeeking_fnGetRate(IMediaSeeking* iface,double* pdblRate) 212 213 { 213 CFilterGraph_THIS(iface,mediaseeking);214 215 FIXME("(%p)->() stub!\n",This);216 217 return E_NOTIMPL;214 CFilterGraph_THIS(iface,mediaseeking); 215 216 FIXME("(%p)->() stub!\n",This); 217 218 return E_NOTIMPL; 218 219 } 219 220 … … 221 222 IMediaSeeking_fnGetPreroll(IMediaSeeking* iface,LONGLONG* pllPreroll) 222 223 { 223 CFilterGraph_THIS(iface,mediaseeking);224 225 FIXME("(%p)->() stub!\n",This);226 227 return E_NOTIMPL;224 CFilterGraph_THIS(iface,mediaseeking); 225 226 FIXME("(%p)->() stub!\n",This); 227 228 return E_NOTIMPL; 228 229 } 229 230 … … 233 234 static ICOM_VTABLE(IMediaSeeking) imediaseeking = 234 235 { 235 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE236 /* IUnknown fields */237 IMediaSeeking_fnQueryInterface,238 IMediaSeeking_fnAddRef,239 IMediaSeeking_fnRelease,240 /* IMediaSeeking fields */241 IMediaSeeking_fnGetCapabilities,242 IMediaSeeking_fnCheckCapabilities,243 IMediaSeeking_fnIsFormatSupported,244 IMediaSeeking_fnQueryPreferredFormat,245 IMediaSeeking_fnGetTimeFormat,246 IMediaSeeking_fnIsUsingTimeFormat,247 IMediaSeeking_fnSetTimeFormat,248 IMediaSeeking_fnGetDuration,249 IMediaSeeking_fnGetStopPosition,250 IMediaSeeking_fnGetCurrentPosition,251 IMediaSeeking_fnConvertTimeFormat,252 IMediaSeeking_fnSetPositions,253 IMediaSeeking_fnGetPositions,254 IMediaSeeking_fnGetAvailable,255 IMediaSeeking_fnSetRate,256 IMediaSeeking_fnGetRate,257 IMediaSeeking_fnGetPreroll,236 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 237 /* IUnknown fields */ 238 IMediaSeeking_fnQueryInterface, 239 IMediaSeeking_fnAddRef, 240 IMediaSeeking_fnRelease, 241 /* IMediaSeeking fields */ 242 IMediaSeeking_fnGetCapabilities, 243 IMediaSeeking_fnCheckCapabilities, 244 IMediaSeeking_fnIsFormatSupported, 245 IMediaSeeking_fnQueryPreferredFormat, 246 IMediaSeeking_fnGetTimeFormat, 247 IMediaSeeking_fnIsUsingTimeFormat, 248 IMediaSeeking_fnSetTimeFormat, 249 IMediaSeeking_fnGetDuration, 250 IMediaSeeking_fnGetStopPosition, 251 IMediaSeeking_fnGetCurrentPosition, 252 IMediaSeeking_fnConvertTimeFormat, 253 IMediaSeeking_fnSetPositions, 254 IMediaSeeking_fnGetPositions, 255 IMediaSeeking_fnGetAvailable, 256 IMediaSeeking_fnSetRate, 257 IMediaSeeking_fnGetRate, 258 IMediaSeeking_fnGetPreroll, 258 259 }; 259 260 260 261 void CFilterGraph_InitIMediaSeeking( CFilterGraph* pfg ) 261 262 { 262 TRACE("(%p)\n",pfg);263 ICOM_VTBL(&pfg->mediaseeking) = &imediaseeking;264 } 263 TRACE("(%p)\n",pfg); 264 ICOM_VTBL(&pfg->mediaseeking) = &imediaseeking; 265 } -
trunk/src/quartz/initquartz.cpp
r6563 r6649 1 /* $Id: initquartz.cpp,v 1.2 2001-09-05 13:36:36 bird Exp $ */ 1 2 /* 2 3 * DLL entry point … … 55 56 case DLL_THREAD_ATTACH: 56 57 case DLL_THREAD_DETACH: 57 return QUARTZ_DllMain(hinstDLL, fdwReason, fImpLoad);58 return QUARTZ_DllMain(hinstDLL, fdwReason, fImpLoad); 58 59 59 60 case DLL_PROCESS_DETACH: 60 61 ret = QUARTZ_DllMain(hinstDLL, fdwReason, fImpLoad); 61 ctordtorTerm();62 return ret;62 ctordtorTerm(); 63 return ret; 63 64 } 64 65 return FALSE; … … 87 88 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 88 89 dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab); 89 if(dllHandle == 0) 90 return 0UL;90 if(dllHandle == 0) 91 return 0UL; 91 92 92 93 break; 93 94 case 1 : 94 95 if(dllHandle) { 95 UnregisterLxDll(dllHandle);96 UnregisterLxDll(dllHandle); 96 97 } 97 98 break; -
trunk/src/quartz/initterm.cpp
r6563 r6649 1 /* $Id: initterm.cpp,v 1.2 2001-09-05 13:36:37 bird Exp $ */ 1 2 /* 2 3 * DLL entry point -
trunk/src/quartz/irclock.c
r6578 r6649 1 /* $Id: irclock.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */ 1 2 /* 2 3 * Implementation of CLSID_SystemClock. … … 27 28 IReferenceClock_fnQueryInterface(IReferenceClock* iface,REFIID riid,void** ppobj) 28 29 { 29 CSystemClock_THIS(iface,refclk);30 CSystemClock_THIS(iface,refclk); 30 31 31 TRACE("(%p)->()\n",This);32 TRACE("(%p)->()\n",This); 32 33 33 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);34 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 34 35 } 35 36 … … 37 38 IReferenceClock_fnAddRef(IReferenceClock* iface) 38 39 { 39 CSystemClock_THIS(iface,refclk);40 CSystemClock_THIS(iface,refclk); 40 41 41 TRACE("(%p)->()\n",This);42 TRACE("(%p)->()\n",This); 42 43 43 return IUnknown_AddRef(This->unk.punkControl);44 return IUnknown_AddRef(This->unk.punkControl); 44 45 } 45 46 … … 47 48 IReferenceClock_fnRelease(IReferenceClock* iface) 48 49 { 49 CSystemClock_THIS(iface,refclk);50 CSystemClock_THIS(iface,refclk); 50 51 51 TRACE("(%p)->()\n",This);52 TRACE("(%p)->()\n",This); 52 53 53 return IUnknown_Release(This->unk.punkControl);54 return IUnknown_Release(This->unk.punkControl); 54 55 } 55 56 … … 57 58 IReferenceClock_fnGetTime(IReferenceClock* iface,REFERENCE_TIME* prtTime) 58 59 { 59 CSystemClock_THIS(iface,refclk);60 CSystemClock_THIS(iface,refclk); 60 61 61 FIXME( "(%p)->() stub!\n", This );62 return E_NOTIMPL;62 FIXME( "(%p)->() stub!\n", This ); 63 return E_NOTIMPL; 63 64 } 64 65 … … 66 67 IReferenceClock_fnAdviseTime(IReferenceClock* iface,REFERENCE_TIME rtBase,REFERENCE_TIME rtStream,HEVENT hEvent,DWORD_PTR* pdwAdvCookie) 67 68 { 68 CSystemClock_THIS(iface,refclk);69 CSystemClock_THIS(iface,refclk); 69 70 70 FIXME( "(%p)->() stub!\n", This );71 return E_NOTIMPL;71 FIXME( "(%p)->() stub!\n", This ); 72 return E_NOTIMPL; 72 73 } 73 74 … … 75 76 IReferenceClock_fnAdvisePeriodic(IReferenceClock* iface,REFERENCE_TIME rtStart,REFERENCE_TIME rtPeriod,HSEMAPHORE hSemaphore,DWORD_PTR* pdwAdvCookie) 76 77 { 77 CSystemClock_THIS(iface,refclk);78 CSystemClock_THIS(iface,refclk); 78 79 79 FIXME( "(%p)->() stub!\n", This );80 return E_NOTIMPL;80 FIXME( "(%p)->() stub!\n", This ); 81 return E_NOTIMPL; 81 82 } 82 83 … … 84 85 IReferenceClock_fnUnadvise(IReferenceClock* iface,DWORD_PTR dwAdvCookie) 85 86 { 86 CSystemClock_THIS(iface,refclk);87 CSystemClock_THIS(iface,refclk); 87 88 88 FIXME( "(%p)->() stub!\n", This );89 return E_NOTIMPL;89 FIXME( "(%p)->() stub!\n", This ); 90 return E_NOTIMPL; 90 91 } 91 92 92 93 static ICOM_VTABLE(IReferenceClock) irefclk = 93 94 { 94 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE95 /* IUnknown fields */96 IReferenceClock_fnQueryInterface,97 IReferenceClock_fnAddRef,98 IReferenceClock_fnRelease,99 /* IReferenceClock fields */100 IReferenceClock_fnGetTime,101 IReferenceClock_fnAdviseTime,102 IReferenceClock_fnAdvisePeriodic,103 IReferenceClock_fnUnadvise,95 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 96 /* IUnknown fields */ 97 IReferenceClock_fnQueryInterface, 98 IReferenceClock_fnAddRef, 99 IReferenceClock_fnRelease, 100 /* IReferenceClock fields */ 101 IReferenceClock_fnGetTime, 102 IReferenceClock_fnAdviseTime, 103 IReferenceClock_fnAdvisePeriodic, 104 IReferenceClock_fnUnadvise, 104 105 }; 105 106 … … 107 108 void CSystemClock_InitIReferenceClock( CSystemClock* psc ) 108 109 { 109 TRACE("(%p)\n",psc);110 ICOM_VTBL(&psc->refclk) = &irefclk;110 TRACE("(%p)\n",psc); 111 ICOM_VTBL(&psc->refclk) = &irefclk; 111 112 } -
trunk/src/quartz/iunk.c
r6578 r6649 1 /* $Id: iunk.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */ 1 2 /* 2 3 * An implementation of IUnknown. … … 21 22 IUnknown_fnQueryInterface(IUnknown* iface,REFIID riid,LPVOID *ppobj) 22 23 { 23 ICOM_THIS(QUARTZ_IUnkImpl,iface);24 size_tofs;25 DWORDdwIndex;24 ICOM_THIS(QUARTZ_IUnkImpl,iface); 25 size_t ofs; 26 DWORD dwIndex; 26 27 27 TRACE("(%p)->(%s,%p)\n",This,debugstr_guid(riid),ppobj);28 TRACE("(%p)->(%s,%p)\n",This,debugstr_guid(riid),ppobj); 28 29 29 if ( ppobj == NULL )30 return E_POINTER;31 *ppobj = NULL;30 if ( ppobj == NULL ) 31 return E_POINTER; 32 *ppobj = NULL; 32 33 33 ofs = 0;34 ofs = 0; 34 35 35 if ( IsEqualGUID( &IID_IUnknown, riid ) )36 {37 TRACE("IID_IUnknown - returns inner object.\n");38 }39 else40 {41 for ( dwIndex = 0; dwIndex < This->dwEntries; dwIndex++ )42 {43 if ( IsEqualGUID( This->pEntries[dwIndex].piid, riid ) )44 {45 ofs = This->pEntries[dwIndex].ofsVTPtr;46 break;47 }48 }49 if ( dwIndex == This->dwEntries )50 {51 FIXME("unknown interface: %s\n",debugstr_guid(riid));52 return E_NOINTERFACE;53 }54 }36 if ( IsEqualGUID( &IID_IUnknown, riid ) ) 37 { 38 TRACE("IID_IUnknown - returns inner object.\n"); 39 } 40 else 41 { 42 for ( dwIndex = 0; dwIndex < This->dwEntries; dwIndex++ ) 43 { 44 if ( IsEqualGUID( This->pEntries[dwIndex].piid, riid ) ) 45 { 46 ofs = This->pEntries[dwIndex].ofsVTPtr; 47 break; 48 } 49 } 50 if ( dwIndex == This->dwEntries ) 51 { 52 FIXME("unknown interface: %s\n",debugstr_guid(riid)); 53 return E_NOINTERFACE; 54 } 55 } 55 56 56 *ppobj = (LPVOID)(((char*)This) + ofs);57 IUnknown_AddRef((IUnknown*)(*ppobj));57 *ppobj = (LPVOID)(((char*)This) + ofs); 58 IUnknown_AddRef((IUnknown*)(*ppobj)); 58 59 59 return S_OK;60 return S_OK; 60 61 } 61 62 … … 63 64 IUnknown_fnAddRef(IUnknown* iface) 64 65 { 65 ICOM_THIS(QUARTZ_IUnkImpl,iface);66 ICOM_THIS(QUARTZ_IUnkImpl,iface); 66 67 67 TRACE("(%p)->()\n",This);68 TRACE("(%p)->()\n",This); 68 69 69 return ++(This->ref);70 return ++(This->ref); 70 71 } 71 72 … … 73 74 IUnknown_fnRelease(IUnknown* iface) 74 75 { 75 ICOM_THIS(QUARTZ_IUnkImpl,iface);76 ICOM_THIS(QUARTZ_IUnkImpl,iface); 76 77 77 TRACE("(%p)->()\n",This);78 if ( (--(This->ref)) > 0 )79 return This->ref;78 TRACE("(%p)->()\n",This); 79 if ( (--(This->ref)) > 0 ) 80 return This->ref; 80 81 81 QUARTZ_FreeObj(This);82 QUARTZ_FreeObj(This); 82 83 83 return 0;84 return 0; 84 85 } 85 86 86 87 static ICOM_VTABLE(IUnknown) iunknown = 87 88 { 88 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE89 /* IUnknown fields */90 IUnknown_fnQueryInterface,91 IUnknown_fnAddRef,92 IUnknown_fnRelease,89 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 90 /* IUnknown fields */ 91 IUnknown_fnQueryInterface, 92 IUnknown_fnAddRef, 93 IUnknown_fnRelease, 93 94 }; 94 95 … … 96 97 void QUARTZ_IUnkInit( QUARTZ_IUnkImpl* pImpl, IUnknown* punkOuter ) 97 98 { 98 TRACE("(%p)\n",pImpl);99 TRACE("(%p)\n",pImpl); 99 100 100 ICOM_VTBL(pImpl) = &iunknown;101 pImpl->pEntries = NULL;102 pImpl->dwEntries = 0;103 pImpl->ref = 1;104 pImpl->punkControl = (IUnknown*)pImpl;101 ICOM_VTBL(pImpl) = &iunknown; 102 pImpl->pEntries = NULL; 103 pImpl->dwEntries = 0; 104 pImpl->ref = 1; 105 pImpl->punkControl = (IUnknown*)pImpl; 105 106 106 /* for delegation. */107 if ( punkOuter != NULL )108 pImpl->punkControl = punkOuter;107 /* for delegation. */ 108 if ( punkOuter != NULL ) 109 pImpl->punkControl = punkOuter; 109 110 } 110 111 -
trunk/src/quartz/ividwin.c
r6578 r6649 1 /* $Id: ividwin.c,v 1.2 2001-09-05 13:36:37 bird Exp $ */ 1 2 /* 2 3 * Implementation of IVideoWindow for FilterGraph. … … 30 31 IVideoWindow_fnQueryInterface(IVideoWindow* iface,REFIID riid,void** ppobj) 31 32 { 32 CFilterGraph_THIS(iface,vidwin);33 34 TRACE("(%p)->()\n",This);35 36 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);33 CFilterGraph_THIS(iface,vidwin); 34 35 TRACE("(%p)->()\n",This); 36 37 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 37 38 } 38 39 … … 40 41 IVideoWindow_fnAddRef(IVideoWindow* iface) 41 42 { 42 CFilterGraph_THIS(iface,vidwin);43 44 TRACE("(%p)->()\n",This);45 46 return IUnknown_AddRef(This->unk.punkControl);43 CFilterGraph_THIS(iface,vidwin); 44 45 TRACE("(%p)->()\n",This); 46 47 return IUnknown_AddRef(This->unk.punkControl); 47 48 } 48 49 … … 50 51 IVideoWindow_fnRelease(IVideoWindow* iface) 51 52 { 52 CFilterGraph_THIS(iface,vidwin);53 54 TRACE("(%p)->()\n",This);55 56 return IUnknown_Release(This->unk.punkControl);53 CFilterGraph_THIS(iface,vidwin); 54 55 TRACE("(%p)->()\n",This); 56 57 return IUnknown_Release(This->unk.punkControl); 57 58 } 58 59 … … 60 61 IVideoWindow_fnGetTypeInfoCount(IVideoWindow* iface,UINT* pcTypeInfo) 61 62 { 62 CFilterGraph_THIS(iface,vidwin);63 64 FIXME("(%p)->()\n",This);65 66 return E_NOTIMPL;63 CFilterGraph_THIS(iface,vidwin); 64 65 FIXME("(%p)->()\n",This); 66 67 return E_NOTIMPL; 67 68 } 68 69 … … 70 71 IVideoWindow_fnGetTypeInfo(IVideoWindow* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj) 71 72 { 72 CFilterGraph_THIS(iface,vidwin);73 74 FIXME("(%p)->()\n",This);75 76 return E_NOTIMPL;73 CFilterGraph_THIS(iface,vidwin); 74 75 FIXME("(%p)->()\n",This); 76 77 return E_NOTIMPL; 77 78 } 78 79 … … 80 81 IVideoWindow_fnGetIDsOfNames(IVideoWindow* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId) 81 82 { 82 CFilterGraph_THIS(iface,vidwin);83 84 FIXME("(%p)->()\n",This);85 86 return E_NOTIMPL;83 CFilterGraph_THIS(iface,vidwin); 84 85 FIXME("(%p)->()\n",This); 86 87 return E_NOTIMPL; 87 88 } 88 89 … … 90 91 IVideoWindow_fnInvoke(IVideoWindow* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr) 91 92 { 92 CFilterGraph_THIS(iface,vidwin);93 94 FIXME("(%p)->()\n",This);95 96 return E_NOTIMPL;93 CFilterGraph_THIS(iface,vidwin); 94 95 FIXME("(%p)->()\n",This); 96 97 return E_NOTIMPL; 97 98 } 98 99 … … 102 103 IVideoWindow_fnput_Caption(IVideoWindow* iface,BSTR strCaption) 103 104 { 104 CFilterGraph_THIS(iface,vidwin);105 106 FIXME("(%p)->() stub!\n",This);107 108 return E_NOTIMPL;105 CFilterGraph_THIS(iface,vidwin); 106 107 FIXME("(%p)->() stub!\n",This); 108 109 return E_NOTIMPL; 109 110 } 110 111 … … 112 113 IVideoWindow_fnget_Caption(IVideoWindow* iface,BSTR* pstrCaption) 113 114 { 114 CFilterGraph_THIS(iface,vidwin);115 116 FIXME("(%p)->() stub!\n",This);117 118 return E_NOTIMPL;115 CFilterGraph_THIS(iface,vidwin); 116 117 FIXME("(%p)->() stub!\n",This); 118 119 return E_NOTIMPL; 119 120 } 120 121 … … 122 123 IVideoWindow_fnput_WindowStyle(IVideoWindow* iface,long lStyle) 123 124 { 124 CFilterGraph_THIS(iface,vidwin);125 126 FIXME("(%p)->() stub!\n",This);127 128 return E_NOTIMPL;125 CFilterGraph_THIS(iface,vidwin); 126 127 FIXME("(%p)->() stub!\n",This); 128 129 return E_NOTIMPL; 129 130 } 130 131 … … 132 133 IVideoWindow_fnget_WindowStyle(IVideoWindow* iface,long* plStyle) 133 134 { 134 CFilterGraph_THIS(iface,vidwin);135 136 FIXME("(%p)->() stub!\n",This);137 138 return E_NOTIMPL;135 CFilterGraph_THIS(iface,vidwin); 136 137 FIXME("(%p)->() stub!\n",This); 138 139 return E_NOTIMPL; 139 140 } 140 141 … … 142 143 IVideoWindow_fnput_WindowStyleEx(IVideoWindow* iface,long lExStyle) 143 144 { 144 CFilterGraph_THIS(iface,vidwin);145 146 FIXME("(%p)->() stub!\n",This);147 148 return E_NOTIMPL;145 CFilterGraph_THIS(iface,vidwin); 146 147 FIXME("(%p)->() stub!\n",This); 148 149 return E_NOTIMPL; 149 150 } 150 151 … … 152 153 IVideoWindow_fnget_WindowStyleEx(IVideoWindow* iface,long* plExStyle) 153 154 { 154 CFilterGraph_THIS(iface,vidwin);155 156 FIXME("(%p)->() stub!\n",This);157 158 return E_NOTIMPL;155 CFilterGraph_THIS(iface,vidwin); 156 157 FIXME("(%p)->() stub!\n",This); 158 159 return E_NOTIMPL; 159 160 } 160 161 … … 162 163 IVideoWindow_fnput_AutoShow(IVideoWindow* iface,long lAutoShow) 163 164 { 164 CFilterGraph_THIS(iface,vidwin);165 166 FIXME("(%p)->() stub!\n",This);167 168 return E_NOTIMPL;165 CFilterGraph_THIS(iface,vidwin); 166 167 FIXME("(%p)->() stub!\n",This); 168 169 return E_NOTIMPL; 169 170 } 170 171 … … 172 173 IVideoWindow_fnget_AutoShow(IVideoWindow* iface,long* plAutoShow) 173 174 { 174 CFilterGraph_THIS(iface,vidwin);175 176 FIXME("(%p)->() stub!\n",This);177 178 return E_NOTIMPL;175 CFilterGraph_THIS(iface,vidwin); 176 177 FIXME("(%p)->() stub!\n",This); 178 179 return E_NOTIMPL; 179 180 } 180 181 … … 182 183 IVideoWindow_fnput_WindowState(IVideoWindow* iface,long lState) 183 184 { 184 CFilterGraph_THIS(iface,vidwin);185 186 FIXME("(%p)->() stub!\n",This);187 188 return E_NOTIMPL;185 CFilterGraph_THIS(iface,vidwin); 186 187 FIXME("(%p)->() stub!\n",This); 188 189 return E_NOTIMPL; 189 190 } 190 191 … … 192 193 IVideoWindow_fnget_WindowState(IVideoWindow* iface,long* plState) 193 194 { 194 CFilterGraph_THIS(iface,vidwin);195 196 FIXME("(%p)->() stub!\n",This);197 198 return E_NOTIMPL;195 CFilterGraph_THIS(iface,vidwin); 196 197 FIXME("(%p)->() stub!\n",This); 198 199 return E_NOTIMPL; 199 200 } 200 201 … … 202 203 IVideoWindow_fnput_BackgroundPalette(IVideoWindow* iface,long lBackPal) 203 204 { 204 CFilterGraph_THIS(iface,vidwin);205 206 FIXME("(%p)->() stub!\n",This);207 208 return E_NOTIMPL;205 CFilterGraph_THIS(iface,vidwin); 206 207 FIXME("(%p)->() stub!\n",This); 208 209 return E_NOTIMPL; 209 210 } 210 211 … … 212 213 IVideoWindow_fnget_BackgroundPalette(IVideoWindow* iface,long* plBackPal) 213 214 { 214 CFilterGraph_THIS(iface,vidwin);215 216 FIXME("(%p)->() stub!\n",This);217 218 return E_NOTIMPL;215 CFilterGraph_THIS(iface,vidwin); 216 217 FIXME("(%p)->() stub!\n",This); 218 219 return E_NOTIMPL; 219 220 } 220 221 … … 222 223 IVideoWindow_fnput_Visible(IVideoWindow* iface,long lVisible) 223 224 { 224 CFilterGraph_THIS(iface,vidwin);225 226 FIXME("(%p)->() stub!\n",This);227 228 return E_NOTIMPL;225 CFilterGraph_THIS(iface,vidwin); 226 227 FIXME("(%p)->() stub!\n",This); 228 229 return E_NOTIMPL; 229 230 } 230 231 … … 232 233 IVideoWindow_fnget_Visible(IVideoWindow* iface,long* plVisible) 233 234 { 234 CFilterGraph_THIS(iface,vidwin);235 236 FIXME("(%p)->() stub!\n",This);237 238 return E_NOTIMPL;235 CFilterGraph_THIS(iface,vidwin); 236 237 FIXME("(%p)->() stub!\n",This); 238 239 return E_NOTIMPL; 239 240 } 240 241 … … 242 243 IVideoWindow_fnput_Left(IVideoWindow* iface,long lLeft) 243 244 { 244 CFilterGraph_THIS(iface,vidwin);245 246 FIXME("(%p)->() stub!\n",This);247 248 return E_NOTIMPL;245 CFilterGraph_THIS(iface,vidwin); 246 247 FIXME("(%p)->() stub!\n",This); 248 249 return E_NOTIMPL; 249 250 } 250 251 … … 252 253 IVideoWindow_fnget_Left(IVideoWindow* iface,long* plLeft) 253 254 { 254 CFilterGraph_THIS(iface,vidwin);255 256 FIXME("(%p)->() stub!\n",This);257 258 return E_NOTIMPL;255 CFilterGraph_THIS(iface,vidwin); 256 257 FIXME("(%p)->() stub!\n",This); 258 259 return E_NOTIMPL; 259 260 } 260 261 … … 262 263 IVideoWindow_fnput_Width(IVideoWindow* iface,long lWidth) 263 264 { 264 CFilterGraph_THIS(iface,vidwin);265 266 FIXME("(%p)->() stub!\n",This);267 268 return E_NOTIMPL;265 CFilterGraph_THIS(iface,vidwin); 266 267 FIXME("(%p)->() stub!\n",This); 268 269 return E_NOTIMPL; 269 270 } 270 271 … … 272 273 IVideoWindow_fnget_Width(IVideoWindow* iface,long* plWidth) 273 274 { 274 CFilterGraph_THIS(iface,vidwin);275 276 FIXME("(%p)->() stub!\n",This);277 278 return E_NOTIMPL;275 CFilterGraph_THIS(iface,vidwin); 276 277 FIXME("(%p)->() stub!\n",This); 278 279 return E_NOTIMPL; 279 280 } 280 281 … … 282 283 IVideoWindow_fnput_Top(IVideoWindow* iface,long lTop) 283 284 { 284 CFilterGraph_THIS(iface,vidwin);285 286 FIXME("(%p)->() stub!\n",This);287 288 return E_NOTIMPL;285 CFilterGraph_THIS(iface,vidwin); 286 287 FIXME("(%p)->() stub!\n",This); 288 289 return E_NOTIMPL; 289 290 } 290 291 … … 292 293 IVideoWindow_fnget_Top(IVideoWindow* iface,long* plTop) 293 294 { 294 CFilterGraph_THIS(iface,vidwin);295 296 FIXME("(%p)->() stub!\n",This);297 298 return E_NOTIMPL;295 CFilterGraph_THIS(iface,vidwin); 296 297 FIXME("(%p)->() stub!\n",This); 298 299 return E_NOTIMPL; 299 300 } 300 301 … … 302 303 IVideoWindow_fnput_Height(IVideoWindow* iface,long lHeight) 303 304 { 304 CFilterGraph_THIS(iface,vidwin);305 306 FIXME("(%p)->() stub!\n",This);307 308 return E_NOTIMPL;305 CFilterGraph_THIS(iface,vidwin); 306 307 FIXME("(%p)->() stub!\n",This); 308 309 return E_NOTIMPL; 309 310 } 310 311 … … 312 313 IVideoWindow_fnget_Height(IVideoWindow* iface,long* plHeight) 313 314 { 314 CFilterGraph_THIS(iface,vidwin);315 316 FIXME("(%p)->() stub!\n",This);317 318 return E_NOTIMPL;315 CFilterGraph_THIS(iface,vidwin); 316 317 FIXME("(%p)->() stub!\n",This); 318 319 return E_NOTIMPL; 319 320 } 320 321 … … 322 323 IVideoWindow_fnput_Owner(IVideoWindow* iface,OAHWND hwnd) 323 324 { 324 CFilterGraph_THIS(iface,vidwin);325 326 FIXME("(%p)->() stub!\n",This);327 328 return E_NOTIMPL;325 CFilterGraph_THIS(iface,vidwin); 326 327 FIXME("(%p)->() stub!\n",This); 328 329 return E_NOTIMPL; 329 330 } 330 331 … … 332 333 IVideoWindow_fnget_Owner(IVideoWindow* iface,OAHWND* phwnd) 333 334 { 334 CFilterGraph_THIS(iface,vidwin);335 336 FIXME("(%p)->() stub!\n",This);337 338 return E_NOTIMPL;335 CFilterGraph_THIS(iface,vidwin); 336 337 FIXME("(%p)->() stub!\n",This); 338 339 return E_NOTIMPL; 339 340 } 340 341 … … 342 343 IVideoWindow_fnput_MessageDrain(IVideoWindow* iface,OAHWND hwnd) 343 344 { 344 CFilterGraph_THIS(iface,vidwin);345 346 FIXME("(%p)->() stub!\n",This);347 348 return E_NOTIMPL;345 CFilterGraph_THIS(iface,vidwin); 346 347 FIXME("(%p)->() stub!\n",This); 348 349 return E_NOTIMPL; 349 350 } 350 351 … … 352 353 IVideoWindow_fnget_MessageDrain(IVideoWindow* iface,OAHWND* phwnd) 353 354 { 354 CFilterGraph_THIS(iface,vidwin);355 356 FIXME("(%p)->() stub!\n",This);357 358 return E_NOTIMPL;355 CFilterGraph_THIS(iface,vidwin); 356 357 FIXME("(%p)->() stub!\n",This); 358 359 return E_NOTIMPL; 359 360 } 360 361 … … 362 363 IVideoWindow_fnget_BorderColor(IVideoWindow* iface,long* plColor) 363 364 { 364 CFilterGraph_THIS(iface,vidwin);365 366 FIXME("(%p)->() stub!\n",This);367 368 return E_NOTIMPL;365 CFilterGraph_THIS(iface,vidwin); 366 367 FIXME("(%p)->() stub!\n",This); 368 369 return E_NOTIMPL; 369 370 } 370 371 … … 372 373 IVideoWindow_fnput_BorderColor(IVideoWindow* iface,long lColor) 373 374 { 374 CFilterGraph_THIS(iface,vidwin);375 376 FIXME("(%p)->() stub!\n",This);377 378 return E_NOTIMPL;375 CFilterGraph_THIS(iface,vidwin); 376 377 FIXME("(%p)->() stub!\n",This); 378 379 return E_NOTIMPL; 379 380 } 380 381 … … 382 383 IVideoWindow_fnget_FullScreenMode(IVideoWindow* iface,long* plMode) 383 384 { 384 CFilterGraph_THIS(iface,vidwin);385 386 FIXME("(%p)->() stub!\n",This);387 388 return E_NOTIMPL;385 CFilterGraph_THIS(iface,vidwin); 386 387 FIXME("(%p)->() stub!\n",This); 388 389 return E_NOTIMPL; 389 390 } 390 391 … … 392 393 IVideoWindow_fnput_FullScreenMode(IVideoWindow* iface,long lMode) 393 394 { 394 CFilterGraph_THIS(iface,vidwin);395 396 FIXME("(%p)->() stub!\n",This);397 398 return E_NOTIMPL;395 CFilterGraph_THIS(iface,vidwin); 396 397 FIXME("(%p)->() stub!\n",This); 398 399 return E_NOTIMPL; 399 400 } 400 401 … … 402 403 IVideoWindow_fnSetWindowForeground(IVideoWindow* iface,long lFocus) 403 404 { 404 CFilterGraph_THIS(iface,vidwin);405 406 FIXME("(%p)->() stub!\n",This);407 408 return E_NOTIMPL;405 CFilterGraph_THIS(iface,vidwin); 406 407 FIXME("(%p)->() stub!\n",This); 408 409 return E_NOTIMPL; 409 410 } 410 411 … … 412 413 IVideoWindow_fnNotifyOwnerMessage(IVideoWindow* iface,OAHWND hwnd,long message,LONG_PTR wParam,LONG_PTR lParam) 413 414 { 414 CFilterGraph_THIS(iface,vidwin);415 416 FIXME("(%p)->() stub!\n",This);417 418 return E_NOTIMPL;415 CFilterGraph_THIS(iface,vidwin); 416 417 FIXME("(%p)->() stub!\n",This); 418 419 return E_NOTIMPL; 419 420 } 420 421 … … 422 423 IVideoWindow_fnSetWindowPosition(IVideoWindow* iface,long lLeft,long lTop,long lWidth,long lHeight) 423 424 { 424 CFilterGraph_THIS(iface,vidwin);425 426 FIXME("(%p)->() stub!\n",This);427 428 return E_NOTIMPL;425 CFilterGraph_THIS(iface,vidwin); 426 427 FIXME("(%p)->() stub!\n",This); 428 429 return E_NOTIMPL; 429 430 } 430 431 … … 432 433 IVideoWindow_fnGetWindowPosition(IVideoWindow* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight) 433 434 { 434 CFilterGraph_THIS(iface,vidwin);435 436 FIXME("(%p)->() stub!\n",This);437 438 return E_NOTIMPL;435 CFilterGraph_THIS(iface,vidwin); 436 437 FIXME("(%p)->() stub!\n",This); 438 439 return E_NOTIMPL; 439 440 } 440 441 … … 442 443 IVideoWindow_fnGetMinIdealImageSize(IVideoWindow* iface,long* plWidth,long* plHeight) 443 444 { 444 CFilterGraph_THIS(iface,vidwin);445 446 FIXME("(%p)->() stub!\n",This);447 448 return E_NOTIMPL;445 CFilterGraph_THIS(iface,vidwin); 446 447 FIXME("(%p)->() stub!\n",This); 448 449 return E_NOTIMPL; 449 450 } 450 451 … … 452 453 IVideoWindow_fnGetMaxIdealImageSize(IVideoWindow* iface,long* plWidth,long* plHeight) 453 454 { 454 CFilterGraph_THIS(iface,vidwin);455 456 FIXME("(%p)->() stub!\n",This);457 458 return E_NOTIMPL;455 CFilterGraph_THIS(iface,vidwin); 456 457 FIXME("(%p)->() stub!\n",This); 458 459 return E_NOTIMPL; 459 460 } 460 461 … … 462 463 IVideoWindow_fnGetRestorePosition(IVideoWindow* iface,long* plLeft,long* plTop,long* plWidth,long* plHeight) 463 464 { 464 CFilterGraph_THIS(iface,vidwin);465 466 FIXME("(%p)->() stub!\n",This);467 468 return E_NOTIMPL;465 CFilterGraph_THIS(iface,vidwin); 466 467 FIXME("(%p)->() stub!\n",This); 468 469 return E_NOTIMPL; 469 470 } 470 471 … … 472 473 IVideoWindow_fnHideCursor(IVideoWindow* iface,long lHide) 473 474 { 474 CFilterGraph_THIS(iface,vidwin);475 476 FIXME("(%p)->() stub!\n",This);477 478 return E_NOTIMPL;475 CFilterGraph_THIS(iface,vidwin); 476 477 FIXME("(%p)->() stub!\n",This); 478 479 return E_NOTIMPL; 479 480 } 480 481 … … 482 483 IVideoWindow_fnIsCursorHidden(IVideoWindow* iface,long* plHide) 483 484 { 484 CFilterGraph_THIS(iface,vidwin);485 486 FIXME("(%p)->() stub!\n",This);487 488 return E_NOTIMPL;485 CFilterGraph_THIS(iface,vidwin); 486 487 FIXME("(%p)->() stub!\n",This); 488 489 return E_NOTIMPL; 489 490 } 490 491 … … 494 495 static ICOM_VTABLE(IVideoWindow) ivideowindow = 495 496 { 496 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE497 /* IUnknown fields */498 IVideoWindow_fnQueryInterface,499 IVideoWindow_fnAddRef,500 IVideoWindow_fnRelease,501 /* IDispatch fields */502 IVideoWindow_fnGetTypeInfoCount,503 IVideoWindow_fnGetTypeInfo,504 IVideoWindow_fnGetIDsOfNames,505 IVideoWindow_fnInvoke,506 /* IVideoWindow fields */507 IVideoWindow_fnput_Caption,508 IVideoWindow_fnget_Caption,509 IVideoWindow_fnput_WindowStyle,510 IVideoWindow_fnget_WindowStyle,511 IVideoWindow_fnput_WindowStyleEx,512 IVideoWindow_fnget_WindowStyleEx,513 IVideoWindow_fnput_AutoShow,514 IVideoWindow_fnget_AutoShow,515 IVideoWindow_fnput_WindowState,516 IVideoWindow_fnget_WindowState,517 IVideoWindow_fnput_BackgroundPalette,518 IVideoWindow_fnget_BackgroundPalette,519 IVideoWindow_fnput_Visible,520 IVideoWindow_fnget_Visible,521 IVideoWindow_fnput_Left,522 IVideoWindow_fnget_Left,523 IVideoWindow_fnput_Width,524 IVideoWindow_fnget_Width,525 IVideoWindow_fnput_Top,526 IVideoWindow_fnget_Top,527 IVideoWindow_fnput_Height,528 IVideoWindow_fnget_Height,529 IVideoWindow_fnput_Owner,530 IVideoWindow_fnget_Owner,531 IVideoWindow_fnput_MessageDrain,532 IVideoWindow_fnget_MessageDrain,533 IVideoWindow_fnget_BorderColor,534 IVideoWindow_fnput_BorderColor,535 IVideoWindow_fnget_FullScreenMode,536 IVideoWindow_fnput_FullScreenMode,537 IVideoWindow_fnSetWindowForeground,538 IVideoWindow_fnNotifyOwnerMessage,539 IVideoWindow_fnSetWindowPosition,540 IVideoWindow_fnGetWindowPosition,541 IVideoWindow_fnGetMinIdealImageSize,542 IVideoWindow_fnGetMaxIdealImageSize,543 IVideoWindow_fnGetRestorePosition,544 IVideoWindow_fnHideCursor,545 IVideoWindow_fnIsCursorHidden,497 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 498 /* IUnknown fields */ 499 IVideoWindow_fnQueryInterface, 500 IVideoWindow_fnAddRef, 501 IVideoWindow_fnRelease, 502 /* IDispatch fields */ 503 IVideoWindow_fnGetTypeInfoCount, 504 IVideoWindow_fnGetTypeInfo, 505 IVideoWindow_fnGetIDsOfNames, 506 IVideoWindow_fnInvoke, 507 /* IVideoWindow fields */ 508 IVideoWindow_fnput_Caption, 509 IVideoWindow_fnget_Caption, 510 IVideoWindow_fnput_WindowStyle, 511 IVideoWindow_fnget_WindowStyle, 512 IVideoWindow_fnput_WindowStyleEx, 513 IVideoWindow_fnget_WindowStyleEx, 514 IVideoWindow_fnput_AutoShow, 515 IVideoWindow_fnget_AutoShow, 516 IVideoWindow_fnput_WindowState, 517 IVideoWindow_fnget_WindowState, 518 IVideoWindow_fnput_BackgroundPalette, 519 IVideoWindow_fnget_BackgroundPalette, 520 IVideoWindow_fnput_Visible, 521 IVideoWindow_fnget_Visible, 522 IVideoWindow_fnput_Left, 523 IVideoWindow_fnget_Left, 524 IVideoWindow_fnput_Width, 525 IVideoWindow_fnget_Width, 526 IVideoWindow_fnput_Top, 527 IVideoWindow_fnget_Top, 528 IVideoWindow_fnput_Height, 529 IVideoWindow_fnget_Height, 530 IVideoWindow_fnput_Owner, 531 IVideoWindow_fnget_Owner, 532 IVideoWindow_fnput_MessageDrain, 533 IVideoWindow_fnget_MessageDrain, 534 IVideoWindow_fnget_BorderColor, 535 IVideoWindow_fnput_BorderColor, 536 IVideoWindow_fnget_FullScreenMode, 537 IVideoWindow_fnput_FullScreenMode, 538 IVideoWindow_fnSetWindowForeground, 539 IVideoWindow_fnNotifyOwnerMessage, 540 IVideoWindow_fnSetWindowPosition, 541 IVideoWindow_fnGetWindowPosition, 542 IVideoWindow_fnGetMinIdealImageSize, 543 IVideoWindow_fnGetMaxIdealImageSize, 544 IVideoWindow_fnGetRestorePosition, 545 IVideoWindow_fnHideCursor, 546 IVideoWindow_fnIsCursorHidden, 546 547 547 548 }; … … 550 551 void CFilterGraph_InitIVideoWindow( CFilterGraph* pfg ) 551 552 { 552 TRACE("(%p)\n",pfg);553 ICOM_VTBL(&pfg->vidwin) = &ivideowindow;554 } 553 TRACE("(%p)\n",pfg); 554 ICOM_VTBL(&pfg->vidwin) = &ivideowindow; 555 } -
trunk/src/quartz/main.c
r6578 r6649 1 /* $Id: main.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */ 2 1 3 #include "config.h" 2 4 … … 22 24 typedef struct QUARTZ_CLASSENTRY 23 25 { 24 const CLSID*pclsid;25 QUARTZ_pCreateIUnknownpCreateIUnk;26 const CLSID* pclsid; 27 QUARTZ_pCreateIUnknown pCreateIUnk; 26 28 } QUARTZ_CLASSENTRY; 27 29 … … 36 38 static ICOM_VTABLE(IClassFactory) iclassfact = 37 39 { 38 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE39 IClassFactory_fnQueryInterface,40 IClassFactory_fnAddRef,41 IClassFactory_fnRelease,42 IClassFactory_fnCreateInstance,43 IClassFactory_fnLockServer40 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 41 IClassFactory_fnQueryInterface, 42 IClassFactory_fnAddRef, 43 IClassFactory_fnRelease, 44 IClassFactory_fnCreateInstance, 45 IClassFactory_fnLockServer 44 46 }; 45 47 46 48 typedef struct 47 49 { 48 /* IUnknown fields */49 ICOM_VFIELD(IClassFactory);50 DWORDref;51 /* IClassFactory fields */52 const QUARTZ_CLASSENTRY* pEntry;50 /* IUnknown fields */ 51 ICOM_VFIELD(IClassFactory); 52 DWORD ref; 53 /* IClassFactory fields */ 54 const QUARTZ_CLASSENTRY* pEntry; 53 55 } IClassFactoryImpl; 54 56 55 57 static const QUARTZ_CLASSENTRY QUARTZ_ClassList[] = 56 58 { 57 { &CLSID_FilterGraph, &QUARTZ_CreateFilterGraph },58 { &CLSID_SystemClock, &QUARTZ_CreateSystemClock },59 { &CLSID_MemoryAllocator, &QUARTZ_CreateMemoryAllocator },60 { NULL, NULL },59 { &CLSID_FilterGraph, &QUARTZ_CreateFilterGraph }, 60 { &CLSID_SystemClock, &QUARTZ_CreateSystemClock }, 61 { &CLSID_MemoryAllocator, &QUARTZ_CreateMemoryAllocator }, 62 { NULL, NULL }, 61 63 }; 62 64 … … 68 70 void* QUARTZ_AllocObj( DWORD dwSize ) 69 71 { 70 void*pv;71 72 EnterCriticalSection( &csHeap );73 dwClassObjRef ++;74 pv = HeapAlloc( hDLLHeap, 0, dwSize );75 if ( pv == NULL )76 dwClassObjRef --;77 LeaveCriticalSection( &csHeap );78 79 return pv;72 void* pv; 73 74 EnterCriticalSection( &csHeap ); 75 dwClassObjRef ++; 76 pv = HeapAlloc( hDLLHeap, 0, dwSize ); 77 if ( pv == NULL ) 78 dwClassObjRef --; 79 LeaveCriticalSection( &csHeap ); 80 81 return pv; 80 82 } 81 83 82 84 void QUARTZ_FreeObj( void* pobj ) 83 85 { 84 EnterCriticalSection( &csHeap );85 HeapFree( hDLLHeap, 0, pobj );86 dwClassObjRef --;87 LeaveCriticalSection( &csHeap );86 EnterCriticalSection( &csHeap ); 87 HeapFree( hDLLHeap, 0, pobj ); 88 dwClassObjRef --; 89 LeaveCriticalSection( &csHeap ); 88 90 } 89 91 90 92 void* QUARTZ_AllocMem( DWORD dwSize ) 91 93 { 92 return HeapAlloc( hDLLHeap, 0, dwSize );94 return HeapAlloc( hDLLHeap, 0, dwSize ); 93 95 } 94 96 95 97 void QUARTZ_FreeMem( void* pMem ) 96 98 { 97 HeapFree( hDLLHeap, 0, pMem );99 HeapFree( hDLLHeap, 0, pMem ); 98 100 } 99 101 … … 103 105 IClassFactory_fnQueryInterface(LPCLASSFACTORY iface,REFIID riid,LPVOID *ppobj) 104 106 { 105 ICOM_THIS(IClassFactoryImpl,iface);106 107 TRACE("(%p)->(%p,%p)\n",This,riid,ppobj);108 if ( ( IsEqualGUID( &IID_IUnknown, riid ) ) ||109 ( IsEqualGUID( &IID_IClassFactory, riid ) ) )110 {111 *ppobj = iface;112 IClassFactory_AddRef(iface);113 return S_OK;114 }115 116 return E_NOINTERFACE;107 ICOM_THIS(IClassFactoryImpl,iface); 108 109 TRACE("(%p)->(%p,%p)\n",This,riid,ppobj); 110 if ( ( IsEqualGUID( &IID_IUnknown, riid ) ) || 111 ( IsEqualGUID( &IID_IClassFactory, riid ) ) ) 112 { 113 *ppobj = iface; 114 IClassFactory_AddRef(iface); 115 return S_OK; 116 } 117 118 return E_NOINTERFACE; 117 119 } 118 120 119 121 static ULONG WINAPI IClassFactory_fnAddRef(LPCLASSFACTORY iface) 120 122 { 121 ICOM_THIS(IClassFactoryImpl,iface);122 123 TRACE("(%p)->()\n",This);124 125 return ++(This->ref);123 ICOM_THIS(IClassFactoryImpl,iface); 124 125 TRACE("(%p)->()\n",This); 126 127 return ++(This->ref); 126 128 } 127 129 128 130 static ULONG WINAPI IClassFactory_fnRelease(LPCLASSFACTORY iface) 129 131 { 130 ICOM_THIS(IClassFactoryImpl,iface);131 132 TRACE("(%p)->()\n",This);133 if ( (--(This->ref)) > 0 )134 return This->ref;135 136 QUARTZ_FreeObj(This);137 return 0;132 ICOM_THIS(IClassFactoryImpl,iface); 133 134 TRACE("(%p)->()\n",This); 135 if ( (--(This->ref)) > 0 ) 136 return This->ref; 137 138 QUARTZ_FreeObj(This); 139 return 0; 138 140 } 139 141 140 142 static HRESULT WINAPI IClassFactory_fnCreateInstance(LPCLASSFACTORY iface,LPUNKNOWN pOuter,REFIID riid,LPVOID *ppobj) 141 143 { 142 ICOM_THIS(IClassFactoryImpl,iface);143 HRESULThr;144 IUnknown*punk;145 146 TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,debugstr_guid(riid),ppobj);147 148 if ( ppobj == NULL )149 return E_POINTER;150 if ( pOuter != NULL && !IsEqualGUID( riid, &IID_IUnknown ) )151 return CLASS_E_NOAGGREGATION;152 153 *ppobj = NULL;154 155 hr = (*This->pEntry->pCreateIUnk)(pOuter,(void**)&punk);156 if ( hr != S_OK )157 return hr;158 159 hr = IUnknown_QueryInterface(punk,riid,ppobj);160 IUnknown_Release(punk);161 162 return hr;144 ICOM_THIS(IClassFactoryImpl,iface); 145 HRESULT hr; 146 IUnknown* punk; 147 148 TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,debugstr_guid(riid),ppobj); 149 150 if ( ppobj == NULL ) 151 return E_POINTER; 152 if ( pOuter != NULL && !IsEqualGUID( riid, &IID_IUnknown ) ) 153 return CLASS_E_NOAGGREGATION; 154 155 *ppobj = NULL; 156 157 hr = (*This->pEntry->pCreateIUnk)(pOuter,(void**)&punk); 158 if ( hr != S_OK ) 159 return hr; 160 161 hr = IUnknown_QueryInterface(punk,riid,ppobj); 162 IUnknown_Release(punk); 163 164 return hr; 163 165 } 164 166 165 167 static HRESULT WINAPI IClassFactory_fnLockServer(LPCLASSFACTORY iface,BOOL dolock) 166 168 { 167 ICOM_THIS(IClassFactoryImpl,iface);168 HRESULThr;169 170 FIXME("(%p)->(%d),stub!\n",This,dolock);171 if (dolock)172 hr = IClassFactory_AddRef(iface);173 else174 hr = IClassFactory_Release(iface);175 176 return hr;169 ICOM_THIS(IClassFactoryImpl,iface); 170 HRESULT hr; 171 172 FIXME("(%p)->(%d),stub!\n",This,dolock); 173 if (dolock) 174 hr = IClassFactory_AddRef(iface); 175 else 176 hr = IClassFactory_Release(iface); 177 178 return hr; 177 179 } 178 180 … … 181 183 static HRESULT IClassFactory_Alloc( const CLSID* pclsid, void** ppobj ) 182 184 { 183 const QUARTZ_CLASSENTRY*pEntry;184 IClassFactoryImpl*pImpl;185 186 TRACE( "(%s,%p)\n", debugstr_guid(pclsid), ppobj );187 188 pEntry = QUARTZ_ClassList;189 while ( pEntry->pclsid != NULL )190 {191 if ( IsEqualGUID( pclsid, pEntry->pclsid ) )192 goto found;193 }194 195 return CLASS_E_CLASSNOTAVAILABLE;185 const QUARTZ_CLASSENTRY* pEntry; 186 IClassFactoryImpl* pImpl; 187 188 TRACE( "(%s,%p)\n", debugstr_guid(pclsid), ppobj ); 189 190 pEntry = QUARTZ_ClassList; 191 while ( pEntry->pclsid != NULL ) 192 { 193 if ( IsEqualGUID( pclsid, pEntry->pclsid ) ) 194 goto found; 195 } 196 197 return CLASS_E_CLASSNOTAVAILABLE; 196 198 found: 197 pImpl = (IClassFactoryImpl*)QUARTZ_AllocObj( sizeof(IClassFactoryImpl) );198 if ( pImpl == NULL )199 return E_OUTOFMEMORY;200 201 ICOM_VTBL(pImpl) = &iclassfact;202 pImpl->ref = 1;203 pImpl->pEntry = pEntry;204 205 *ppobj = (void*)pImpl;206 return S_OK;207 } 208 209 210 /*********************************************************************** 211 * QUARTZ_InitProcess (internal)199 pImpl = (IClassFactoryImpl*)QUARTZ_AllocObj( sizeof(IClassFactoryImpl) ); 200 if ( pImpl == NULL ) 201 return E_OUTOFMEMORY; 202 203 ICOM_VTBL(pImpl) = &iclassfact; 204 pImpl->ref = 1; 205 pImpl->pEntry = pEntry; 206 207 *ppobj = (void*)pImpl; 208 return S_OK; 209 } 210 211 212 /*********************************************************************** 213 * QUARTZ_InitProcess (internal) 212 214 */ 213 215 static BOOL QUARTZ_InitProcess( void ) 214 216 { 215 TRACE("()\n");216 217 dwClassObjRef = 0;218 hDLLHeap = (HANDLE)NULL;219 InitializeCriticalSection( &csHeap );220 221 hDLLHeap = HeapCreate( 0, 0x10000, 0 );222 if ( hDLLHeap == (HANDLE)NULL )223 return FALSE;224 225 return TRUE;226 } 227 228 /*********************************************************************** 229 * QUARTZ_UninitProcess (internal)217 TRACE("()\n"); 218 219 dwClassObjRef = 0; 220 hDLLHeap = (HANDLE)NULL; 221 InitializeCriticalSection( &csHeap ); 222 223 hDLLHeap = HeapCreate( 0, 0x10000, 0 ); 224 if ( hDLLHeap == (HANDLE)NULL ) 225 return FALSE; 226 227 return TRUE; 228 } 229 230 /*********************************************************************** 231 * QUARTZ_UninitProcess (internal) 230 232 */ 231 233 static void QUARTZ_UninitProcess( void ) 232 234 { 233 TRACE("()\n");234 235 if ( dwClassObjRef != 0 )236 ERR( "you must release some objects allocated from quartz.\n" );237 if ( hDLLHeap != (HANDLE)NULL )238 {239 HeapDestroy( hDLLHeap );240 hDLLHeap = (HANDLE)NULL;241 }242 DeleteCriticalSection( &csHeap );243 } 244 245 /*********************************************************************** 246 * QUARTZ_DllMain235 TRACE("()\n"); 236 237 if ( dwClassObjRef != 0 ) 238 ERR( "you must release some objects allocated from quartz.\n" ); 239 if ( hDLLHeap != (HANDLE)NULL ) 240 { 241 HeapDestroy( hDLLHeap ); 242 hDLLHeap = (HANDLE)NULL; 243 } 244 DeleteCriticalSection( &csHeap ); 245 } 246 247 /*********************************************************************** 248 * QUARTZ_DllMain 247 249 */ 248 250 BOOL WINAPI QUARTZ_DllMain( 249 HINSTANCE hInstDLL,250 DWORD fdwReason,251 LPVOID lpvReserved )252 { 253 switch ( fdwReason )254 {255 case DLL_PROCESS_ATTACH:256 if ( !QUARTZ_InitProcess() )257 return FALSE;258 break;259 case DLL_PROCESS_DETACH:260 QUARTZ_UninitProcess();261 break;262 case DLL_THREAD_ATTACH:263 break;264 case DLL_THREAD_DETACH:265 break;266 }267 268 return TRUE;269 } 270 271 272 /*********************************************************************** 273 * DllCanUnloadNow (QUARTZ.@)251 HINSTANCE hInstDLL, 252 DWORD fdwReason, 253 LPVOID lpvReserved ) 254 { 255 switch ( fdwReason ) 256 { 257 case DLL_PROCESS_ATTACH: 258 if ( !QUARTZ_InitProcess() ) 259 return FALSE; 260 break; 261 case DLL_PROCESS_DETACH: 262 QUARTZ_UninitProcess(); 263 break; 264 case DLL_THREAD_ATTACH: 265 break; 266 case DLL_THREAD_DETACH: 267 break; 268 } 269 270 return TRUE; 271 } 272 273 274 /*********************************************************************** 275 * DllCanUnloadNow (QUARTZ.@) 274 276 * 275 277 * RETURNS … … 279 281 HRESULT WINAPI QUARTZ_DllCanUnloadNow(void) 280 282 { 281 HRESULThr;282 283 EnterCriticalSection( &csHeap );284 hr = ( dwClassObjRef == 0 ) ? S_OK : S_FALSE;285 LeaveCriticalSection( &csHeap );286 287 return hr;288 } 289 290 /*********************************************************************** 291 * DllGetClassObject (QUARTZ.@)283 HRESULT hr; 284 285 EnterCriticalSection( &csHeap ); 286 hr = ( dwClassObjRef == 0 ) ? S_OK : S_FALSE; 287 LeaveCriticalSection( &csHeap ); 288 289 return hr; 290 } 291 292 /*********************************************************************** 293 * DllGetClassObject (QUARTZ.@) 292 294 */ 293 295 HRESULT WINAPI QUARTZ_DllGetClassObject( 294 const CLSID* pclsid,const IID* piid,void** ppv)295 { 296 *ppv = NULL;297 if ( IsEqualCLSID( &IID_IUnknown, piid ) ||298 IsEqualCLSID( &IID_IClassFactory, piid ) )299 {300 return IClassFactory_Alloc( pclsid, ppv );301 }302 303 return CLASS_E_CLASSNOTAVAILABLE;304 } 305 306 /*********************************************************************** 307 * DllRegisterServer (QUARTZ.@)296 const CLSID* pclsid,const IID* piid,void** ppv) 297 { 298 *ppv = NULL; 299 if ( IsEqualCLSID( &IID_IUnknown, piid ) || 300 IsEqualCLSID( &IID_IClassFactory, piid ) ) 301 { 302 return IClassFactory_Alloc( pclsid, ppv ); 303 } 304 305 return CLASS_E_CLASSNOTAVAILABLE; 306 } 307 308 /*********************************************************************** 309 * DllRegisterServer (QUARTZ.@) 308 310 */ 309 311 310 312 HRESULT WINAPI QUARTZ_DllRegisterServer( void ) 311 313 { 312 FIXME( "(): stub\n" );313 return E_FAIL;314 } 315 316 /*********************************************************************** 317 * DllUnregisterServer (QUARTZ.@)314 FIXME( "(): stub\n" ); 315 return E_FAIL; 316 } 317 318 /*********************************************************************** 319 * DllUnregisterServer (QUARTZ.@) 318 320 */ 319 321 320 322 HRESULT WINAPI QUARTZ_DllUnregisterServer( void ) 321 323 { 322 FIXME( "(): stub\n" );323 return E_FAIL;324 } 325 324 FIXME( "(): stub\n" ); 325 return E_FAIL; 326 } 327 -
trunk/src/quartz/memalloc.c
r6578 r6649 1 /* $Id: memalloc.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */ 1 2 /* 2 3 * Implementation of CLSID_MemoryAllocator. … … 32 33 HRESULT QUARTZ_CreateMemoryAllocator(IUnknown* punkOuter,void** ppobj) 33 34 { 34 CMemoryAllocator*pma;35 CMemoryAllocator* pma; 35 36 36 TRACE("(%p,%p)\n",punkOuter,ppobj);37 TRACE("(%p,%p)\n",punkOuter,ppobj); 37 38 38 pma = (CMemoryAllocator*)QUARTZ_AllocObj( sizeof(CMemoryAllocator) );39 if ( pma == NULL )40 return E_OUTOFMEMORY;39 pma = (CMemoryAllocator*)QUARTZ_AllocObj( sizeof(CMemoryAllocator) ); 40 if ( pma == NULL ) 41 return E_OUTOFMEMORY; 41 42 42 QUARTZ_IUnkInit( &pma->unk, punkOuter );43 CMemoryAllocator_InitIMemAllocator( pma );43 QUARTZ_IUnkInit( &pma->unk, punkOuter ); 44 CMemoryAllocator_InitIMemAllocator( pma ); 44 45 45 pma->unk.pEntries = IFEntries;46 pma->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);46 pma->unk.pEntries = IFEntries; 47 pma->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]); 47 48 48 *ppobj = (void*)(&pma->unk);49 *ppobj = (void*)(&pma->unk); 49 50 50 return S_OK;51 return S_OK; 51 52 } -
trunk/src/quartz/sysclock.c
r6578 r6649 1 /* $Id: sysclock.c,v 1.3 2001-09-05 13:36:38 bird Exp $ */ 1 2 /* 2 3 * Implementation of CLSID_SystemClock. … … 32 33 HRESULT QUARTZ_CreateSystemClock(IUnknown* punkOuter,void** ppobj) 33 34 { 34 CSystemClock*psc;35 CSystemClock* psc; 35 36 36 TRACE("(%p,%p)\n",punkOuter,ppobj);37 TRACE("(%p,%p)\n",punkOuter,ppobj); 37 38 38 psc = (CSystemClock*)QUARTZ_AllocObj( sizeof(CSystemClock) );39 if ( psc == NULL )40 return E_OUTOFMEMORY;39 psc = (CSystemClock*)QUARTZ_AllocObj( sizeof(CSystemClock) ); 40 if ( psc == NULL ) 41 return E_OUTOFMEMORY; 41 42 42 QUARTZ_IUnkInit( &psc->unk, punkOuter );43 CSystemClock_InitIReferenceClock( psc );43 QUARTZ_IUnkInit( &psc->unk, punkOuter ); 44 CSystemClock_InitIReferenceClock( psc ); 44 45 45 psc->unk.pEntries = IFEntries;46 psc->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]);46 psc->unk.pEntries = IFEntries; 47 psc->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]); 47 48 48 *ppobj = (void*)(&psc->unk);49 *ppobj = (void*)(&psc->unk); 49 50 50 return S_OK;51 return S_OK; 51 52 }
Note:
See TracChangeset
for help on using the changeset viewer.
