MAMEWorld >> News
View all threads Index   Threaded Mode Threaded  

Pages: 1

Naibo
Reged: 10/17/07
Posts: 148
Send PM


Added Jaleco VJ, and workable Stepstag driver
#373376 - 01/24/18 08:16 PM Attachment: 0011.png 359 KB (0 downloads)


The palette of stepstag is in YUV(UYVY) format, each 4-byte entry may contain 2 pixels. Is this format supported in MAME?

I've some difficulty using github, so just emailed drivers by the traditional way. Hope it still works.

[ATTACHED IMAGE]

Attachment



Naibo
Reged: 10/17/07
Posts: 148
Send PM


Re: Added Jaleco VJ, and workable Stepstag driver new [Re: Naibo]
#373377 - 01/24/18 08:18 PM Attachment: 0013.png 9 KB (0 downloads)


VJ, boot into self-test, since only the main CPU board is available so far:
(There should be 2 sprite rom chips missing on the current board)

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment

Edited by Naibo (01/25/18 03:43 AM)



Haze
Reged: 09/23/03
Posts: 5245
Send PM


Re: Added Jaleco VJ, and workable Stepstag driver new [Re: Naibo]
#373378 - 01/24/18 08:43 PM


If you mean the graphics are all stored as 16-bit UYUV data then it will require custom drawing code rather than using tilemaps & drawgfx etc. (as MAME can only draw up to 8-bit source graphics anyway) I had to do custom for X2222 prototype for example as the actual gfx data there is raw 15-bit colour data.

If you mean just the palette is in that format, then it should just require decoding in the palette writes?



Naibo
Reged: 10/17/07
Posts: 148
Send PM


Re: Added Jaleco VJ, and workable Stepstag driver new [Re: Haze]
#373389 - 01/25/18 03:39 AM


The palette is in 32-bit format: 8-bit for each U, Y1, V, and Y2. I tried to convert it to RGB in the palette-ram-writing handler(to verify its format) by using the first 3 elements, U, Y1, V, but ignored Y2. The resule looked OK.

While, in the real machine, there's also a MPEG video layer. The sprite layer is mixed with MPEG decoder's YUV output stream, then converted together to RGB. That's why its palette uses YUV instead of RGB.

For the 2nd Y element, many years ago I observed a "Stepping Stage 2" machine and noticed that its screens were in interlaced-mode, should be 480i. The video memories show only 240 lines in logical, so it is the palette that gives 2 pixels for odd/even scan field, I guess.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Added Jaleco VJ, and workable Stepstag driver new [Re: Naibo]
#373451 - 01/26/18 09:55 PM


MAME supports YUV layers for the laserdisc games (the LD video goes to one and the video card is hopefully used to convert to RGB). I don't know off the top of my head *which* YUV format it is though.



Naibo
Reged: 10/17/07
Posts: 148
Send PM


Re: Added Jaleco VJ, and workable Stepstag driver new [Re: R. Belmont]
#373459 - 01/27/18 12:47 AM


Nice. YUV output is really useful, as there're many machines with full-motion videos. Let me study the mame output code...

BTW, just wondering whether the email address for code submission still works? I've sent my code to this address last week-end. Hope it was not lost.
I also tried github in webpage mode, but was given an information of build failure.



Roberto Fresca
Cuernito Rules!...
Reged: 08/12/04
Posts: 285
Send PM


Re: Added Jaleco VJ, and workable Stepstag driver new [Re: Naibo]
#373473 - 01/27/18 05:21 AM



> I also tried github in webpage mode, but was given an information of build failure.

You have errors in the MACHINE_CONFIG_START...


<<<<<<< master
static MACHINE_CONFIG_START( stepstag )
MCFG_CPU_ADD("maincpu", M68000, 12000000 )
=======
MACHINE_CONFIG_START(stepstag_state::stepstag)
MCFG_CPU_ADD("maincpu", M68000, 16000000 ) //??
>>>>>>> master



-- Risen from my grave --



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4466
Loc: Melbourne, Australia
Send PM


Re: Added Jaleco VJ, and workable Stepstag driver new [Re: Naibo]
#373476 - 01/27/18 07:30 AM


I got it, I'll take a look after release. I'm really busy at the moment.



Naibo
Reged: 10/17/07
Posts: 148
Send PM


Re: Added Jaleco VJ, and workable Stepstag driver new [Re: Roberto Fresca]
#373477 - 01/27/18 10:18 AM


Hi, Roberto,

Thanks for your information. This seems to be an automatic merge issue, as my work was based on mame0193, while the mame master driver source code had some changes after my fork.
I can compile my code without any problem. Maybe it needs a manual merge?
Here's my code:
"
static MACHINE_CONFIG_START( stepstag )
MCFG_CPU_ADD("maincpu", M68000, 12000000 )
MCFG_CPU_PROGRAM_MAP(stepstag_map)
MCFG_CPU_VBLANK_INT_DRIVER("mscreen", tetrisp2_state, irq2_line_hold) // lev 4 triggered by system timer

MCFG_CPU_ADD("sub", M68000, 16000000 ) //??
MCFG_CPU_PROGRAM_MAP(stepstag_sub_map)
MCFG_CPU_VBLANK_INT_DRIVER("lscreen", tetrisp2_state, irq4_line_hold) // lev 6 triggered by main CPU

MCFG_NVRAM_ADD_0FILL("nvram")
"

What I experienced seems another issue. The error message given by github is:
"[error] Unable to validate Yaml checksum. This means that secrets will not be injected. In addition the Deploy and Notify steps will not be executed. To resolve this please regenerate the secrets file.
[info] Pulling image plugins/drone-git:latest
Drone Git Plugin built from 43dcd64
$ git init
Initialized empty Git repository in /drone/src/github.com/mamedev/mame/.git/
$ git remote add origin https://github.com/mamedev/mame.git
$ git fetch --no-tags origin +refs/pull/3097/merge:
fatal: Couldn't find remote ref refs/pull/3097/merge
[info] build failed (exit code 1)
"

Can any friend help me with this?


Pages: 1

MAMEWorld >> News
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  John IV, Robbbert, Tafoid 
0 registered and 540 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1195