Added Print_attr for jpeg
This commit is contained in:
@@ -58,5 +58,6 @@ unsigned int
|
||||
u64to_u32(const unsigned long clr, const unsigned long u64_div);
|
||||
|
||||
void __attribute__((overloadable)) print_attr(const PPM *src);
|
||||
void __attribute__((overloadable)) print_attr(const JPEG *src);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -31,3 +31,10 @@ print_attr(const PPM *src) {
|
||||
printf("Name: %s\nFMT: %c\nWidth: %i, Height: %i\nLength: %i",
|
||||
src->name, src->fmt, src->width, src->height, src->len);
|
||||
}
|
||||
|
||||
void
|
||||
__attribute__((overloadable))
|
||||
print_attr(const JPEG *src) {
|
||||
printf("Name: %s\nWidth: %i, Height: %i\nLength: %i",
|
||||
src->name, src->width, src->height, src->len);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user