diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-10-02 10:55:30 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-10-02 20:07:16 +0200 |
commit | c57be26ed9644713da0ce18e0a78a9594a6d6a30 (patch) | |
tree | 89f4531ca913b011b5f1eba382b32d3305249048 /ext/openjpeg/gstopenjpeg.h | |
parent | b002490ab24ea6d28eab1d7c6f6af9ec42dece14 (diff) | |
download | gstreamer-plugins-bad-c57be26ed9644713da0ce18e0a78a9594a6d6a30.tar.gz |
openjpeg: Port OpenJPEG plugin to the 2.0 API
Diffstat (limited to 'ext/openjpeg/gstopenjpeg.h')
-rw-r--r-- | ext/openjpeg/gstopenjpeg.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ext/openjpeg/gstopenjpeg.h b/ext/openjpeg/gstopenjpeg.h new file mode 100644 index 000000000..ac28ccea9 --- /dev/null +++ b/ext/openjpeg/gstopenjpeg.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2013 Sebastian Dröge <slomo@circular-chaos.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. + * + */ + +#ifndef __GST_OPENJPEG_H__ +#define __GST_OPENJPEG_H__ + +#ifdef HAVE_OPENJPEG_1 +#include <openjpeg.h> +#define OPJ_CLRSPC_UNKNOWN CLRSPC_UNKNOWN +#define OPJ_CLRSPC_SRGB CLRSPC_SRGB +#define OPJ_CLRSPC_GRAY CLRSPC_GRAY +#define OPJ_CLRSPC_SYCC CLRSPC_SYCC + +#define OPJ_CODEC_J2K CODEC_J2K +#define OPJ_CODEC_JP2 CODEC_JP2 + +#define OPJ_LRCP LRCP +#define OPJ_RLCP RLCP +#define OPJ_RPCL RPCL +#define OPJ_PCRL PCRL +#define OPJ_CPRL CPRL +#else +#include <stdio.h> +#include <openjpeg-2.0/openjpeg.h> +#endif + +#endif /* __GST_OPENJPEG_H__ */ |