BRL-CAD
asize.c File Reference
#include "common.h"
#include <stdio.h>
#include <math.h>
#include <sys/stat.h>
#include <string.h>
#include "fb.h"
Include dependency graph for asize.c:

Go to the source code of this file.

Data Structures

struct  sizes
 

Functions

int fb_common_file_size (size_t *widthp, size_t *heightp, const char *filename, int pixel_size)
 
int fb_common_name_size (size_t *widthp, size_t *heightp, const char *name)
 
int fb_common_image_size (size_t *widthp, size_t *heightp, size_t npixels)
 

Variables

struct sizes fb_common_sizes []
 

Detailed Description

Image file AutoSizing code.

Definition in file asize.c.

Variable Documentation

struct sizes fb_common_sizes[]
Initial value:
= {
{ 160, 120 },
{ 192, 128 },
{ 320, 200 },
{ 320, 240 },
{ 384, 256 },
{ 640, 512 },
{ 640, 400 },
{ 640, 480 },
{ 640, 485 },
{ 640, 486 },
{ 720, 485 },
{ 720, 486 },
{ 768, 512 },
{ 1024, 768 },
{ 1152, 900 },
{ 1280, 960 },
{ 1280, 1024 },
{ 1440, 972 },
{ 1536, 1024 },
{ 1600, 1200 },
{ 1600, 1280 },
{ 3072, 2048 },
{ 3200, 4000 },
{ 3400, 4400 },
{ 4700, 3300 },
{ 0, 0 }
}

Definition at line 44 of file asize.c.

Referenced by fb_common_image_size().