Changeset 6649 for trunk/src/quartz/imem.c
- Timestamp:
- Sep 5, 2001, 3:39:12 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 30 CMemoryAllocator_THIS(iface,memalloc); 30 31 31 32 TRACE("(%p)->()\n",This); 32 33 33 34 return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj); 34 35 } 35 36 … … 37 38 IMemAllocator_fnAddRef(IMemAllocator* iface) 38 39 { 39 40 CMemoryAllocator_THIS(iface,memalloc); 40 41 41 42 TRACE("(%p)->()\n",This); 42 43 43 44 return IUnknown_AddRef(This->unk.punkControl); 44 45 } 45 46 … … 47 48 IMemAllocator_fnRelease(IMemAllocator* iface) 48 49 { 49 50 CMemoryAllocator_THIS(iface,memalloc); 50 51 51 52 TRACE("(%p)->()\n",This); 52 53 53 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 60 CMemoryAllocator_THIS(iface,memalloc); 60 61 61 62 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 69 CMemoryAllocator_THIS(iface,memalloc); 69 70 70 71 71 FIXME( "(%p)->() stub!\n", This ); 72 return E_NOTIMPL; 72 73 } 73 74 … … 75 76 IMemAllocator_fnCommit(IMemAllocator* iface) 76 77 { 77 78 CMemoryAllocator_THIS(iface,memalloc); 78 79 79 80 80 FIXME( "(%p)->() stub!\n", This ); 81 return E_NOTIMPL; 81 82 } 82 83 … … 84 85 IMemAllocator_fnDecommit(IMemAllocator* iface) 85 86 { 86 87 CMemoryAllocator_THIS(iface,memalloc); 87 88 88 89 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 96 CMemoryAllocator_THIS(iface,memalloc); 96 97 97 98 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 105 CMemoryAllocator_THIS(iface,memalloc); 105 106 106 107 107 FIXME( "(%p)->() stub!\n", This ); 108 return E_NOTIMPL; 108 109 } 109 110 … … 112 113 static ICOM_VTABLE(IMemAllocator) imemalloc = 113 114 { 114 115 116 117 118 119 120 121 122 123 124 125 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 132 132 TRACE("(%p)\n",pma); 133 ICOM_VTBL(&pma->memalloc) = &imemalloc; 133 134 }
Note:
See TracChangeset
for help on using the changeset viewer.