1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
27 #if defined (UNX) || defined(__MINGW32__)
28 #include <sys/types.h>
31 struct JPEGCreateBitmapParam
34 unsigned long nHeight
;
35 unsigned long density_unit
;
36 unsigned long X_density
;
37 unsigned long Y_density
;
40 long nAlignedWidth
; // these members will be filled by the
41 long bTopDown
; // CreateBitmap method in svtools
44 typedef struct ErrorManagerStruct
* ErrorManagerPointer
;
45 typedef unsigned char* HPBYTE
;
47 void* JPEGMalloc( size_t size
);
48 void JPEGFree( void *ptr
);
49 long JPEGCallback( void* pCallbackData
, long nPercent
);
51 long WriteJPEG( void* pJPEGWriter
, void* pOutputStream
, long nWidth
, long nHeight
, long bGreyScale
,
52 long nQualityPercent
, long aChromaSubsampling
, void* pCallbackData
);
53 void* GetScanline( void* pJPEGWriter
, long nY
);
55 void ReadJPEG( void* pJPEGReader
, void* pInputStream
, long* pLines
);
56 void* CreateBitmapFromJPEGReader( void* pJPEGReader
, void* pJPEGCreateBitmapParam
);
58 /* TODO: when incompatible changes are possible again
59 the preview size hint should be redone */
60 void SetJpegPreviewSizeHint( int nWidth
, int nHeight
);
62 long Transform( void* pInputStream
, void* pOutputStream
, long nAngle
);
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */