/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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 General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#ifndef MLIB_IMAGE_TYPES_H
#define MLIB_IMAGE_TYPES_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
} mlib_type;
typedef enum {
} mlib_filter;
typedef enum {
for edge pixels */
edge pixels, i.e., bicubic ->
bilinear -> nearest neighbor */
} mlib_edge;
typedef enum {
MLIB_BLEND_ZERO = 0,
} mlib_blend;
typedef enum {
1/(M*N) */
1/sqrt(M*N) */
1/(M*N) */
1/sqrt(M*N) */
typedef enum {
typedef enum { /* constants used for pixel format */
MLIB_FORMAT_UNKNOWN = 0,
} mlib_format;
typedef struct {
/* of the data buffer to the first pixel */
/* Reserved for future use. Also makes */
/* size of this structure = 64 bytes, which */
/* is the size of the cache line. */
} mlib_image;
/*
* Flags or hints are contained in a 32-bit integer. The bit structure is
* shown below:
*
* 3 2 1
* 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* |S| |U|V| shint | hhint | whint | dhint |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*
* S = 0 - attributes have been set (attribute field >= 0)
* 1 - attributes have not been set (attribute field < 0)
*
* U = 0 - mediaLib allocated data space
* 1 - user allocated data space
*
* V = 0 - stride == width => 1-D vector
* 1 - stride != width
*
* shint - last 4 bits of stride
*
* hhint - last 4 bits of height
*
* whint - last 4 bits of width
*
* dhint - last 8 bits of data address
*/
enum {
};
#ifdef __cplusplus
}
#endif
#endif /* MLIB_IMAGE_TYPES_H */