Hi Georg !
Thank you very much, getting mplayer mission is successful!
As regards the VESA bug it affects all the 800x600 modes on ATI 7770, too.
eg. 800x600 32bit info block looks like this on this new ATI card:
VESA VBE Mode Information Block:
Mode Number 0x0122
Mode Attributes 0000000010111011b
Win A Attributes 00000111b
Win B Attributes 00000000b
Win Granularity 64
Win Size 64
Win A RM Segment 0x0000A000
Win B RM Segment 0x00000000
Win Func Ptr 0xC0005949
Bytes Per Scan Line 3328 !!! This is the important part
!!!
X Resolution 800
Y Resolution 600
X CharSize 8
Y CharSize 14
Number Of Planes 1
Bits Per Pixel 32
Number Of Banks 1
Memory Model 6
Bank Size 0
Number Of Image Pages 7
Red Mask Size 8
Red Field Position 16
Green Mask Size 8
Green Field Position 8
Blue Mask Size 8
Blue Field Position 0
Rsvd Mask Size 0
Rsvd Field Position 0
Direct Color Mode Info 0
Phys Base Ptr 0xD0000000
Off Screen Mem Offset 0
Off Screen Mem Size 0
Anyway all the non standard hires mode that does not show this
'Bytes Per Scan Line' anomaly works perfectly for me. Currently I'm using
Dillo for DOS in 1280x960 32bit.
I don't think it is too difficult to correct this bug, but of course the
final decision is yours.
I have a little putpixel asm routine (for 32 bit) that works perfectly with
this strange modes, the only trick is using this 'Bytes per Scanline' value
given in the modinfo struct when you calculate pixel position. eg.
PUTPIXEL PROC
push dx
mov ax,word ptr[loop1]
mov cx,word ptr [modeinfo.BytesPerScanLine] ; !!! This
is the important part !!!
mul cx
mov di,ax
push dx
mov ax,4
mul word ptr[loop2]
add di,ax
pop dx
adc dx,0
pop cx
cmp dx,cx
je @NOPAGING
push bx
mov ax,4f05h ;Lap number=dx
xor bx,bx
int 10h
pop bx
@NOPAGING:
mov ax,word ptr[red]
mul bl
shl eax,16
mov ecx,eax
mov ax,word ptr[green]
mul bl
shl eax,8
add ecx,eax
mov ax,word ptr[blue]
mul bl
add ecx,eax
mov es:[di],ecx
ret
PUTPIXEL ENDP
Best Regards:
falco
On Wed, Jul 17, 2013 at 5:57 PM, Georg Potthast <[email protected]>wrote:
> **
> Hi Falco,
>
> I am sorry I had originally planned to include mplayer with XFDOS but then
> decided on mpxplay due to the size of mplayer. I could send you the mplayer
> binary archive (7zip) which I have on disk via email but you have GMAIL
> which makes this difficult.
>
> The only supported settings are 1024/768, 800/600, 640/480 each with
> either 8888 for 32 bit and 565 for 16 bit. My VESA driver does not allow
> for other settings. I tried to implement higher resolutions but this turned
> out to be more difficult than expected so I did not finish that.
>
> Georg
>
> ----- Original Message -----
> *From:* Zoltán Bacskó <[email protected]>
> *To:* Technical discussion and questions for FreeDOS
> developers.<[email protected]>
> *Sent:* Wednesday, July 17, 2013 12:57 PM
> *Subject:* Re: [Freedos-devel] DJGPP Mplayer build
>
> Hi Georg,
>
> It's me again :)
> But now something completely different. Although I could not find mplayer
> in XFDOS I have found DILLO for DOS and I really like it.
> This is the best DOS based browser that I have tried so far. (There are
> not many but I think better than Arachne).
> But I have found a bug in the handling of VESA modes. When the given video
> mode's 'bytes per scanline' property <> required bytes per pixel * X
> resolution
> then the screen becomes a garbage. This is mostly true for special vesa
> modes like 1152x864 and 1400x1050 but it depends entirely on the video
> card. (Mine is an ATI Radeon 7770).
>
> Greetings:
> falco
>
>
> On Tue, Jul 16, 2013 at 10:33 PM, Georg Potthast <[email protected]
> > wrote:
>
>> I have included Khusraw's version of MPlayer in my XFDOS package:
>>
>>
>> http://code.google.com/p/nanox-microwindows-nxlib-fltk-for-dos/downloads/list
>>
>> You could copy it from the hard disk version.
>>
>> Georg
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Freedos-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Freedos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel