bump product version to 4.1.6.2
[LibreOffice.git] / include / basebmp / scanlineformats.hxx
bloba1708980b5aca2354dab809d56e935ecc8b977e2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_BASEBMP_SCANLINEFORMATS_HXX
21 #define INCLUDED_BASEBMP_SCANLINEFORMATS_HXX
23 #include <sal/types.h>
25 /* Definition of Scanline formats */
27 namespace basebmp { namespace Format
29 static const sal_Int32 NONE = 0;
30 static const sal_Int32 ONE_BIT_MSB_GREY = (sal_Int32)0x01;
31 static const sal_Int32 ONE_BIT_LSB_GREY = (sal_Int32)0x02;
32 static const sal_Int32 ONE_BIT_MSB_PAL = (sal_Int32)0x03;
33 static const sal_Int32 ONE_BIT_LSB_PAL = (sal_Int32)0x04;
34 static const sal_Int32 FOUR_BIT_MSB_GREY = (sal_Int32)0x05;
35 static const sal_Int32 FOUR_BIT_LSB_GREY = (sal_Int32)0x06;
36 static const sal_Int32 FOUR_BIT_MSB_PAL = (sal_Int32)0x07;
37 static const sal_Int32 FOUR_BIT_LSB_PAL = (sal_Int32)0x08;
38 static const sal_Int32 EIGHT_BIT_PAL = (sal_Int32)0x09;
39 static const sal_Int32 EIGHT_BIT_GREY = (sal_Int32)0x0A;
40 static const sal_Int32 SIXTEEN_BIT_LSB_TC_MASK = (sal_Int32)0x0B;
41 static const sal_Int32 SIXTEEN_BIT_MSB_TC_MASK = (sal_Int32)0x0C;
42 static const sal_Int32 TWENTYFOUR_BIT_TC_MASK = (sal_Int32)0x0D;
43 static const sal_Int32 THIRTYTWO_BIT_TC_MASK = (sal_Int32)0x0E;
44 // The order of the channels code letters indicates the order of the
45 // channel bytes in memory, I think
46 static const sal_Int32 THIRTYTWO_BIT_TC_MASK_BGRA = THIRTYTWO_BIT_TC_MASK;
47 static const sal_Int32 THIRTYTWO_BIT_TC_MASK_ARGB = (sal_Int32)0x0F;
48 static const sal_Int32 THIRTYTWO_BIT_TC_MASK_ABGR = (sal_Int32)0x10;
49 static const sal_Int32 THIRTYTWO_BIT_TC_MASK_RGBA = (sal_Int32)0x11;
50 static const sal_Int32 MAX = (sal_Int32)0x11;
52 const char *formatName(sal_Int32 nScanlineFormat);
53 } }
55 #endif /* INCLUDED_BASEBMP_SCANLINEFORMATS_HXX */
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */