1
#ifndef LIB_UFODECODE_H
2
#define LIB_UFODECODE_H
4
4
#include <inttypes.h>
6
typedef struct ipe_decoder_t *ipe_decoder;
6
typedef struct ufo_decoder_t *ufo_decoder;
13
ipe_decoder ipe_decoder_new(uint32_t height, uint32_t *raw, size_t num_bytes);
14
void ipe_decoder_free(ipe_decoder decoder);
15
void ipe_decoder_set_raw_data(ipe_decoder decoder, uint32_t *raw, size_t num_bytes);
16
int ipe_decoder_get_next_frame(ipe_decoder decoder, uint16_t **pixels, uint32_t *frame_number, uint32_t *time_stamp);
13
ufo_decoder ufo_decoder_new(uint32_t height, uint32_t *raw, size_t num_bytes);
14
void ufo_decoder_free(ufo_decoder decoder);
15
void ufo_decoder_set_raw_data(ufo_decoder decoder, uint32_t *raw, size_t num_bytes);
16
int ufo_decoder_get_next_frame(ufo_decoder decoder, uint16_t **pixels, uint32_t *frame_number, uint32_t *time_stamp);
18
void ipe_deinterlace_interpolate(const uint16_t *frame_in, uint16_t *frame_out, int width, int height);
19
void ipe_deinterlace_weave(const uint16_t *in1, const uint16_t *in2, uint16_t *out, int width, int height);
18
void ufo_deinterlace_interpolate(const uint16_t *frame_in, uint16_t *frame_out, int width, int height);
19
void ufo_deinterlace_weave(const uint16_t *in1, const uint16_t *in2, uint16_t *out, int width, int height);