#ifndef MERGESTREAM_H
#define MERGESTREAM_H

#include <dol.h>
#include "jpeg.h"

#define PORT_IN1   "in1"
#define PORT_IN2   "in2"

//local variables
typedef struct _local_states {
    unsigned int x_size;
    unsigned int y_size;
    int port_count;
    unsigned int ii;
    int num_iter; // nummber of fire
    unsigned char display_buffer[MAX_WIDTH * MAX_HEIGHT];
#ifdef VIEWER
    CImgDisplay *main_disp;
#endif
} Mergestream_State;

void mergestream_init(DOLProcess *);
int mergestream_fire(DOLProcess *);

#endif
