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 

Chotto Cam accessing
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
guyver2



Joined: 10 Jul 2007
Posts: 5

PostPosted: Sun Jul 29, 2007 5:49 am    Post subject: Reply with quote

look at my message 5 or 6 post up. I give a zip file with a couple of C file (.c & .h) that allow to save or load bmp file
_________________
Psp prog
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Sun Jul 29, 2007 7:13 am    Post subject: Reply with quote

guyver2 wrote:
look at my message 5 or 6 post up. I give a zip file with a couple of C file (.c & .h) that allow to save or load bmp file


Do you mean the example with mask?

Does it mean that
u32 *vram = (u32 *)0x04000000; is the video static ram pointer

format is
// color is 0xRRGGBBAA
// 0x00000000 is totaly black

So from there is possible to convert into RGB / BMP picture file?

Thanks
Back to top
View user's profile Send private message
califrag



Joined: 04 Apr 2007
Posts: 30

PostPosted: Mon Jul 30, 2007 2:21 am    Post subject: Reply with quote

forgive me if I am wrong but at least in all my experience with programming on the PSP the color channel has been reversed:

ie. 0xAABBGGRR

White, Full Alpha: 0xFFFFFFFF
White, Zero Alpha: 0x00FFFFFF

Red, Full Alpha: 0xFF0000FF
Red, Zero Alpha: 0x000000FF

Green, Full Alpha: 0xFF00FF00
Green, Zero Alpha: 0x0000FF00

Blue, Full Alpha: 0xFFFF0000
Blue, Zero Alpha: 0x00FF0000
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Mon Jul 30, 2007 2:37 am    Post subject: Reply with quote

Quote:


ie. 0xAABBGGRR

White, Full Alpha: 0xFFFFFFFF
White, Zero Alpha: 0x00FFFFFF

Red, Full Alpha: 0xFF0000FF
Red, Zero Alpha: 0x000000FF

Green, Full Alpha: 0xFF00FF00
Green, Zero Alpha: 0x0000FF00

Blue, Full Alpha: 0xFFFF0000
Blue, Zero Alpha: 0x00FF0000
thanks a lot!
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Mon Jul 30, 2007 10:06 pm    Post subject: Reply with quote

Just one question to be sure, because something is still wrong in my code:

Is "vram" 32bit per pixel, i.e. 4 bytes per pixel: 8 bit per AA, 8x3 for BGR ?

or

Isn't "vram" RGB555, i.e. 16 bit per pixel: 1 bit for Alpha, 5x3 bit for BGR (or RGB) ?

Thanks a lot
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Tue Jul 31, 2007 12:31 am    Post subject: Reply with quote

VRAM has no preset defaults in bitsizes
its your FRAMEBUFFER bit level that determines what / how you present
color information
Color Components YOU handle what sizes and in what bit ratio you use
so its upto YOU to figure out how you want to present color in VRAM
not upto the VRAM to say which you have to follow
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Wed Aug 01, 2007 12:47 am    Post subject: Reply with quote

ok ok, now I've understood.
Sorry for my trivial assumptions, thanks to all for kind support.
Back to top
View user's profile Send private message
WANGL3



Joined: 24 Sep 2007
Posts: 4

PostPosted: Mon Sep 24, 2007 4:55 pm    Post subject: Talkman mic? Reply with quote

hi there

I am trying to record a short voice clip through TALKMAN mic, i read code in thread "Chotto Cam" and knows how to access the cam. However, when i apply it to TALKMAN mic, seems the usb device is not invoked at all.

i can compile the usbcamera sample code with the library provided namely
"libpspusbcam_driver.a" and "libpspusbcam.a"

it seems to me that i need a library something like "libpspusbmic_driver.a" to access the TALKMAN mic. BUT I have no idea where to find it.

is it a part of usbmic.prx, if so,,, how can i get it..... i do not want to write driver from scratch, neither can i do that....

thanks in advance
Back to top
View user's profile Send private message
califrag



Joined: 04 Apr 2007
Posts: 30

PostPosted: Tue Sep 25, 2007 4:30 am    Post subject: Reply with quote

@WANGL3:
1) learn to read!
2) don't start new threads just because you can! (http://forums.ps2dev.org/viewtopic.php?t=9018)


