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 

Ideas Wall

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> spu-medialib
View previous topic :: View next topic  
Author Message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Fri Sep 07, 2007 8:01 am    Post subject: Ideas Wall Reply with quote

Idea for mpeg2 decoding with regards to motion

store all I and P frames temporary in RAM so that

384Bytes 16x16 Y 8x8 U and 8x8 V for yuv420
512Bytes 16x16Y 8x16U and 8x16 V for yuv 422
and
762 Bytes for 16x16Y 16x16U and 16x16V yuv 444

can be retrived into the spu for forward and backward motion.

Hence when making the I frame you have to store it as a vector and at the same time generate the Image.


Simple loop
I frame is recreated and stored as a vector and sendt to display as Image at the same time

The P frame is then generated into ram as a vector.

B frames are created and rendered into image

P frame is rendered to display as an image

etc etc
_________________
Don't do it alone.
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 489
Location: Sydney

PostPosted: Fri Sep 07, 2007 9:10 am    Post subject: Reply with quote

Might be worth keeping a cache of these decoded macroblocks to avoid too much reloading, and also might be worth pre-caching strips of decoded macroblocks - 3 (or is it 5?) screen-sized horizontal lines of decoded macroblocks would cover most (all?) cases.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> spu-medialib 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