Search found 574 matches

by PH3NOM
Fri Jul 23, 2010 1:55 pm
Forum: Programming Discussion
Topic: Drawing rgb565 image in output_buffer using PVR
Replies: 28
Views: 7365

Re: Drawing rgb565 image in output_buffer using PVR

Edit: I have made a huge speed boost in the code! This code is about 2x faster now. What I have done, is decoded the frames directly into PVR ram. This skips needing to load the texture from SH4 buffer into PVR ram. This also bypasses having to use "pvr_txr_load_ex" and twiddle the texture. /* Free ...
by PH3NOM
Thu Jul 22, 2010 9:28 am
Forum: Programming Discussion
Topic: Drawing rgb565 image in output_buffer using PVR
Replies: 28
Views: 7365

Re: Drawing rgb565 image in output_buffer using PVR

No not yet. It looks like I will need to re-write a few things, and implement store-queues first to implement PVR DMA. First I have a few other optimizations to make, like getting the video output function executing in its own thread, and get more speedups in the decoder. I have made other optimizat...
by PH3NOM
Wed Jul 21, 2010 12:19 am
Forum: Programming Discussion
Topic: Drawing rgb565 image in output_buffer using PVR
Replies: 28
Views: 7365

Re: Drawing rgb565 image in output_buffer using PVR

Small update:

XviD operates internally at YV12.
Using RGB565 colorspace was slow..

Turns out it is possible to use faster xvid internal colorspace conversion
to convert YV12 to UYVY that works with PVR_TXRFMT_YUV422...
by PH3NOM
Tue Jul 20, 2010 7:38 pm
Forum: Programming Discussion
Topic: Widescreen mode and kos ?
Replies: 39
Views: 9261

Re: Widescreen mode and kos ?

Thanks for the idea Quzar. By the way, this morning I have tested the 768*480 resolution in PAL and NTSC on my TV, and it doesn't work : it is still 640 * 480 and the image is no good (distorsion). Perhaps it is my hardware because i'm using a vga box which has a tv / pc option. Does someone has al...
by PH3NOM
Sun Jul 18, 2010 9:52 pm
Forum: Programming Discussion
Topic: Drawing rgb565 image in output_buffer using PVR
Replies: 28
Views: 7365

Re: Drawing rgb565 image in output_buffer using PVR

Awesome News! I have got the decoder drawing every decoded frame with the help here! http://www.underground-gamer.com/imagebucket/pvr_xvid_v10.jpeg And, BlueCrab, the rgb555 is misleading, it really is RGB565 as I thought, it is not ARGB1555. My problem was setting the height and width incorrectly f...
by PH3NOM
Sun Jul 18, 2010 2:20 pm
Forum: Programming Discussion
Topic: Drawing rgb565 image in output_buffer using PVR
Replies: 28
Views: 7365

Re: Drawing rgb565 image in output_buffer using PVR

Yeah I set the vertexes correctly for a 640x480 screen, so that part is worked out. Also, I tried big and little endian, resulting in different colors but still similar to the last screen I posted. The images should be RGB 16bit, as I have this defined in the code: CSP = XVID_CSP_RGB555; BPP = 2; He...
by PH3NOM
Sun Jul 18, 2010 12:33 pm
Forum: Programming Discussion
Topic: Widescreen mode and kos ?
Replies: 39
Views: 9261

Re: Widescreen mode and kos ?

Yeah I was wondering why KOS only included 768x480 interlace and not progressive...
I hope we can get this mode to work, I would like to use it also...

And, I thought the PVR could do 24bit display mode? I dont see a RGB888 or similar in PVR.h...?
by PH3NOM
Sat Jul 17, 2010 9:08 pm
Forum: Programming Discussion
Topic: Drawing rgb565 image in output_buffer using PVR
Replies: 28
Views: 7365

Re: Drawing rgb565 image in output_buffer using PVR

Thanks for the help, it is similar with other examples I was looking at. Ive almost got it to work. I think my problem is Im not sure exactly what parameter to pass here. //rawimagedata is the image data you have stored in memory. Is it the name of the variable that represents the location in memory...
by PH3NOM
Sat Jul 17, 2010 6:23 pm
Forum: Programming Discussion
Topic: Drawing rgb565 image in output_buffer using PVR
Replies: 28
Views: 7365

Drawing rgb565 image in output_buffer using PVR

So, I am still trying to become familiar with the PVR hardware, and dreamcast programming in general. I just cross-compiled libxvid.1.2.2 as a static lib for dc. I have cross-compiled the test app xvid_decraw for DC, currently using rgb565 colorspace output. Without optimizations, the dreamcast is a...
by PH3NOM
Thu Jul 15, 2010 9:00 pm
Forum: Programming Discussion
Topic: SDL Dreamcast Question
Replies: 5
Views: 1351

Re: SDL Dreamcast Question

Thanks OneThirty8 I know you have the experience with this code. It sounds like I will need to learn a bit more about working with the pvr hardware to make this work with decent speeds then. I will take a closer look at your video_out_dc.c. I compiled the vcdc source you linked using dev iso r4 and ...
by PH3NOM
Sat Jul 10, 2010 8:42 pm
Forum: Programming Discussion
Topic: SDL Dreamcast Question
Replies: 5
Views: 1351

Re: SDL Dreamcast Question

Thanks BlueCrab.
Too bad, I was under the impression Dreamcast SDL was quite solid...

At any rate, I dont want to spend time writing a custom video driver If there is a major issue elsewhere in the code..

So, do you see anything in the code posted, that will be particularly incompatible?
by PH3NOM
Sat Jul 10, 2010 4:38 pm
Forum: Programming Discussion
Topic: SDL Dreamcast Question
Replies: 5
Views: 1351

SDL Dreamcast Question

Hello everyone! I am trying to do my own port of libmpeg2 to Dreamcast. (For now, if successful more things will come...) I am trying to use SDL for the video driver. For this project, everything compiles fine, but after the video mode select screen "Press 'Y' for 60Hz" the app resets on Dreamcast. ...
by PH3NOM
Thu Jun 24, 2010 7:28 pm
Forum: Games and Software Hacking, Prototypes, and Devkits Discussion
Topic: dc-tool | Download a Game from my Dreamcast
Replies: 3
Views: 1016

Re: dc-tool | Download a Game from my Dreamcast

lolz Quazar thanks for the clarification, I thought he was asking something else at first.

EnigmaticCoder, the question you are looking for the answer to is actually "How do I dump a GD-Rom"
and these forums here are not intended for sharing knowledge on copying commercial games.
by PH3NOM
Fri Jun 18, 2010 9:51 pm
Forum: Homebrew Software and Indie Games Discussion
Topic: Compiled VC/DC 0.2 with DC Dev Iso R4...
Replies: 0
Views: 1296

Compiled VC/DC 0.2 with DC Dev Iso R4...

Okay this is mainly directed towards OneThirty8- Thanks again for your work porting libmpeg2 to dreamcast. I have compiled the source package ( "vcdc-0.2-src.tgz" CRC A266EB57 ) without problems, using "DC Dev Iso R4." But RunTime errors occur. When any video is loaded, it will draw a few frames, th...