Sponsored Links

Sponsored Links

Page 121 of 447 FirstFirst ... 2171111119120121122123131171221 ... LastLast
Results 1,201 to 1,210 of 4463



  1. #1201
    Senior Member deank's Avatar
    Join Date
    Oct 2010
    Posts
    1,018
    Sponsored Links
    Sponsored Links
    It will much more beautiful when I'm done with the ugly font

    I'm glad you like it.

    Dean

  2. #1202
    Registered User xxniteeyexx's Avatar
    Join Date
    Sep 2010
    Posts
    35
    Sponsored Links
    Sponsored Links
    This is getting exciting lol, new additions every few hours, LOVE IT DEANRR, I love this manager with a passion, if there's ANYTHING i can do to further progress your work PLEASE let me know. Your work is deeply appreciated by us all...

    -Jared V

  3. #1203
    Senior Member deank's Avatar
    Join Date
    Oct 2010
    Posts
    1,018
    Sponsored Links
    Sponsored Links
    If other devs want to use the JPEG decoder, here is what I've done. They'll know how to use it:

    Code:
    Add the library in the Makefile (PPU_LDLIBS)
    
    -ljpgdec_stub
    
    ...
    // Load the JPEG decoder module first (somewhere in your app)
    cellSysmoduleLoadModule(CELL_SYSMODULE_JPGDEC);
    
    ...
    
    // data = memory buffer to store decoded data
    // name = JPEG full file path
    
    int load_jpg_texture(u8 *data, char *name)
    {
    	int ret, ok=-1;
    	png_w=0; png_h=0;
        CellJpgDecMainHandle     mHandle;
        CellJpgDecSubHandle      sHandle;
    
        CellJpgDecInParam        inParam;
        CellJpgDecOutParam       outParam;
    
        CellJpgDecSrc            src;
        CellJpgDecOpnInfo        opnInfo;
        CellJpgDecInfo           info;
    
        CellJpgDecDataOutInfo    dOutInfo;
        CellJpgDecDataCtrlParam  dCtrlParam;
    
        CellJpgDecThreadInParam  InParam;
        CellJpgDecThreadOutParam OutParam;
    
    	CtrlMallocArg               MallocArg;
    	CtrlFreeArg                 FreeArg;
    
        float                    downScale;
        bool                     unsupportFlag;
    
        MallocArg.mallocCallCounts  = 0;
        FreeArg.freeCallCounts      = 0;
    
    	InParam.spuThreadEnable   = CELL_JPGDEC_SPU_THREAD_DISABLE;
    	InParam.ppuThreadPriority = 512;
    	InParam.spuThreadPriority = 200;
    	InParam.cbCtrlMallocFunc  = png_malloc;
    	InParam.cbCtrlMallocArg   = &MallocArg;
    	InParam.cbCtrlFreeFunc    = png_free;
    	InParam.cbCtrlFreeArg     = &FreeArg;
    
        ret = cellJpgDecCreate(&mHandle, &InParam, &OutParam);
    
        if(ret == CELL_OK){
    
                src.srcSelect  = CELL_JPGDEC_FILE;
                src.fileName   = name;
                src.fileOffset = 0;
                src.fileSize   = 0;
                src.streamPtr  = NULL;
                src.streamSize = 0;
                src.spuThreadEnable = CELL_JPGDEC_SPU_THREAD_DISABLE;
    			unsupportFlag = false;
                ret = cellJpgDecOpen(mHandle, &sHandle, &src, &opnInfo);
    
                if(ret == CELL_OK){    
    
                    ret = cellJpgDecReadHeader(mHandle, sHandle, &info);
    				if(info.jpegColorSpace == CELL_JPG_UNKNOWN){
    					unsupportFlag = true;
    				}
    			} //decoder open
    
    			if(ret == CELL_OK){
    				if(info.imageWidth>1920 || info.imageHeight>1080){
    	                if( ((float)info.imageWidth / 1920) > ((float)info.imageHeight / 1080 ) ){
    	                    downScale = (float)info.imageWidth / 1920;
    	                }else{
    	                    downScale = (float)info.imageHeight / 1080; 
    	                }
    				}
    				else
    					downScale=1.f;
    
                  
                    if( downScale <= 1.f ){
                        inParam.downScale = 1;
                    }else if( downScale <= 2.f ){
                        inParam.downScale = 2;
                    }else if( downScale <= 4.f ){
                        inParam.downScale = 4;
                    }else{
                        inParam.downScale = 8;
                    }
    
                    inParam.commandPtr       = NULL;
                    inParam.method           = CELL_JPGDEC_FAST;
                    inParam.outputMode       = CELL_JPGDEC_TOP_TO_BOTTOM;
                    inParam.outputColorSpace = CELL_JPG_RGBA;
                    inParam.outputColorAlpha = 0xff;
                    ret = cellJpgDecSetParameter(mHandle, sHandle, &inParam, &outParam);
                }
    
                if(ret == CELL_OK){
                    dCtrlParam.outputBytesPerLine = 1920 * 4;
                    memset(data, 0, (1920 * 1080 * 4));
                    
                    ret = cellJpgDecDecodeData(mHandle, sHandle, data, &dCtrlParam, &dOutInfo);
                    
    				if((ret == CELL_OK) && (dOutInfo.status == CELL_JPGDEC_DEC_STATUS_FINISH))
    					{
    					png_w= outParam.outputWidth;
    					png_h= outParam.outputHeight;
    					ok=0;
    					}
                }
    
                ret = cellJpgDecClose(mHandle, sHandle);
    		    ret = cellJpgDecDestroy(mHandle);
    			} //decoder create
    
    	return ret;
    
    }
    
    ...
    
    // Unload the module when you're done (before your app exits to xmb)
    cellSysmoduleUnloadModule(CELL_SYSMODULE_JPGDEC);
    Last edited by deank; 11-29-2010 at 05:29 PM Reason: Automerged Doublepost

  4. #1204
    Registered User ptrci's Avatar
    Join Date
    Apr 2005
    Posts
    53
    The file manager has a bug when I return to a previous folder, instead of going to the previous folder, go to the root of the drive.

  5. #1205
    Registered User johnny1233's Avatar
    Join Date
    Sep 2010
    Posts
    45
    Dean, can you add an "marking system" ?

    So that i could move/delete/copy Multiple files at once ?

    ie. L1 + X = Mark selcted, L1 + R1 Mark all ?

  6. #1206
    Senior Member deank's Avatar
    Join Date
    Oct 2010
    Posts
    1,018
    Quote Originally Posted by ptrci View Post
    The file manager has a bug when I return to a previous folder, instead of going to the previous folder, go to the root of the drive.
    No, it doesn't have a BUG. You have sticky fingers. I'm browsing 8 levels deep folders all day to test it and it is okay.

    Quote Originally Posted by johnny1233 View Post
    Dean, can you add an "marking system" ?

    So that i could move/delete/copy Multiple files at once ?

    ie. L1 + X = Mark selcted, L1 + R1 Mark all ?
    Yes, it was discussed numerous times already. I will when I get to it.

  7. #1207
    Registered User ICEMAN1999's Avatar
    Join Date
    Jun 2010
    Posts
    15
    So will you get to it when you do to .mkv too?

    joking, truly grateful for what you have done with your manager.

  8. #1208
    Senior Member condorstrike's Avatar
    Join Date
    Sep 2010
    Posts
    584
    here you go guys, another theme... hope you like.
    Attached Images<br><br> Attached Images

    Attached Files Attached Files
    Last edited by condorstrike; 02-28-2011 at 04:56 AM Reason: re-upped theme.

  9. #1209
    Registered User FMAranda's Avatar
    Join Date
    Dec 2009
    Posts
    523
    #condorstrike

    Does it cut with overscan TVs? or does it has the overscan safe area? But, in any case, it looks beautiful.

  10. #1210
    Senior Member condorstrike's Avatar
    Join Date
    Sep 2010
    Posts
    584
    in my tv i use 2 overscan... and the bar gets blocked by a few pixels by the cover, but not enough to bother me... everything else is fine.

    in the file-manager blocks, i was gonna put ps3 games covers... and it looked nice, but maybe too much... any sugestions or fix and let me know, pls... thx.

 

Sponsored Links

Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News