Blender V2.27
Classes | Defines | Typedefs

IMB_imbuf_types.h File Reference

Contains defines and structs used throughout the imbuf module. More...

Go to the source code of this file.

Classes

struct  ImBuf
 The basic imbuf typeThis is the abstraction of an image. ImBuf is the basic type used for all imbuf operations. More...

Defines

#define IB_MIPMAP_LEVELS   20
#define IB_FILENAME_SIZE   1023
#define IB_BITMAPFONT   (1 << 0)
 userflags: Flags used internally by blender for imagebuffers
#define IB_BITMAPDIRTY   (1 << 1)
#define IB_MIPMAP_INVALID   (1 << 2)
#define IB_RECT_INVALID   (1 << 3)
Imbuf Component flags

These flags determine the components of an ImBuf struct.

#define IB_rect   (1 << 0)
 Flag defining the components of the ImBuf struct.
#define IB_test   (1 << 1)
 Flag defining the components of the ImBuf struct.
#define IB_fields   (1 << 2)
 Flag defining the components of the ImBuf struct.
#define IB_zbuf   (1 << 3)
 Flag defining the components of the ImBuf struct.
#define IB_mem   (1 << 4)
 Flag defining the components of the ImBuf struct.
#define IB_rectfloat   (1 << 5)
 Flag defining the components of the ImBuf struct.
#define IB_zbuffloat   (1 << 6)
 Flag defining the components of the ImBuf struct.
#define IB_multilayer   (1 << 7)
 Flag defining the components of the ImBuf struct.
#define IB_metadata   (1 << 8)
 Flag defining the components of the ImBuf struct.
#define IB_animdeinterlace   (1 << 9)
 Flag defining the components of the ImBuf struct.
#define IB_tiles   (1 << 10)
 Flag defining the components of the ImBuf struct.
#define IB_tilecache   (1 << 11)
 Flag defining the components of the ImBuf struct.
#define IB_premul   (1 << 12)
 Flag defining the components of the ImBuf struct.
#define PNG   (1 << 30)
 Flag defining the components of the ImBuf struct.
#define TGA   (1 << 28)
 Flag defining the components of the ImBuf struct.
#define JPG   (1 << 27)
 Flag defining the components of the ImBuf struct.
#define BMP   (1 << 26)
 Flag defining the components of the ImBuf struct.
#define OPENEXR   (1 << 22)
 Flag defining the components of the ImBuf struct.
#define OPENEXR_HALF   (1 << 8 )
 Flag defining the components of the ImBuf struct.
#define OPENEXR_COMPRESS   (7)
 Flag defining the components of the ImBuf struct.
#define RAWTGA   (TGA | 1)
 Flag defining the components of the ImBuf struct.
#define JPG_STD   (JPG | (0 << 8))
 Flag defining the components of the ImBuf struct.
#define JPG_VID   (JPG | (1 << 8))
 Flag defining the components of the ImBuf struct.
#define JPG_JST   (JPG | (2 << 8))
 Flag defining the components of the ImBuf struct.
#define JPG_MAX   (JPG | (3 << 8))
 Flag defining the components of the ImBuf struct.
#define JPG_MSK   (0xffffff00)
 Flag defining the components of the ImBuf struct.
#define IMAGIC   0732
 Flag defining the components of the ImBuf struct.

Typedefs

typedef struct ImBuf ImBuf
 The basic imbuf typeThis is the abstraction of an image. ImBuf is the basic type used for all imbuf operations.

Imbuf preset profile tags

Some predefined color space profiles that 8 bit imbufs can represent
#define IB_PROFILE_NONE   0
#define IB_PROFILE_LINEAR_RGB   1
#define IB_PROFILE_SRGB   2
#define IB_PROFILE_CUSTOM   3
const char * imb_ext_image []
const char * imb_ext_image_qt []
const char * imb_ext_movie []
const char * imb_ext_audio []

Detailed Description

Contains defines and structs used throughout the imbuf module.

IMB_imbuf_types.h (mar-2001 nzc)

Types needed for using the image buffer.

Imbuf is external code, slightly adapted to live in the Blender context. It requires an external jpeg module, and the avi-module (also external code) in order to function correctly.

This file contains types and some constants that go with them. Most are self-explanatory (e.g. IS_amiga tests whether the buffer contains an Amiga-format file).

Id:
IMB_imbuf_types.h 34370 2011-01-17 18:16:10Z ton

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program 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 for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL LICENSE BLOCK *****

Todo:
Clean up includes.

Definition in file IMB_imbuf_types.h.