JPEGコンポーネントはUIGランチャーで使用されない可能性が出てきたので

シャッター音コンポーネント分のリソースしか確保しないように変更。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1635 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
nakasima 2008-06-16 08:59:49 +00:00
parent 699759fdfc
commit dd7f3d28df

View File

@ -17,7 +17,7 @@
#include <twl.h>
#include <twl/dsp.h>
#include <twl/dsp/ARM9/dsp_jpeg_dec.h>
#include <twl/dsp/common/shutter.h>
#include <twl/camera.h>
#include "launcher.h"
#include "misc.h"
@ -219,23 +219,20 @@ void TwlMain( void )
// DSP<53>‰Šú‰»
{
FSFile file[1];
MIWramSize sizeB = MI_WRAM_SIZE_128KB;
MIWramSize sizeC = MI_WRAM_SIZE_128KB;
int slotB = CreateDspSlotBitmap( DSP_SLOT_B_COMPONENT_JPEGDECODER ); // QƒXƒ<58>ƒbƒg
int slotC = CreateDspSlotBitmap( DSP_SLOT_C_COMPONENT_JPEGDECODER ); // SƒXƒ<58>ƒbƒg
MIWramSize sizeB = MI_WRAM_SIZE_32KB;
MIWramSize sizeC = MI_WRAM_SIZE_64KB;
int slotB = CreateDspSlotBitmap( DSP_SLOT_B_COMPONENT_G711 ); // 1スロット
int slotC = CreateDspSlotBitmap( DSP_SLOT_C_COMPONENT_G711 ); // 2スロット
FS_InitFile( file );
DSP_OpenStaticComponentJpegDecoder( file );
MI_FreeWramSlot_B( 0, sizeB, MI_WRAM_ARM9 );
MI_FreeWramSlot_C( 0, sizeC, MI_WRAM_ARM9 );
MI_CancelWramSlot_B( 0, sizeB, MI_WRAM_ARM9 );
MI_CancelWramSlot_C( 0, sizeC, MI_WRAM_ARM9 );
if ( ! DSP_LoadJpegDecoder( file, slotB, slotC ) )
if ( ! DSP_LoadShutter() )
{
OS_TPanic("failed to load JpegDecoder DSP-component! (lack of WRAM-B/C)");
OS_TPanic("failed to load Shutter DSP-component! (lack of WRAM-B/C)");
}
DSP_UnloadJpegDecoder();
DSP_UnloadShutter();
}
#endif // INIT_DEVICES_LIKE_UIG_LAUNCHER