diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-12-01 09:41:56 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-12-01 09:41:56 +0100 |
commit | 8ed172cab141f02390d7c77abec9eb18fe212182 (patch) | |
tree | 79e99568eb8cd1240374e31e648e6b2716cf0111 /src/libipe.h | |
parent | 7a847adfb41352466475428c61e85807ca4d25b8 (diff) | |
download | libufodecode-8ed172cab141f02390d7c77abec9eb18fe212182.tar.gz libufodecode-8ed172cab141f02390d7c77abec9eb18fe212182.tar.bz2 libufodecode-8ed172cab141f02390d7c77abec9eb18fe212182.tar.xz libufodecode-8ed172cab141f02390d7c77abec9eb18fe212182.zip |
Make ipedec a lib and executable
Diffstat (limited to 'src/libipe.h')
-rw-r--r-- | src/libipe.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libipe.h b/src/libipe.h new file mode 100644 index 0000000..5abc6e4 --- /dev/null +++ b/src/libipe.h @@ -0,0 +1,27 @@ +#ifndef LIB_IPE_H +#define LIB_IPE_H + +#include <inttypes.h> + +typedef struct ipe_decoder_t *ipe_decoder; + +#ifdef __cplusplus +extern "C" { +#endif + + +ipe_decoder ipe_decoder_new(uint32_t height, uint32_t *raw, size_t num_bytes); +void ipe_decoder_free(ipe_decoder decoder); +void ipe_decoder_set_raw_data(ipe_decoder decoder, uint32_t *raw, size_t num_bytes); +int ipe_decoder_get_next_frame(ipe_decoder decoder, uint16_t **pixels, uint32_t *frame_number, uint32_t *time_stamp); + +void ipe_deinterlace_interpolate(const uint16_t *frame_in, uint16_t *frame_out, int width, int height); +void ipe_deinterlace_weave(const uint16_t *in1, const uint16_t *in2, uint16_t *out, int width, int height); + + +#ifdef __cplusplus +} +#endif + +#endif + |