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 

Using the IPU...

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



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Wed Sep 15, 2004 11:10 pm    Post subject: Using the IPU... Reply with quote

Just a question, is there somebody here who has tried to use the IPU (Image Processing Unit) to replay a Mpeg2 movie ????

Should we use the IOP to access the IPU ? I really have a lack of knowledge concerning this IPU... If someone can fill (a little) the gap...

Thx
_________________
- TiTAN Art Division -
http://www.titandemo.org
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Thu Sep 16, 2004 4:26 am    Post subject: Reply with quote

Well, the IPU is probably one of the rarest things for someone to touch.

The thing is, the IPU does not magically play back movies. To playback
a normal DVD type movie, requires several streams in and out of the IPU.
The sequence is something like this*

1. Stream in data via IOP to EE memory buffer
2. Stream out from EE memory buffer to IPU for IDCT
3. Stream output from IPU back to a second memory buffer
4. Use EE CORE MMI instructions to perform Motion Compensation
(this part of mpeg decoding is NOT done in hardware on the IPU)
5. Stream results of motion compensation back to IPU for Color Space Conversion
6. Stream CSC output from IPU back to memory, this is the final RGB image
7. Feed to the GS via GIF

There are variations on this. It might be possible to do SOME conversations via the MDEC on the IOP when reading from media, though the iop is resource limited. I don:t know if there is any use to using some of the preprocessing capabilities of VIF1 enroute to PATH2, and certainly if one wants to do anything extra they could send it into VU1 for additional post-processing then being kicked to the GIF.

But has anyone done this, homebrew ? I don:t think so...

Gorim
Back to top
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Fri Sep 17, 2004 8:51 pm    Post subject: Reply with quote

Thanks Gorim !

Yep I really thought it was more 'magic' than that ! Maybe porting a simple MpegI decoder could be easier for the moment... and just to have a kind of "splash" movie screen :D..

But thanks again, that's very interesting and for sure a day a way to look at...
_________________
- TiTAN Art Division -
http://www.titandemo.org
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Mon Sep 20, 2004 12:26 am    Post subject: Reply with quote

FYI, I should cite that my flow summary comes from one of many such flow diagrams for the IPU, shown on the final page of the EE User's Manual. However, this manual can only be obtained from the Linux kit or from official PS2 developer kits, so if you have neither you are SOL with respective to seeing these.

The IPU isn't just used for MPEG2 video playback. (Can the IPU do audio also anyone ?). Another common use is simply decompressing jpegs of textures that often can even get further decompression post-processing at VIF1 enroute path2 to the GIF/GS for texture uploads. The idea is naturally to save memory space by decompressing textures before giving them to the GS.

Gorim
Back to top
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Mon Sep 20, 2004 12:30 am    Post subject: Reply with quote

gorim wrote:
Can the IPU do audio also anyone ?
AFAIK, no.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Mon Sep 20, 2004 2:35 am    Post subject: Reply with quote

Thanks for the information Gorim... good to know !

I'm sure there is plenty of applications for the IPU :D

And obviously decompressing jpeg on the fly can be great... I wonder if libjpg uses it of is just a conversion of the JPG lib for the EE....

Have to look....

Pixel, is the IPU does not provide audio capaibilities, how the IPU decoder and the SPU are synchronized for video replay ? by hand ?

just curious....
_________________
- TiTAN Art Division -
http://www.titandemo.org
Back to top
View user's profile Send private message Visit poster's website
zerocom



Joined: 08 Jun 2004
Posts: 12

PostPosted: Sun Oct 03, 2004 7:00 pm    Post subject: Reply with quote

The IPU can do the following things:

- IDCT (for MPEG1/2 or JPEG)
- VLC decode
- FLC decode
- color conversion (YUV->RGB, RGB32->INDEX8)

The IPU can also do MPEG I-Frame decoding and converting to RGB in one step (for texture decompression)

To decode a full MPEG2 movie many things have to be done besides using the IPU, like parsing and motion compensation.

I made a mpeg1/2 decoding lib which fully uses the ipu some time ago....

Bye...
Back to top
View user's profile Send private message MSN Messenger
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Tue Oct 05, 2004 1:55 am    Post subject: Reply with quote

Erm, the IPU's IDCT doesn't support JPEG decompression.
_________________
"He was warned..."
Back to top
View user's profile Send private message
zerocom



Joined: 08 Jun 2004
Posts: 12

PostPosted: Tue Oct 05, 2004 3:35 am    Post subject: Reply with quote

... you may right, but the idct itself should be the same as mpeg1/2, but you cannot use it as stand-alone. The IPU does always VLC-decode->IQ->IDCT....
Back to top
View user's profile Send private message MSN Messenger
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Tue Oct 05, 2004 5:14 am    Post subject: Reply with quote

I'm just trying to make it clear that there is no hardware JPEG decompression in the PS2, that's all.
_________________
"He was warned..."
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 -> PS2 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