@@ -101,7 +101,7 @@ bool ofMediaFoundationPlayer::MEDXDeviceManager::createDX11Device() {
101101 );
102102
103103 if (FAILED (hr)) {
104- ofLogError (" ofMEDXDeviceManager::CreateDX11Device()" ) << " unable to use hw accel." ;
104+ ofLogError (" ofMEDXDeviceManager::CreateDX11Device()" ) << " unable to use hw accel." ;
105105 mBUseDX = false ;
106106 return mBUseDX ;
107107 }
@@ -110,22 +110,22 @@ bool ofMediaFoundationPlayer::MEDXDeviceManager::createDX11Device() {
110110 if (SUCCEEDED (m_spDX11Device.Get ()->QueryInterface (IID_PPV_ARGS (&spMultithread)))) {
111111 spMultithread->SetMultithreadProtected (TRUE );
112112 } else {
113- ofLogError (" ofMEDXDeviceManager :: CreateDX11Device" ) << " unable to set multi thread." ;
113+ ofLogError (" ofMEDXDeviceManager:: CreateDX11Device" ) << " unable to set multi thread." ;
114114 mBUseDX = false ;
115115 return mBUseDX ;
116116 }
117117
118118
119119 hr = MFCreateDXGIDeviceManager (&mResetToken , &m_spDXGIManager);
120120 if (FAILED (hr)) {
121- ofLogError (" ofMEDXDeviceManager :: CreateDX11Device" ) << " unable to create DXGIDeviceManager." ;
121+ ofLogError (" ofMEDXDeviceManager:: CreateDX11Device" ) << " unable to create DXGIDeviceManager." ;
122122 mBUseDX = false ;
123123 return mBUseDX ;
124124 }
125125
126126 hr = m_spDXGIManager->ResetDevice (m_spDX11Device.Get (), mResetToken );
127127 if (FAILED (hr)) {
128- ofLogError (" ofMEDXDeviceManager :: CreateDX11Device" ) << " unable to ResetDevice." ;
128+ ofLogError (" ofMEDXDeviceManager:: CreateDX11Device" ) << " unable to ResetDevice." ;
129129 mBUseDX = false ;
130130 return mBUseDX ;
131131 }
@@ -137,7 +137,7 @@ bool ofMediaFoundationPlayer::MEDXDeviceManager::createDX11Device() {
137137 }
138138
139139 if (gl_handleD3D == nullptr ) {
140- ofLogError (" ofMEDXDeviceManager :: CreateDX11Device" ) << " error creating GL D3D Handle." ;
140+ ofLogError (" ofMEDXDeviceManager:: CreateDX11Device" ) << " error creating GL D3D Handle." ;
141141 mBUseDX = false ;
142142 }
143143
@@ -313,13 +313,13 @@ bool SharedDXGLTexture::create(DXGI_FORMAT aDxFormat) {
313313
314314 HRESULT hr = dxMan->getD11Device ()->CreateTexture2D (&desc2, nullptr , stagingTexture.GetAddressOf ());
315315 if (FAILED (hr)) {
316- ofLogError (" ofMEVideoPlayer :: SharedDXGLTexture :: create" ) << " Failed to create staging texture" ;
316+ ofLogError (" ofMEVideoPlayer:: SharedDXGLTexture:: create" ) << " Failed to create staging texture" ;
317317 return false ;
318318 }
319319
320320 mBValid = (mGLDX_Handle != nullptr );
321321 } else {
322- ofLogError (" SharedDXGLTexture :: createSharedTexture" ) << " ERROR Creating shared texture." ;
322+ ofLogError (" SharedDXGLTexture:: createSharedTexture" ) << " ERROR Creating shared texture." ;
323323 mBValid = false ;
324324 }
325325 return mBValid ;
@@ -391,7 +391,7 @@ bool SharedDXGLTexture::updatePixels(ofTexture& aSrcTex, ofPixels& apix, ofPixel
391391 immediateContext->CopyResource (stagingTexture.Get (), lDestImage);
392392 // copy the texture to a staging resource
393393 if (!stagingTexture) {
394- ofLogError (" ofMediaFoundationPlayer :: SharedDXGLTexture :: updatePixels" ) << " ERROR copying staging texture." ;
394+ ofLogError (" ofMediaFoundationPlayer :: SharedDXGLTexture :: updatePixels" ) << " ERROR copying staging texture." ;
395395 return false ;
396396 }
397397
@@ -403,13 +403,13 @@ bool SharedDXGLTexture::updatePixels(ofTexture& aSrcTex, ofPixels& apix, ofPixel
403403 0 ,
404404 &mapInfo);
405405 if (hr != S_OK) {
406- ofLogError (" ofMediaFoundationPlayer :: SharedDXGLTexture :: updatePixels" ) << " Failed to map staging texture." ;
406+ ofLogError (" ofMediaFoundationPlayer :: SharedDXGLTexture :: updatePixels" ) << " Failed to map staging texture." ;
407407 return false ;
408408 }
409409 immediateContext->Unmap (stagingTexture.Get (), 0 );
410410
411411 if (FAILED (hr)) {
412- ofLogVerbose (" ofMediaFoundationPlayer :: SharedDXGLTexture :: updatePixels" ) << " unable to map hw dx texture." ;
412+ ofLogVerbose (" ofMediaFoundationPlayer :: SharedDXGLTexture :: updatePixels" ) << " unable to map hw dx texture." ;
413413 aSrcTex.readToPixels (apix);
414414 return apix.getWidth () > 0 ;
415415 }
0 commit comments