コード例 #1
0
ALLEGRO_BITMAP *_al_load_jpg_f(ALLEGRO_FILE *fp, int flags)
{
   struct load_jpg_entry_helper_data data;

   memset(&data, 0, sizeof(data));
   load_jpg_entry_helper(fp, &data, flags);

   return data.bmp;
}
コード例 #2
0
ファイル: jpg.c プロジェクト: sesc4mt/mvcdecoder
/* Function: al_load_jpg_f
 */
ALLEGRO_BITMAP *al_load_jpg_f(ALLEGRO_FILE *fp)
{
    ALLEGRO_STATE state;
    struct load_jpg_entry_helper_data data;

    al_store_state(&state, ALLEGRO_STATE_TARGET_BITMAP);

    memset(&data, 0, sizeof(data));
    load_jpg_entry_helper(fp, &data);

    al_restore_state(&state);

    return data.bmp;
}