whitespace edits, make formatting for functions consustent at least within the file.
This commit is contained in:
@@ -101,8 +101,8 @@ static int checkbmp(unsigned char *mem)
|
||||
return(ret_val);
|
||||
}
|
||||
|
||||
int imb_is_a_bmp(unsigned char *buf) {
|
||||
|
||||
int imb_is_a_bmp(unsigned char *buf)
|
||||
{
|
||||
return checkbmp(buf);
|
||||
}
|
||||
|
||||
@@ -200,8 +200,8 @@ static int putShortLSB(unsigned short us,FILE *ofile) {
|
||||
}
|
||||
|
||||
/* Found write info at http://users.ece.gatech.edu/~slabaugh/personal/c/bitmapUnix.c */
|
||||
int imb_savebmp(struct ImBuf *ibuf, const char *name, int flags) {
|
||||
|
||||
int imb_savebmp(struct ImBuf *ibuf, const char *name, int flags)
|
||||
{
|
||||
BMPINFOHEADER infoheader;
|
||||
int bytesize, extrabytes, x, y, t, ptr;
|
||||
uchar *data;
|
||||
|
@@ -111,7 +111,8 @@ static void pixel_from_buffer(struct ImBuf *ibuf, unsigned char **outI, float **
|
||||
*/
|
||||
/* function assumes out to be zero'ed, only does RGBA */
|
||||
|
||||
static float P(float k){
|
||||
static float P(float k)
|
||||
{
|
||||
float p1, p2, p3, p4;
|
||||
p1 = MAX2(k+2.0f,0);
|
||||
p2 = MAX2(k+1.0f,0);
|
||||
@@ -123,7 +124,8 @@ static float P(float k){
|
||||
|
||||
#if 0
|
||||
/* older, slower function, works the same as above */
|
||||
static float P(float k){
|
||||
static float P(float k)
|
||||
{
|
||||
return (float)(1.0f/6.0f)*( pow( MAX2(k+2.0f,0) , 3.0f ) - 4.0f * pow( MAX2(k+1.0f,0) , 3.0f ) + 6.0f * pow( MAX2(k,0) , 3.0f ) - 4.0f * pow( MAX2(k-1.0f,0) , 3.0f));
|
||||
}
|
||||
#endif
|
||||
|
@@ -56,7 +56,8 @@ static unsigned long bitstream_get_bits(indexer_dv_bitstream * This, int num)
|
||||
return rval;
|
||||
}
|
||||
|
||||
static int parse_num(indexer_dv_bitstream * b, int numbits) {
|
||||
static int parse_num(indexer_dv_bitstream * b, int numbits)
|
||||
{
|
||||
return bitstream_get_bits(b, numbits);
|
||||
}
|
||||
|
||||
|
@@ -84,8 +84,8 @@ type 3 is unsupported as of jul 05 2000 Frank.
|
||||
static int jpeg_default_quality;
|
||||
static int ibuf_ftype;
|
||||
|
||||
int imb_is_a_jpeg(unsigned char *mem) {
|
||||
|
||||
int imb_is_a_jpeg(unsigned char *mem)
|
||||
{
|
||||
if ((mem[0]== 0xFF) && (mem[1] == 0xD8))return 1;
|
||||
return 0;
|
||||
}
|
||||
|
@@ -338,7 +338,8 @@ static int checktarga(TARGA *tga, unsigned char *mem)
|
||||
return(1);
|
||||
}
|
||||
|
||||
int imb_is_a_targa(unsigned char *buf) {
|
||||
int imb_is_a_targa(unsigned char *buf)
|
||||
{
|
||||
TARGA tga;
|
||||
|
||||
return checktarga(&tga, buf);
|
||||
|
Reference in New Issue
Block a user