Chotto Cam accessing

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

guyver2
Posts: 5
Joined: Tue Jul 10, 2007 6:43 am
Contact:

Post by guyver2 »

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
mypspdev
Posts: 178
Joined: Wed Jul 11, 2007 10:30 pm

Post by mypspdev »

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
califrag
Posts: 30
Joined: Wed Apr 04, 2007 4:43 pm

Post by califrag »

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
mypspdev
Posts: 178
Joined: Wed Jul 11, 2007 10:30 pm

Post by mypspdev »


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!
mypspdev
Posts: 178
Joined: Wed Jul 11, 2007 10:30 pm

Post by mypspdev »

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
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

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
mypspdev
Posts: 178
Joined: Wed Jul 11, 2007 10:30 pm

Post by mypspdev »

ok ok, now I've understood.
Sorry for my trivial assumptions, thanks to all for kind support.
WANGL3
Posts: 4
Joined: Mon Sep 24, 2007 2:13 pm

Talkman mic?

Post by WANGL3 »

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
califrag
Posts: 30
Joined: Wed Apr 04, 2007 4:43 pm

Post by califrag »

@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!!!
WANGL3
Posts: 4
Joined: Mon Sep 24, 2007 2:13 pm

Post by WANGL3 »

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
califrag
Posts: 30
Joined: Wed Apr 04, 2007 4:43 pm

Post by califrag »

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.
WANGL3
Posts: 4
Joined: Mon Sep 24, 2007 2:13 pm

Post by WANGL3 »

"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.
cloudhunter
Posts: 86
Joined: Thu Aug 17, 2006 3:27 am

Post by cloudhunter »

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
:)
califrag
Posts: 30
Joined: Wed Apr 04, 2007 4:43 pm

Post by califrag »

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.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

I think to make it work you just need to use the usbmic exports, instead of usbcam, but the API is the same.
Post Reply