MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / pixelWidth

Method pixelWidth

src/bmffimage.cpp:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150uint32_t BmffImage::pixelWidth() const {
151 auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelXDimension"));
152 if (imageWidth == exifData_.end() || imageWidth->count() == 0)
153 return pixelWidth_;
154 return imageWidth->toUint32();
155}
156
157uint32_t BmffImage::pixelHeight() const {
158 auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelYDimension"));

Callers

nothing calls this directly

Calls 5

ExifKeyClass · 0.85
findKeyMethod · 0.45
endMethod · 0.45
countMethod · 0.45
toUint32Method · 0.45

Tested by

no test coverage detected