Page 121 of 448 FirstFirst ... 2171111120121122131171221 ... LastLast
Results 1,201 to 1,210 of 4473

Thread: AVCHD / GAME / FILE manager (mod of OBM by dean)

  1. #1201
    deank Guest
    It will much more beautiful when I'm done with the ugly font

    I'm glad you like it.

    Dean

  2. #1202
    xxniteeyexx Guest
    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
    deank Guest
    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);

  4. #1204
    ptrci Guest
    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
    johnny1233 Guest
    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
    deank Guest
    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
    ICEMAN1999 Guest
    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
    condorstrike Guest
    here you go guys, another theme... hope you like.

  9. #1209
    FMAranda Guest
    #condorstrike

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

  10. #1210
    condorstrike Guest
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •