Bug 1680387 - Read and expose EXIF image resolution data. r=tnikkel,aosmond

Differential Revision: https://phabricator.services.mozilla.com/D113264
This commit is contained in:
Emilio Cobos Álvarez
2021-05-04 10:24:06 +00:00
parent 185f07cb08
commit 41abe499b8
21 changed files with 366 additions and 104 deletions

View File

@@ -13,6 +13,7 @@
#include "mozilla/SVGImageContext.h"
#include "ImageRegion.h"
#include "Orientation.h"
#include "mozilla/image/Resolution.h"
#include "mozilla/MemoryReporting.h"
@@ -113,6 +114,9 @@ Maybe<AspectRatio> DynamicImage::GetIntrinsicRatio() {
NS_IMETHODIMP_(Orientation)
DynamicImage::GetOrientation() { return Orientation(); }
NS_IMETHODIMP_(Resolution)
DynamicImage::GetResolution() { return {}; }
NS_IMETHODIMP
DynamicImage::GetType(uint16_t* aType) {
*aType = imgIContainer::TYPE_RASTER;