Drawing pixels in a window in Windows

Click For Summary

Discussion Overview

The discussion revolves around implementing a framebuffer in a window for a digital video application on Windows XP. Participants explore various methods for efficiently displaying pixel data alongside other windows, considering performance requirements for full-motion color standard-resolution TV.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • Warren expresses a need for an efficient solution to display pixel data in a window, mentioning terms like "device context" and "overlay" but feeling uncertain about their application.
  • One participant suggests creating a Win32 or MFC application to manage window display and proposes integrating Windows Media Player as a simpler alternative.
  • Warren challenges the previous suggestions, stating they do not meet the required efficiency for high-end video games and proposes using device independent bitmaps (DIB) for better performance.
  • A later reply suggests considering device-dependent bitmaps (DDB) if efficiency is a priority, questioning Warren's focus on digital video playback.

Areas of Agreement / Disagreement

Participants do not appear to reach consensus, as there are competing views on the best approach to achieve the desired efficiency and functionality.

Contextual Notes

There are unresolved assumptions regarding the definitions and implications of using DIB versus DDB, as well as the specific performance requirements for the application.

chroot
Staff Emeritus
Science Advisor
Gold Member
Messages
10,270
Reaction score
45
I need to implement a sort of "framebuffer in a window" for a digital video application I'm working on. I need the window to be displayed alongside other windows (running Windows XP) and get along nicely with other windows on the desktop. The window will display the pixel data in an arbitrary framebuffer. I need the solution to be as efficient as possible, as I'm hoping to display full-motion color standard-resolution TV.

I roughly know the terms "device context" and "overlay," but I'm not sure how to proceed, or even if I'm supposed to be using overlays, or DirectX, or what. MSDN.com provides inspiring glimpses, but I largely cannot make heads or tails of what to do. I know it can be done, because, well, lots of applications do it.

- Warren
 
Computer science news on Phys.org
chroot said:
I need the window to be displayed alongside other windows (running Windows XP) and get along nicely with other windows on the desktop.

Create a Win32 or MFC application and the framework will take care of that for you.

chroot said:
I roughly know the terms "device context" and "overlay," but I'm not sure how to proceed, or even if I'm supposed to be using overlays, or DirectX, or what.

Have you considered integrating Windows Media Player into your application? That is the easiest way to accomplish what you want. Otherwise you'll have to write it from scratch and deal with DirectX, OpenGL or some video library.
 
Wave,

Sorry, but both of those suggestions are very poor, as they do not even approach the efficiency I need. (Think high-end video game efficiency.)

I discovered that the correct way to go about doing this is to use DIB (device independent bitmaps) and blit the bitmaps to the primary surface.

- Warren
 
chroot said:
Wave,

Sorry, but both of those suggestions are very poor, as they do not even approach the efficiency I need. (Think high-end video game efficiency.)

I discovered that the correct way to go about doing this is to use DIB (device independent bitmaps) and blit the bitmaps to the primary surface.

- Warren

I thought you wanted digital video playback. Consider DDB if efficiency is what you're looking for.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
14
Views
3K
  • · Replies 9 ·
Replies
9
Views
9K
Replies
2
Views
6K
Replies
46
Views
7K
  • · Replies 4 ·
Replies
4
Views
3K