forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Video out on Slim

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Oct 03, 2007 3:13 am    Post subject: Video out on Slim Reply with quote

I'm experimenting - trying to get video out on the slim. At the moment, I've been trying two functions that seemed promising.

int sceImposeCheckVideoOut(int *val);

Returns retval=0/val=2 if the component cable is plugged in. I suspect the 2 is the type of cable detected. Someone with a different cable should try it and see what val is when the function returns. If the cable is not plugged in, retval=80000107/val=N/A.

So we seem to have a way of detecting the video cable. So far so good. Now the function I was trying for switching the video is

int sceImposeSetVideoOutMode(int val);

I don't get any return value other than 0, and if val=0, the LCD is turned on, and if val!=0, the LCD is turned off. I tried various values of val, but it seems to just be on/off. I haven't discovered any "magic value" that turns on the video output.

That's where I'm at so far. Any suggestions or comments are welcome.
Back to top
View user's profile Send private message AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Oct 03, 2007 3:23 am    Post subject: Reply with quote

As has been pointed out in previous posts it might be related to a display mode, so load vsh with a plugin running and turn on tv and output the values received from sceDisplayGetMode to stdout or a file or something and see what they are :)
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Oct 03, 2007 4:32 am    Post subject: Reply with quote

Good thought. I'll do that. :)

EDIT: well, mode and pixelformat are normal in a game on the TV, so whatever redirects the video to the TV has nothing to do with the mode or pixelformat. The mode might still have something to do with the resolution of the video once it's redirected, but doesn't do the redirecting itself.
Back to top
View user's profile Send private message AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Oct 03, 2007 4:58 am    Post subject: Reply with quote

I didn't say game I said VSH :P I fully expect game mode to lie if needed.

You do also realize that probably all that is doing is setting some registry value somewhere :)
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Oct 03, 2007 12:00 pm    Post subject: Reply with quote

Yes, it could "lie" in game mode, but seeing as it's game mode we need to work from, that needs to be worked around. It's also easier to have a different function than to lie, so I'm going by that theory until someone shows differently. My guess is a new function in sceImpose or maybe sceDisplay.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group