fixed spacing and comments
This commit is contained in:
@@ -57,7 +57,13 @@ u32to_u64(const unsigned int clr);
|
|||||||
unsigned int
|
unsigned int
|
||||||
u64to_u32(const unsigned long clr, const unsigned long u64_div);
|
u64to_u32(const unsigned long clr, const unsigned long u64_div);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pretty Self Explanitory but prints the attributes of PPM images
|
||||||
|
* */
|
||||||
void __attribute__((overloadable)) print_attr(const PPM *src);
|
void __attribute__((overloadable)) print_attr(const PPM *src);
|
||||||
|
/**
|
||||||
|
* Pretty Self Explanitory but prints the attributes of JPEG images
|
||||||
|
* */
|
||||||
void __attribute__((overloadable)) print_attr(const JPEG *src);
|
void __attribute__((overloadable)) print_attr(const JPEG *src);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+2
-4
@@ -23,18 +23,16 @@ u64to_u32(const unsigned long clr, const unsigned long u64_div)
|
|||||||
(b / u64_div));
|
(b / u64_div));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Utilizing new knowledge below
|
|
||||||
|
|
||||||
void
|
void
|
||||||
__attribute__((overloadable))
|
__attribute__((overloadable))
|
||||||
print_attr(const PPM *src) {
|
print_attr(const PPM *src) {
|
||||||
printf("Name: %s\nFMT: %c\nWidth: %i, Height: %i\nLength: %i",
|
printf("Name: %s\nFMT: %c\nWidth: %i, Height: %i\nLength: %i\n",
|
||||||
src->name, src->fmt, src->width, src->height, src->len);
|
src->name, src->fmt, src->width, src->height, src->len);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
__attribute__((overloadable))
|
__attribute__((overloadable))
|
||||||
print_attr(const JPEG *src) {
|
print_attr(const JPEG *src) {
|
||||||
printf("Name: %s\nWidth: %i, Height: %i\nLength: %i",
|
printf("Name: %s\nWidth: %i, Height: %i\nLength: %i\n",
|
||||||
src->name, src->width, src->height, src->len);
|
src->name, src->width, src->height, src->len);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user