OpenJPEG 2.3 installs its headers to /usr/include/openjpeg-2.3. However, since libopenjp2.pc seems to provide the right includedir CFLAGS at least since version 2.1, instead of adding yet another version check, just remove the subdir and the check for 2.2. https://bugzilla.gnome.org/show_bug.cgi?id=788703
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
* 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>
|
|
# if defined(HAVE_OPENJPEG_2_1)
|
|
# include <openjpeg.h>
|
|
# else
|
|
# include <openjpeg-2.0/openjpeg.h>
|
|
# endif
|
|
#endif
|
|
|
|
#endif /* __GST_OPENJPEG_H__ */
|