libipe.h 723 B

123456789101112131415161718192021222324252627
  1. #ifndef LIB_IPE_H
  2. #define LIB_IPE_H
  3. #include <inttypes.h>
  4. typedef struct ipe_decoder_t *ipe_decoder;
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. ipe_decoder ipe_decoder_new(uint32_t height, uint32_t *raw, size_t num_bytes);
  9. void ipe_decoder_free(ipe_decoder decoder);
  10. void ipe_decoder_set_raw_data(ipe_decoder decoder, uint32_t *raw, size_t num_bytes);
  11. int ipe_decoder_get_next_frame(ipe_decoder decoder, uint16_t **pixels, uint32_t *frame_number, uint32_t *time_stamp);
  12. void ipe_deinterlace_interpolate(const uint16_t *frame_in, uint16_t *frame_out, int width, int height);
  13. void ipe_deinterlace_weave(const uint16_t *in1, const uint16_t *in2, uint16_t *out, int width, int height);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif