MCPcopy Create free account
hub / github.com/Tencent/tgfx / get_exif_orientation

Function get_exif_orientation

src/core/codecs/jpeg/JpegCodec.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static 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
68struct my_error_mgr {
69 struct jpeg_error_mgr pub;

Callers 1

MakeFromDataMethod · 0.85

Calls 1

is_orientation_markerFunction · 0.70

Tested by

no test coverage detected