Blender V2.61 - r43446
Defines | Typedefs | Enumerations | Functions

IMB_thumbs.h File Reference

Go to the source code of this file.

Defines

#define THUMB_SIZE_MAX   (100 * 1024*1024)

Typedefs

typedef enum ThumbSize ThumbSize
typedef enum ThumbSource ThumbSource

Enumerations

enum  ThumbSize { THB_NORMAL, THB_LARGE, THB_FAIL }
enum  ThumbSource { THB_SOURCE_IMAGE, THB_SOURCE_MOVIE, THB_SOURCE_BLEND }

Functions

ImBufIMB_thumb_create (const char *path, ThumbSize size, ThumbSource source, ImBuf *ibuf)
ImBufIMB_thumb_read (const char *path, ThumbSize size)
void IMB_thumb_delete (const char *path, ThumbSize size)
ImBufIMB_thumb_manage (const char *path, ThumbSize size, ThumbSource source)
void IMB_thumb_makedirs (void)
ImBufIMB_loadblend_thumb (const char *path)
void IMB_overlayblend_thumb (unsigned int *thumb, int width, int height, float aspect)

Detailed Description

Definition in file IMB_thumbs.h.


Define Documentation

#define THUMB_SIZE_MAX   (100 * 1024*1024)

Definition at line 61 of file IMB_thumbs.h.

Referenced by IMB_thumb_create().


Typedef Documentation

typedef enum ThumbSize ThumbSize

Thumbnail creation and retrieval according to the 'Thumbnail Management Standard' supported by Gimp, Gnome (Nautilus), KDE etc. Reference: http://jens.triq.net/thumbnail-spec/index.html

typedef enum ThumbSource ThumbSource

Enumeration Type Documentation

enum ThumbSize

Thumbnail creation and retrieval according to the 'Thumbnail Management Standard' supported by Gimp, Gnome (Nautilus), KDE etc. Reference: http://jens.triq.net/thumbnail-spec/index.html

Enumerator:
THB_NORMAL 
THB_LARGE 
THB_FAIL 

Definition at line 48 of file IMB_thumbs.h.

Enumerator:
THB_SOURCE_IMAGE 
THB_SOURCE_MOVIE 
THB_SOURCE_BLEND 

Definition at line 54 of file IMB_thumbs.h.


Function Documentation

ImBuf* IMB_loadblend_thumb ( const char *  path)

Definition at line 123 of file thumbs_blend.c.

References loadblend_thumb(), and NULL.

Referenced by IMB_thumb_create().

void IMB_overlayblend_thumb ( unsigned int *  thumb,
int  width,
int  height,
float  aspect 
)

Definition at line 146 of file thumbs_blend.c.

References CLAMP(), and MARGIN.

Referenced by blend_file_thumb().

ImBuf* IMB_thumb_create ( const char *  path,
ThumbSize  size,
ThumbSource  source,
ImBuf ibuf 
)
void IMB_thumb_delete ( const char *  path,
ThumbSize  size 
)
void IMB_thumb_makedirs ( void  )

Definition at line 235 of file thumbs.c.

References BLI_dir_create_recursive(), FILE_MAX, get_thumb_dir(), THB_FAIL, and THB_NORMAL.

Referenced by ED_file_init().

ImBuf* IMB_thumb_manage ( const char *  path,
ThumbSize  size,
ThumbSource  source 
)
ImBuf* IMB_thumb_read ( const char *  path,
ThumbSize  size 
)