#ifndef INLINE_MPEGA_H
#define INLINE_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: Inline function for mpega
*/

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


static inline MPEGA_STREAM * __inline_mpega_MPEGA_open(char * __arg1, MPEGA_CTRL * __arg2, APTR __mpegaBase)
{
    return 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) \
    __inline_mpega_MPEGA_open((arg1), (arg2), (APTR)mpegaBase)

static inline void __inline_mpega_MPEGA_close(MPEGA_STREAM * __arg1, APTR __mpegaBase)
{
    AROS_LC1NR(void, MPEGA_close,
        AROS_LCA(MPEGA_STREAM *,(__arg1),A0),
        struct Library *, (__mpegaBase), 6, mpega    );
}

#define MPEGA_close(arg1) \
    __inline_mpega_MPEGA_close((arg1), (APTR)mpegaBase)

static inline LONG __inline_mpega_MPEGA_decode_frame(MPEGA_STREAM * __arg1, WORD ** __arg2, APTR __mpegaBase)
{
    return 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) \
    __inline_mpega_MPEGA_decode_frame((arg1), (arg2), (APTR)mpegaBase)

static inline LONG __inline_mpega_MPEGA_seek(MPEGA_STREAM * __arg1, ULONG __arg2, APTR __mpegaBase)
{
    return 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) \
    __inline_mpega_MPEGA_seek((arg1), (arg2), (APTR)mpegaBase)

static inline LONG __inline_mpega_MPEGA_time(MPEGA_STREAM * __arg1, ULONG * __arg2, APTR __mpegaBase)
{
    return 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) \
    __inline_mpega_MPEGA_time((arg1), (arg2), (APTR)mpegaBase)

static inline LONG __inline_mpega_MPEGA_find_sync(UBYTE * __arg1, LONG __arg2, APTR __mpegaBase)
{
    return 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) \
    __inline_mpega_MPEGA_find_sync((arg1), (arg2), (APTR)mpegaBase)

static inline LONG __inline_mpega_MPEGA_scale(MPEGA_STREAM * __arg1, LONG __arg2, APTR __mpegaBase)
{
    return 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) \
    __inline_mpega_MPEGA_scale((arg1), (arg2), (APTR)mpegaBase)

#endif /* INLINE_MPEGA_H*/
