diff options
Diffstat (limited to 'ext/openjpeg/gstopenjpeg.h')
-rw-r--r-- | ext/openjpeg/gstopenjpeg.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/openjpeg/gstopenjpeg.h b/ext/openjpeg/gstopenjpeg.h index 4f0754289..275b8dcf6 100644 --- a/ext/openjpeg/gstopenjpeg.h +++ b/ext/openjpeg/gstopenjpeg.h @@ -23,4 +23,27 @@ #include <openjpeg.h> +typedef enum +{ + OPENJPEG_ERROR_NONE = 0, + OPENJPEG_ERROR_INIT, + OPENJPEG_ERROR_ENCODE, + OPENJPEG_ERROR_DECODE, + OPENJPEG_ERROR_OPEN, + OPENJPEG_ERROR_MAP_READ, + OPENJPEG_ERROR_MAP_WRITE, + OPENJPEG_ERROR_FILL_IMAGE, + OPENJPEG_ERROR_NEGOCIATE, + OPENJPEG_ERROR_ALLOCATE, +} OpenJPEGErrorCode; + +typedef struct +{ + GstVideoCodecFrame *frame; + GstBuffer *output_buffer; + gint stripe; + OpenJPEGErrorCode last_error; + gboolean direct; +} GstOpenJPEGCodecMessage; + #endif /* __GST_OPENJPEG_H__ */ |