*-------------------------------------------------------------------
*/
-typedef struct _PaneGPSData PaneGPSData;
-struct _PaneGPSData
+struct PaneGPSData
{
PaneData pane;
GtkWidget *widget;
#endif
-typedef struct _ColorManCache ColorManCache;
-struct _ColorManCache {
+struct ColorManCache {
cmsHPROFILE profile_in;
cmsHPROFILE profile_out;
cmsHTRANSFORM transform;
#include "format-olympus.h"
-typedef struct _FormatRawEntry FormatRawEntry;
-struct _FormatRawEntry {
+struct FormatRawEntry {
const gchar *extension;
FormatRawMatchType magic_type;
const guint magic_offset;
};
-typedef struct _FormatExifEntry FormatExifEntry;
-struct _FormatExifEntry {
+struct FormatExifEntry {
FormatExifMatchType header_type;
gconstpointer header_pattern;
const guint header_length;
#include <libdjvu/ddjvuapi.h>
#include <libdjvu/miniexp.h>
-typedef struct _ImageLoaderDJVU ImageLoaderDJVU;
-struct _ImageLoaderDJVU {
+struct ImageLoaderDJVU {
ImageLoaderBackendCbAreaUpdated area_updated_cb;
ImageLoaderBackendCbSize size_cb;
ImageLoaderBackendCbAreaPrepared area_prepared_cb;
#ifdef HAVE_HEIF
#include <libheif/heif.h>
-typedef struct _ImageLoaderHEIF ImageLoaderHEIF;
-struct _ImageLoaderHEIF {
+struct ImageLoaderHEIF {
ImageLoaderBackendCbAreaUpdated area_updated_cb;
ImageLoaderBackendCbSize size_cb;
ImageLoaderBackendCbAreaPrepared area_prepared_cb;
#include "openjpeg.h"
-typedef struct _ImageLoaderJ2K ImageLoaderJ2K;
-struct _ImageLoaderJ2K {
+struct ImageLoaderJ2K {
ImageLoaderBackendCbAreaUpdated area_updated_cb;
ImageLoaderBackendCbSize size_cb;
ImageLoaderBackendCbAreaPrepared area_prepared_cb;
g_free (pixels);
}
-typedef struct opj_buffer_info {
+struct opj_buffer_info {
OPJ_BYTE* buf;
OPJ_BYTE* cur;
OPJ_SIZE_T len;
-} opj_buffer_info_t;
+};
static OPJ_SIZE_T opj_read_from_buffer (void* pdst, OPJ_SIZE_T len, opj_buffer_info_t* psrc)
{
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
- *
+ *
* Including parts:
- *
+ *
* Copyright (c) the JPEG XL Project Authors.
* All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
- *
+ *
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
- *
+ *
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
- *
+ *
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*/
#include "main.h"
#include "jxl/decode.h"
-typedef struct _ImageLoaderJPEGXL ImageLoaderJPEGXL;
-struct _ImageLoaderJPEGXL {
+struct ImageLoaderJPEGXL {
ImageLoaderBackendCbAreaUpdated area_updated_cb;
ImageLoaderBackendCbSize size_cb;
ImageLoaderBackendCbAreaPrepared area_prepared_cb;
#include <libraw/libraw.h>
#include <sys/mman.h>
-typedef struct _UnmapData UnmapData;
-struct _UnmapData
+struct UnmapData
{
guchar *ptr;
guchar *map_data;
#ifdef HAVE_PDF
#include <poppler/glib/poppler.h>
-typedef struct _ImageLoaderPDF ImageLoaderPDF;
-struct _ImageLoaderPDF {
+struct ImageLoaderPDF {
ImageLoaderBackendCbAreaUpdated area_updated_cb;
ImageLoaderBackendCbSize size_cb;
ImageLoaderBackendCbAreaPrepared area_prepared_cb;
#include <tiffio.h>
-typedef struct _ImageLoaderTiff ImageLoaderTiff;
-struct _ImageLoaderTiff {
+struct ImageLoaderTiff {
ImageLoaderBackendCbAreaUpdated area_updated_cb;
ImageLoaderBackendCbSize size_cb;
ImageLoaderBackendCbAreaPrepared area_prepared_cb;