20 lines
385 B
C
20 lines
385 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include "./base.hpp"
|
|
|
|
typedef struct _Frame
|
|
{
|
|
FILE *stream;
|
|
int w;
|
|
int h;
|
|
int depth;
|
|
} Frame;
|
|
|
|
FILE *make_buffer(const uint8_t *, const size_t);
|
|
|
|
_FFI_PLUGIN
|
|
const Frame *new_frame_from_handle(FILE *, int, int, int);
|
|
|
|
_FFI_PLUGIN
|
|
const Frame *new_frame_from_data(const uint8_t *, const size_t, int, int, int); |