#ifndef DEFINES_MPEGA_H
#define DEFINES_MPEGA_H

/*
    *** Automatically generated from '/home/aros/ABIv0/Build/20120820/AROS/contrib/libs/mpega/mpega.conf'. Edits will be lost. ***
    Copyright © 1995-2012, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Defines for mpega
*/

#include <aros/libcall.h>
#include <exec/types.h>
#include <aros/preprocessor/variadic/cast2iptr.hpp>

__BEGIN_DECLS


#define __MPEGA_open_WB(__mpegaBase, __arg1, __arg2) \
        AROS_LC2(MPEGA_STREAM *, MPEGA_open, \
                  AROS_LCA(char *,(__arg1),A0), \
                  AROS_LCA(MPEGA_CTRL *,(__arg2),A1), \
        struct Library *, (__mpegaBase), 5, mpega)

#define MPEGA_open(arg1, arg2) \
    __MPEGA_open_WB(mpegaBase, (arg1), (arg2))

#define __MPEGA_close_WB(__mpegaBase, __arg1) \
        AROS_LC1NR(void, MPEGA_close, \
                  AROS_LCA(MPEGA_STREAM *,(__arg1),A0), \
        struct Library *, (__mpegaBase), 6, mpega)

#define MPEGA_close(arg1) \
    __MPEGA_close_WB(mpegaBase, (arg1))

#define __MPEGA_decode_frame_WB(__mpegaBase, __arg1, __arg2) \
        AROS_LC2(LONG, MPEGA_decode_frame, \
                  AROS_LCA(MPEGA_STREAM *,(__arg1),A0), \
                  AROS_LCA(WORD **,(__arg2),A1), \
        struct Library *, (__mpegaBase), 7, mpega)

#define MPEGA_decode_frame(arg1, arg2) \
    __MPEGA_decode_frame_WB(mpegaBase, (arg1), (arg2))

#define __MPEGA_seek_WB(__mpegaBase, __arg1, __arg2) \
        AROS_LC2(LONG, MPEGA_seek, \
                  AROS_LCA(MPEGA_STREAM *,(__arg1),A0), \
                  AROS_LCA(ULONG,(__arg2),D0), \
        struct Library *, (__mpegaBase), 8, mpega)

#define MPEGA_seek(arg1, arg2) \
    __MPEGA_seek_WB(mpegaBase, (arg1), (arg2))

#define __MPEGA_time_WB(__mpegaBase, __arg1, __arg2) \
        AROS_LC2(LONG, MPEGA_time, \
                  AROS_LCA(MPEGA_STREAM *,(__arg1),A0), \
                  AROS_LCA(ULONG *,(__arg2),A1), \
        struct Library *, (__mpegaBase), 9, mpega)

#define MPEGA_time(arg1, arg2) \
    __MPEGA_time_WB(mpegaBase, (arg1), (arg2))

#define __MPEGA_find_sync_WB(__mpegaBase, __arg1, __arg2) \
        AROS_LC2(LONG, MPEGA_find_sync, \
                  AROS_LCA(UBYTE *,(__arg1),A0), \
                  AROS_LCA(LONG,(__arg2),D0), \
        struct Library *, (__mpegaBase), 10, mpega)

#define MPEGA_find_sync(arg1, arg2) \
    __MPEGA_find_sync_WB(mpegaBase, (arg1), (arg2))

#define __MPEGA_scale_WB(__mpegaBase, __arg1, __arg2) \
        AROS_LC2(LONG, MPEGA_scale, \
                  AROS_LCA(MPEGA_STREAM *,(__arg1),A0), \
                  AROS_LCA(LONG,(__arg2),D0), \
        struct Library *, (__mpegaBase), 11, mpega)

#define MPEGA_scale(arg1, arg2) \
    __MPEGA_scale_WB(mpegaBase, (arg1), (arg2))

__END_DECLS

#endif /* DEFINES_MPEGA_H*/
