Page 1 of 2

Coding TV OUT 720x480 PSP SLIM

Posted: Sat Aug 02, 2014 10:48 am
by Mills
Hi!.

I try to set 720x480 resolution for TV out using dvemgr.prx.

My problem is I just get 1/4 of the screen showing.

Reading many source samples (daedalusx64, agenaworld) The code just loads the prx and sets tv out like this:

Code: Select all

pspSdkLoadStartModule("dvemgr.prx", PSP_MEMORY_PARTITION_KERNEL);
pspDveMgrSetVideoOut(0, 0x1D2, 720, 480, 1, 15, 0);
For me, this just shows copies of 1/4 of screen at 480x272.

Image

Setting the following produces the objects to be output at full screen, big objects, but only shows 1/4 of the object:

Code: Select all

sceGuViewport(2048,2048,720,480);
sceGuScissor(0,0,720,480);
If the prx is being loaded, it should set all necesary things, (vram size, etc...). But it does not.

I'm not a very good programer, could somebody tell me how to do it right?

Thanks a lot

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Sat Aug 02, 2014 11:58 am
by jack52032
try Fusa SD

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Sat Aug 02, 2014 12:33 pm
by Mills
jack52032 wrote:try Fusa SD
Fusa != 720x480 :cry:

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Sun Aug 03, 2014 6:37 pm
by Malachi
I remember back in the day trying to get this to work with my homebrew and was unsuccessful. If takka was to release his source for gpsp kai, we could see how he implemented this for use for fullscreen gba emulation on tv.

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Sun Aug 03, 2014 9:18 pm
by Belmondo
Have a look at this?
Homebrew coder Art dropped by the QJ.NET PSP Development Forum and shared an application created by Dark AleX that allows programmers to access the PSP Slim & Lite's TV out capabilities using component, composite, and d-terminal cables. More than a full program, this one is more of a "Hello World" proof that the hack can be done.

Art added that the resolution for composite cables is 720x503 while using component cables will yield a resolution of 720x480. The program has not been tested formally with D-terminal cables but it basically uses the same code as that of the component's. Art added:




To use it in your code, you just have to replace the call to sceDisplaySetMode with the call to my custom function pspDveMgrSetVideoOut (which calls sceImposeSetVideoOutMode, which at the end calls sceDisplaySetMode), and be aware of the bigger resolution.
http://www.qj.net/psp/homebrew-applicat ... ebrew.html

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Sun Aug 03, 2014 11:47 pm
by Mills
Belmondo wrote:Have a look at this?
Homebrew coder Art dropped by the QJ.NET PSP Development Forum and shared an application created by Dark AleX that allows programmers to access the PSP Slim & Lite's TV out capabilities using component, composite, and d-terminal cables. More than a full program, this one is more of a "Hello World" proof that the hack can be done.

Art added that the resolution for composite cables is 720x503 while using component cables will yield a resolution of 720x480. The program has not been tested formally with D-terminal cables but it basically uses the same code as that of the component's. Art added:




To use it in your code, you just have to replace the call to sceDisplaySetMode with the call to my custom function pspDveMgrSetVideoOut (which calls sceImposeSetVideoOutMode, which at the end calls sceDisplaySetMode), and be aware of the bigger resolution.
http://www.qj.net/psp/homebrew-applicat ... ebrew.html
Did not work with 2D images and 3d objects.. it just shows flat colours.

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Mon Aug 04, 2014 3:31 am
by J3LACK.EAGLE
try

Code: Select all

pspSdkLoadStartModule("dvemgr.prx", PSP_MEMORY_PARTITION_KERNEL);
pspDveMgrSetVideoOut(0, 0x1D0, 720, 480, 1, 15, 0);
or

Code: Select all

pspSdkLoadStartModule("dvemgr.prx", PSP_MEMORY_PARTITION_KERNEL);
pspDveMgrSetVideoOut(0, 0x1D2, 720, 480, 2, 15, 0);[/

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Mon Aug 04, 2014 12:55 pm
by Mills
J3LACK.EAGLE wrote:try

Code: Select all

pspSdkLoadStartModule("dvemgr.prx", PSP_MEMORY_PARTITION_KERNEL);
pspDveMgrSetVideoOut(0, 0x1D0, 720, 480, 1, 15, 0);
or

Code: Select all

pspSdkLoadStartModule("dvemgr.prx", PSP_MEMORY_PARTITION_KERNEL);
pspDveMgrSetVideoOut(0, 0x1D2, 720, 480, 2, 15, 0);[/
I allready tried. is not working

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Tue Aug 05, 2014 12:19 am
by Malachi
What library are you using for your gfx?

Re: Coding TV OUT 720x480 PSP SLIM

Posted: Wed Aug 06, 2014 3:01 am
by Omega2058
Hi, This is almost everything I have regarding video out. Hopefully it'll help you fix your issue.

For starters, I recommend calling pspDveMgrCheckVideoOut and then setting the video out based on the return value, it'll make your life easier. You probably already know this, but I'm adding it anyway so you'll have something to come back to and also for others who might be curious.

Code: Select all

/*
 *@return 0 - Cable not connected
 *@return 1 - S-Video Cable / AV (composite) cable 
 *@return  2 - D Terminal Cable / Component Cable 
 *@return < 0 - Error
 */
int pspDveMgrCheckVideoOut (void);
Also, here are the calls in order to display 720x480 for TV out using dvemgr.prx in various modes. If you don't wish to use proper checking above, then you'll have to try them out individually in order to figure out which one works. If none of these work (Which I'm sure is the case considering the current state of things), then would you mind posting what you currently have? Maybe you're doing something out of the ordinary in your code.

Code: Select all

/* S-Video Cable / AV (Composite OUT) / Progressive (480p) */
pspDveMgrSetVideoOut(2, 0x1D2, 720, 503, 1, 15, 0);

/*  S-Video Cable / AV (Composite OUT) / Interlace (480i) */
pspDveMgrSetVideoOut(2, 0x1D1, 720, 503, 1, 15, 0);

/* D Terminal Cable (Component OUT) / Progressive (480p)*/
pspDveMgrSetVideoOut(0, 0x1D2, 720, 480, 1, 15, 0);

/* D Terminal Cable (Component OUT) / Interlace (480i) */
pspDveMgrSetVideoOut(0, 0x1D1, 720, 503, 1, 15, 0);