I'm in the process of writing a hardware accelerated h264 decoder using Media Foundation's Source Reader, but have encountered a problem. I followed this tutorial and supported myself with Windows SDK Media Foundation samples. -------------------------------------------------------------------------------- My app seems to work fine when hardware acceleration is turned off, but it doesn't [...] read more
I'm trying to encode the ID3D11Texture2D to mp4 using MediaFoundation. Below is my current code. Initializing Sink Writer private int InitializeSinkWriter(String outputFile, int videoWidth, int videoHeight) { IMFMediaType mediaTypeIn = null; IMFMediaType mediaTypeOut = null; IMFAttributes attributes = null; int hr = 0; if (Succeeded(hr)) hr = (int)MFExtern.MFCreateAttributes(out attributes, 1); [...] read more
The goal: Write "minimum viable", no frills or extras code that sets up SharpDX 12 (a C# wrapper around DirectX 12), creates a window, and executes a present loop that clears the screen to RGBA (0, 0, 1, 1). The expectation: Having followed a DirectX 12 setup tutorial as best [...] read more
I'm working on a school project with four others. We're writing a game in C# and Monogame. They pass around the source code without any problems, but I cannot run the program. I get this error on 1 out of 5 computers. I've been researching, but can't seem to find [...] read more
I have realtime graphics in WPF application with DirectX on SharpDX. I use Direct2D1, Direct Composition, SwapCain. Its perfectly works with 1 object on window, but if i add more one (9), then there are problems: in debug after 1-2 min or if I actively move window between monitors, I [...] read more
am trying to run my unity build but it crashes when i try to change the scene and sometimes it crashes when i start the build , but i have no error it works fine in the editor here is the error log file : i checked the Don't destroyOnLoad [...] read more
NetworkingHololens in the application name and I'm trying to use the SharingService to manipulate a cube over the network. When I run other apps(without the networking capability), it runs fine on the HoloLens emulator, but when I run this or any other networking app, the following error shows up after [...] read more
Currently working on a feature in our Hololens application that allows the user to take Mixed Reality Capture photos on command. My first stab at this involved verbatim copy and pasting the code snippets from this tutorial: https://developer.microsoft.com/en-us/windows/holographic/locatable_camera_in_unity Specifically, only the snippets in sections "Common Set Up for PhotoCapture" and [...] read more
Before the game starts, I load all my sprites(more than 500 .xnb files), but then I always get this error message: > An exception of type 'SharpDX.SharpDXException' occurred in SharpDX.DLL but > was not handled in user code Additional information: HRESULT: [0x887A0005], > Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], > Message: The [...] read more
I have problem with capturing a photo. I have tried to solve this for 3 days, I hope that you will help me with this. My xaml : <CaptureElement x:Name="capturePreview" Stretch="Uniform" Grid.Column="0" Height="200" Width="300" VerticalAlignment="Center" HorizontalAlignment="Center"/> <Image x:Name="imagePreivew" Stretch="Uniform" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Stretch"/> <StackPanel Orientation="Horizontal"> <Button Click="InitCameraBtn_Click" Content="Initialize Camera" /> <Button [...] read more
My App suddenly crashes at one point (reproducible) when run on a 512mb phone emulator (only have a 920 to test). There wasn't any exception, it just went black. I then ran the analysis tool on the application and found out the memory reaches its limit at the point the [...] read more
My app need to load image from web each time with provided category and it is working, the problem is memory, Image loaded in memory not being remove when next category image load and hence memory increases and the app closing with the following message- The program '[4036] TaskHost.exe' has [...] read more
I have a simple DirectX program that crashes when I minimize & then unminimize. These are the event cases I cover: case WM_SIZING: case WM_SIZE: if(engine.isReady()) engine.resizeDevice(); if(engine.isReady()) engine.draw(); break; The resize is roughly: deviceContext->OMSetRenderTargets(0, NULL, NULL); ... deviceInterface->CreateRenderTargetView( ... ); ... deviceContext->RSSetViewports(1, &vp); ... deviceContext->OMSetRenderTargets(1, &renderTargetInterface, NULL); When I [...] read more