gst-plugin-linescan/ext/freeimage/gstfreeimageutils.h
Joshua M. Doe 992d159add freeimagedec: Move utility functions to gstfreeimageutils.c/.h and other minor cleanup
Also removed static pad templates, changed elements to have underscore rather than hyphen in their name, and fix caps handling (BGR/RGB)
2014-01-24 10:00:25 -05:00

16 lines
526 B
C

#ifndef __GST_FREEIMAGEUTILS_H__
#define __GST_FREEIMAGEUTILS_H__
#include <gst/gst.h>
#include <FreeImage.h>
GstCaps * gst_freeimageutils_caps_from_dib (FIBITMAP * dib,
gint fps_n, gint fps_d);
GstCaps * gst_freeimageutils_caps_from_freeimage_format (
FREE_IMAGE_FORMAT fif);
gboolean gst_freeimageutils_parse_caps (const GstCaps * caps,
FREE_IMAGE_TYPE * type, gint * width, gint * height, gint * bpp,
unsigned * red_mask, unsigned * green_mask, unsigned * blue_mask);
#endif // __GST_FREEIMAGEUTILS_H__