QUOTE FROM PAGE ONE OF A TWO PAGE THREAD!!!

kururin wrote:
Two new samples.

First one is a correction of the previous one. Video was correct, but when you took photos, the image was reversed from left to right if the camera looked to you, and reversed from up-down and left-right when looking to the other side. It seems that the sceUsbCamAutoImageReverseSW(1) only affects video, and not still images, so i had to check the lens direction manually and set the reverseflags field of the SetupStill structure properly.

Second one is an example of audio recording from the camera mic. It records wav pcm files to /PSP/MUSIC.

http://www.megaupload.com/?d=666JJNHU

Changes to the includes: added documentation of the mic functions, added the lens callback functions documentation.
Changes to the libs: added the nid sceUsbCamSetupMicEx, and added the library pspusbcam_driver for those that want to use the camera in a kernel prx.


Now, only the following functions are missing from documentation:

- sceUsbCam_1E958148: it is referenced by camera_plugin.prx, but the function that uses it is never called (there is neither jal to it, nor a pointer to it). The code sets first parameter to 0xC0000003, and the second parameter seems a pointer to an integer that receives something.

- sceUsbCam_6784E6A8, sceUsbCam_95F8901E, sceUsbCam_AA7D94BA, sceUsbCam_C72ED6D3 and sceUsbCam_D865997B. They are neither used nor referenced by camera_plugin.



And surprisingly the link is still alive!!!
Back to top
View user's profile Send private message
WANGL3



Joined: 24 Sep 2007
Posts: 4

PostPosted: Tue Sep 25, 2007 3:19 pm    Post subject: Reply with quote

to califrag

a) learn to double check everything before you bullshit

Yes, i did download the code from the "surprisingly alive link". and i did test it with my TALKMAN mic, it does not work!!!!!!!, and i did say this in my previous post.... open your eyes wide please.

c) you can post question or a solution, do not post your complain here when you did not even contribute anything

btw this is the solution to your bullshit
Back to top
View user's profile Send private message
califrag



Joined: 04 Apr 2007
Posts: 30

PostPosted: Tue Sep 25, 2007 7:38 pm    Post subject: Reply with quote

lol yes now you really make me want to help you.. good luck man with that attitude i never shoulda even bothered replying to you. and yes i did see that you said talkman, however all you really specify in both of your useless threads is "seems i need a library something like libpspusbmic_driver.a" which doesn't exist.. anyways not my problem anymore.
Back to top
View user's profile Send private message
WANGL3



Joined: 24 Sep 2007
Posts: 4

PostPosted: Tue Sep 25, 2007 9:28 pm    Post subject: Reply with quote

"anyways not my problem anymore" then just get lost.... do not play god here... u r nothing.

i have read your previous post, you really are nothing.
Back to top
View user's profile Send private message
cloudhunter



Joined: 17 Aug 2006
Posts: 86

PostPosted: Tue Sep 25, 2007 9:42 pm    Post subject: Reply with quote

You badmouth someone who is trying to help you? What planet are you on?

I think I can smell a lock of this topic coming up...

Cloudy
_________________
:)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
califrag



Joined: 04 Apr 2007
Posts: 30

PostPosted: Wed Sep 26, 2007 2:59 am    Post subject: Reply with quote

WANGL3 wrote:
"anyways not my problem anymore" then just get lost.... do not play god here... u r nothing.

i have read your previous post, you really are nothing.


I am not "playing god" you stupid idiot.

I was trying to offer you help - the code you need is there, you just don't know how to apply it. (I'm not surprised)

You must be some idiot little kid to act the way you do.

It would be a shame for this topic to get locked because of such a waste of threadspace.

Please stop posting on these forums - as it seems, you have nothing to say of any value.
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Thu Oct 30, 2008 8:05 pm    Post subject: Reply with quote

Sry to bump the old thread, but can anyone verify that the USB camera mic
sample actually works with the Talkman mic (no camera) model?
Art.

EDIT..
I now have both Go Cam and Talkman mic, and the sample app only works
with the camera mic unfortunately :(
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sat Nov 01, 2008 2:52 am    Post subject: Reply with quote

I think to make it work you just need to use the usbmic exports, instead of usbcam, but the API is the same.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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