Added Print_attr for jpeg

This commit is contained in:
Andrew Haynes
2026-07-14 23:53:43 -04:00
parent f76b034a5b
commit 1b7eb6f076
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -58,5 +58,6 @@ unsigned int
u64to_u32(const unsigned long clr, const unsigned long u64_div); 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 PPM *src);
void __attribute__((overloadable)) print_attr(const JPEG *src);
#endif #endif
+7
View File
@@ -31,3 +31,10 @@ 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",
src->name, src->fmt, src->width, src->height, src->len); 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);
}