#include <stddef.h>
#include <stdint.h>
#define AV_NUM_DATA_POINTERS 8
typedef struct CH264Decoder CH264Decoder;
CH264Decoder *c_decoder_allocate(void);
int c_decoder_open(CH264Decoder *d, uint8_t *extradata, size_t extradata_size);
int c_decoder_send_packet(CH264Decoder *d, uint8_t const *data,
size_t data_size, int64_t pts);
int c_decoder_recieve_frame(CH264Decoder *d,
uint8_t *data[AV_NUM_DATA_POINTERS],
int *linesize[AV_NUM_DATA_POINTERS], int *width,
int *height, int64_t *pts, int *pix_fmt,
unsigned int *color_range);
void c_decoder_free(CH264Decoder *pd);