#include <stdint.h>

typedef uint8_t  word8;
typedef uint16_t word16;
typedef uint32_t word32;

//------------------------------------------------------------------------------

void c_memset(word8 *q, int count, word8 x);

// (from, to, count)
void c_memcpy(word8 *p, word8 *q, int count);

//------------------------------------------------------------------------------

void c_extract_channel
  ( int k_type
  , int width, int height 
  , void *p1, int nchn1, int pad1, int ofs1 
  , void *p2, int nchn2, int pad2, int ofs2 
  );