answersLogoWhite

0

How do you work with video memory in c?

Updated: 10/18/2022
User Avatar

Ayangnr

Lvl 1
11y ago

Best Answer

Video memory is hardware specific. Any c implementation that directly accesses video memory will not be portable. In fact, video memory will probably not be accessible in modern operating systems, because the video driver provides the interface. Also, even the same hardware has different addresses for different modes.

It is better to use the OS's API to drive the image.

It you must access video memory, and assuming that you can, such as in real mode DOS, you can define a pointer unsigned char *ptr and initialize it to the address of video memory such as ptr = 0xB0000 and then use it ptr[someaddress] = somevalue. Keep in mind that you will probably also need to interface with the hardware registers.

It is better to use the OS's API to drive the image.

It is better to use the OS's API to drive the image.

Am I being clear enough? :-)>

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you work with video memory in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

DDR3 graphic will work on DDR2 Board?

Yes, it should without a problem. Video cards have their own memory, and it doesnt matter if the video memory is a different type to the motherboard memory.


Will a video card with DDR3 memory work with DDR2 desktop memory on DDR2 motherboard?

well ofciurse it will lol


Which memory card is best for recording video?

All modern memory cards work well for recording video, check the data transfer rate to check if the card supports higher framerate video.


Does the 512KB Mac Video RAM only upgrade my video memory, not my system memory?

That's correct, it will upgrade your video memory and not your system memory.


How do you get video memory on a computer?

how can i get the video memory address in computer?.


Will a video card that has DDR3 memory work with a computer that is using DDR2 sticks?

If you are using DDR2 RAM, then yes your video card should work. Provided you have suitable power going to the GPU.


Does a video card with ddr2 memory work on a mainboard with ddr memory?

assuming everything else is compatible, the memory is not an issue. many graphics card have ddr4 and ddr5 memory which isn't even available as RAM yet.


Is a graphics card memory?

Well the driver will take up very little hard drive space depending on the video card. Now all video cards have built in memory (RAM) but after the ammount that is on the video card runs out. It will start using the RAM on your computer. Just depends on the game you are trying to run. Also your Proccessor, RAM and Video Card all work together for running games. Hope this helped :)


How does the free function work in c language?

free() marks the memory locations as available for malloc().


What is video memory on your computer?

Video memory is the RAM in your machine that is used exclusively for your graphics hardware. This can be both the RAM chips built into the graphics chipset its self, or it can be the RAM that is optionally "carved out" from the system memory. The latter is called "shared video memory" although it isn't really sharing as the graphics hardware uses it exclusively.


How to free video memory on Windows 7?

To free video memory you must delete videos and have them unistalled.


How does network video cameras work?

No you do not need internet for a network video camera. All you need is a large enough RAM or memory drive to fit all your video then you could later on transfer the video to a internet compatible computer.