Advertising (This ad goes away for registered users. You can Login or Register)

Coding TV OUT 720x480 PSP SLIM

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Mills
Posts: 36
Joined: Sat Aug 02, 2014 10:09 am

Coding TV OUT 720x480 PSP SLIM

Post 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
Advertising
Last edited by Mills on Sun Aug 03, 2014 11:45 pm, edited 1 time in total.
jack52032
Posts: 379
Joined: Thu Dec 19, 2013 1:17 am

Re: Coding TV OUT 720x480 PSP SLIM

Post by jack52032 »

try Fusa SD
Advertising
Mills
Posts: 36
Joined: Sat Aug 02, 2014 10:09 am

Re: Coding TV OUT 720x480 PSP SLIM

Post by Mills »

jack52032 wrote:try Fusa SD
Fusa != 720x480 :cry:
Malachi
Posts: 131
Joined: Fri Feb 11, 2011 10:28 pm

Re: Coding TV OUT 720x480 PSP SLIM

Post 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.
Belmondo
Posts: 102
Joined: Sat Jan 01, 2011 6:32 pm

Re: Coding TV OUT 720x480 PSP SLIM

Post 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
Mills
Posts: 36
Joined: Sat Aug 02, 2014 10:09 am

Re: Coding TV OUT 720x480 PSP SLIM

Post 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.
J3LACK.EAGLE
Posts: 268
Joined: Sun May 22, 2011 4:08 am
Contact:

Re: Coding TV OUT 720x480 PSP SLIM

Post 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);[/
Mills
Posts: 36
Joined: Sat Aug 02, 2014 10:09 am

Re: Coding TV OUT 720x480 PSP SLIM

Post 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
Malachi
Posts: 131
Joined: Fri Feb 11, 2011 10:28 pm

Re: Coding TV OUT 720x480 PSP SLIM

Post by Malachi »

What library are you using for your gfx?
Omega2058
Developer
Posts: 246
Joined: Tue Sep 28, 2010 4:27 am
Contact:

Re: Coding TV OUT 720x480 PSP SLIM

Post 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);
Locked

Return to “Programming and Security”