Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi All,

I have to load JPEG image(from shared directory on device) in my application. I am using IMEMASTREAM interface to load image and registering a callback function for notification once IIMAGE_SetStream( )completes retrieving the image data. I have to handle the key events received during loading of image. But I am not getting any key event while loading of image is in progress. I observed that keys pressed during loading are queued and received by application after loading is completed(i.e. key events are received after getting notification in callback function registed in IIMAGE_Notify( ) API. Following are the steps:

1. Read the JPEG image using IFILE_Read( ) and pass this image data to
IMEMASTREAM_SetEx( ).
2. IMEMASTREAM_SetEx( ) with with image buffer read from file.
3. IIMAGE_SetStream( ).
4. IIMAGE_Notify( ) to get notification after IIMAGE_SetStream( )completes retrieving the image data.

When key is pressed before getting notification in callback, key event is not received by the application. Pressed key is queued and received after loading is complete.

Have anyone faced such problem before? I need argent solution over this. If anyone have idea about it, please send me quick reply. It will be a great help.

Thanks in advance.

BREW runs on a single task. If BREW is busy processing, then all key events will be queued until the process yields the processor.

BREW runs on a single task. If BREW is busy processing, then all key events will be queued until the process yields the processor.

Hi Jonathan,
Thanks for your quick reply.

Hi Jonathan,
Thanks for your quick reply.