| 56 | } |
| 57 | |
| 58 | static Orientation get_exif_orientation(jpeg_decompress_struct* dinfo) { |
| 59 | Orientation orientation; |
| 60 | for (jpeg_marker_struct* marker = dinfo->marker_list; marker; marker = marker->next) { |
| 61 | if (is_orientation_marker(marker, &orientation)) { |
| 62 | return orientation; |
| 63 | } |
| 64 | } |
| 65 | return Orientation::TopLeft; |
| 66 | } |
| 67 | |
| 68 | struct my_error_mgr { |
| 69 | struct jpeg_error_mgr pub; |
no test coverage detected