Comments (5)
At this moment, the raw capture mode is more of a direct capture of the pixel values as rasterized by the monitor, so if you're using a 200-line graphics mode on VGA, and the VGA is doubling each scan line as VGA normally does in those modes, then the raw capture will contain the raw pixel values, scan line doubled.
Good point on the aspect ratio fields though, I think I can figure out how to use libpng to write that.
from dosbox-x.
I'm sorry if "raw" is confusing in that it's not exactly a snapshot of video memory, but only a snapshot of the raw pixel values from video memory as they are rasterized to the screen.
from dosbox-x.
http://www.libpng.org/pub/png/book/chapter11.html#png.ch11.div.9
And the libpng function is png_set_pHYs but only if PNG_pHYs_SUPPORTED.
#ifdef PNG_pHYs_SUPPORTED
PNG_EXPORT(150, void, png_set_pHYs, (png_const_structrp png_ptr,
png_inforp info_ptr, png_uint_32 res_x, png_uint_32 res_y, int unit_type));
#endif
from dosbox-x.
Done. See latest commit.
from dosbox-x.
FYI, DOSBox Staging now has a revised raw capture mode which writes the raw framebuffer, e.g., 640x200 as 640x200.
Plus we also write the aspect ratio info into the PNG header, and we introduced the "upscaled" mode which essentially does aspect ratio correct upscaling via bilinear sharp to roughly 1200px of vertical resolution as most image viewers can only do square pixels.
from dosbox-x.
Related Issues (20)
- Windows 98 HOT 1
- Questions about the last nightly build HOT 1
- Disabling the FPU doesnโt stop Quake from running
- Inukaze vs Windows 98SE via DOSBox-X 2024.03.01 HOT 2
- XQueryPointer starts to return constant values after mouse "lock" (cursor sticks to the screen edges) HOT 3
- [Solved] Is VGA 9dot font hardcoded in DOSBox? HOT 5
- Does not work at all on Sonoma HOT 1
- DOSbox-X crashes on startup with a PCIe parallel card with address D100 in Windows 10 HOT 19
- Set custom icon from config file?
- Freeze at Joan of Arc: The Siege & The Sword HOT 1
- Screen blank freeze at Bleem 1.4 demo HOT 2
- MT-32/CM32L emulator game issues - Rise of the Dragon, Bumpy HOT 1
- Custom characters and graphical mouse of Norton Desktop for DOS are not working HOT 22
- redirecting any access to the autoexec.bat and config.sys files to a drive the user chooses HOT 3
- Inukaze -VS- Windows 95 OSR2.1 [ Magic3D Drivers ] HOT 11
- Where are these CRTC timings coming from? HOT 1
- New SFT code causes Windows 3.1 to crash on exit with Invalid Opcode exception (executing random code in HMA). HOT 10
- Input crashes when 1) moving app window to other monitor, 2) switching app windows, 3) minimizing and restoring HOT 5
- Please add the "FIND" command to SHELL_Cmd cmd_list[] HOT 3
- Can't get MIDI Fluidsynth to recognize SF2 Sound font file in Arch Linux HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dosbox-x.