#ifndef __BIFS_CODEC_H_
#define __BIFS_CODEC_H_

#include <gpac/m4_author.h>
#include <gpac/m4_bifs.h>
#include <gpac/m4_scenegraph.h>

#define	M4BIFSENCODERINTERFACE FOUR_CHAR_INT('B', 'E', 'N', 'C')

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
	LPSCENEGRAPH	sg;
	M4SceneManager	*ctx;
	M4ContextLoader load;
	u64	id;
	void *calling_object;
	
	/* TODO: maybe the currentAUCount should be a Chain of u32 
	to capture the number of AU per input BIFS stream */
	u32 currentAUCount;
} BifsEngine;

#ifdef __cplusplus
}
#endif

#endif 

