Questions tagged [directdraw]

DirectDraw is a deprecated API that used to be a part of Microsoft's DirectX API.

DirectDraw is used to accelerate rendering of graphics in applications. DirectDraw also allows applications to run fullscreen or embedded in a window such as most other MS Windows applications. DirectDraw uses hardware acceleration if it is available on the client's computer. DirectDraw allows direct access to video memory, hardware overlays, hardware blitters, and page flipping. Its video memory manager can manipulate video memory with ease, taking full advantage of the blitting and color decompression capabilities of different types of display adapters.

91 questions
1
vote
1 answer

Conversion from YUV444 to RGB888

I am new in this field and i desperately need some guidance from u all. I have to support yuv444 to rgb 888 in display driver module. There is one test which i have done for yv12 → rgb565 in wince 6.0 r3 which is mentioned below. …
Abhineet
  • 6,459
  • 10
  • 35
  • 53
1
vote
2 answers

Directdraw: Rotate video stream

Problem Windows Mobile / Directdraw: Rotate video stream The video preview is working, all I need now is a way to rotate the image. I think the only way to handle this is to write a custom filter based on CTransformFilter that will rotate the camera…
xsl
  • 17,116
  • 18
  • 71
  • 112
1
vote
1 answer

How does DirectX 3 (Three) present information to the display?

I have aquired a proxyDLL for DirectDraw, but none of the proxied functions get called, but the game works with the proxyDLL. Somehow FRAPS is able to show the frames per second counter, so it know how the data is displayed. But none of the…
Gizmo
  • 1,990
  • 1
  • 24
  • 50
1
vote
0 answers

SharpDX toolkit Content.Load throws SharpDXException

I'm trying to load a Direct Draw Surface into a Texture2D var using the SharpDX toolkit. So I created that var, called it pixel, created a dds file using paint.net and named it asdf.dds. I moved that file in the Content folder of my Project and…
jalgames
  • 781
  • 4
  • 23
1
vote
4 answers

In a DDS file can you detect textures with 0/1 alpha bits?

In my engine I have a need to be able to detect DXT1 textures that have texels with 0 alpha (e.g. a cutout for a window frame). This is easy for textures I compress myself, but I'm not sure about textures that are already compressed. Is there an…
Andrew Grant
  • 58,260
  • 22
  • 130
  • 143
1
vote
2 answers

Stretch blit in DirectX results in jagged edges

I have a Direct3D app which runs windowed or fullscreen at a fixed res (say 800x600). To support widescreen modes, I render to the back buffer at 800x600 and then use Blt to draw the final frame into a portion of the front buffer, which is usually…
ggambetta
  • 3,312
  • 6
  • 32
  • 42
1
vote
1 answer

What might cause IDirectDraw::GetCaps returns DDERR_INVALIDPARAMS?

I have this little snippet of code with IDirectDraw::GetCaps returning DDERR_INVALIDPARAMS (a.k.a. E_INVALIDARG, a.k.a. 0x80070057). The loaded dll is ddraw.dll 5.03.2600.5512 (xpsp.080413-0845) I need to check whether the display hardware has 3D…
Alessandro Jacopson
  • 18,047
  • 15
  • 98
  • 153
1
vote
1 answer

Creating DirectDraw Surface from scratch in c++

I'm trying to convert a 2d array to a DDS and saving it to a file. Array is full of Color structs (each having a red, green, blue and alpha component). Once I get the array to the correct format, I'm sure the saving it to file part won't be a…
gkres
  • 668
  • 1
  • 8
  • 17
1
vote
1 answer

Direct3D 11 with DirectDraw (2d) overlay

Basically, I want to do 2d drawing on a 3d swapchain. But my code injects in another program, with I don't have the source code. I can do my drawing, but it only works when the swapchain is created with DXGI_FORMAT_B8G8R8A8_UNORM (BGR)…
0
votes
1 answer

DirectX — is there an analogue of DirectDraw surface Flip()?

I'm building an application that is drawing an anaglyph (stereoimage) on 200 Hz screen based on two provided pictures (NOT 3D model). So speed integity of redrawing is very important. I've achieved the best results with DirectDraw surfaces and their…
khaos
  • 111
  • 2
0
votes
1 answer

DirectDraw application goes black after screen orientation change

I have a directdraw application (in c) that becomes black in color once the user rotates the screen using a button on the application. The button uses enumdisplaysettings to do this. I have tested this on both Nvidia and ATI, the problem…
0
votes
1 answer

Displaying another application on top of a directdraw full screen application

I am using a Full Screen application that is using DirectDraw functions for display and it is working fine. Now I want to show another application with its own window but the other application is hidden behind the full screen Direct Draw application…
AndroidDev
  • 5,193
  • 5
  • 37
  • 68
0
votes
0 answers

Can I use DirectX's DirectDraw to overwrite any pixel from any application?

I would like to do some real-time image(?)/video(?)/screen(?) processing to everything the user sees. I am not very familiar with DirectX, so I am unsure if DirectDraw (recommended by chatGPT) allows me to do so by manipulating the screen…
0
votes
1 answer

How to get IDirectDrawSurface from IGraphBuilder

I pulled an all nighter trying to find the solution to this, but to no avail. How do I get IDirectDraw, IDirectDrawSurface or even HDC handle from IGraphBuilder? Is that or something similar to that even possible ? I need to implement this so I can…
0
votes
1 answer

Allegro 4.2.4 in palette mode on Windows7 corruption

I have problem with Allegro 4.2.4 running palette mode (256 colors) in Windows 7. I found over Internet solution of killing explorer and it's working indeed, however it would be ridiculous to expect that end user will kill explorer when trying to…
PiotrK
  • 4,210
  • 6
  • 45
  • 65