/*
    Open1560 - An Open Source Re-Implementation of Midtown Madness 1 Beta
    Copyright (C) 2020 Brick

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

struct backing_store_struct;
struct jpeg_common_struct;

// ?jpeg_free_large@@YAXPAUjpeg_common_struct@@PAXI@Z
ARTS_IMPORT void jpeg_free_large(jpeg_common_struct* arg1, void* arg2, u32 arg3);

// ?jpeg_free_small@@YAXPAUjpeg_common_struct@@PAXI@Z
ARTS_IMPORT void jpeg_free_small(jpeg_common_struct* arg1, void* arg2, u32 arg3);

// ?jpeg_get_large@@YAPAXPAUjpeg_common_struct@@I@Z
ARTS_IMPORT void* jpeg_get_large(jpeg_common_struct* arg1, u32 arg2);

// ?jpeg_get_small@@YAPAXPAUjpeg_common_struct@@I@Z
ARTS_IMPORT void* jpeg_get_small(jpeg_common_struct* arg1, u32 arg2);

// ?jpeg_mem_available@@YAJPAUjpeg_common_struct@@JJJ@Z
ARTS_IMPORT ilong jpeg_mem_available(jpeg_common_struct* arg1, ilong arg2, ilong arg3, ilong arg4);

// ?jpeg_mem_init@@YAJPAUjpeg_common_struct@@@Z
ARTS_EXPORT ilong jpeg_mem_init(jpeg_common_struct* arg1);

// ?jpeg_mem_term@@YAXPAUjpeg_common_struct@@@Z
ARTS_EXPORT void jpeg_mem_term(jpeg_common_struct* arg1);

// ?jpeg_open_backing_store@@YAXPAUjpeg_common_struct@@PAUbacking_store_struct@@J@Z
ARTS_IMPORT void jpeg_open_backing_store(jpeg_common_struct* arg1, backing_store_struct* arg2, i32 arg3);

// ?jpeg_allocated@@3HA
ARTS_IMPORT extern i32 jpeg_allocated;
