blob: 1efb5deb172aaa2e76db401e3b532cf25aed0027 [file] [log] [blame]
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/codec/SkParseEncodedOrigin.h"
#include "include/core/SkData.h"
#include "include/private/SkExif.h"
#include "include/private/base/SkAssert.h"
bool SkParseEncodedOrigin(const void* data, size_t data_length, SkEncodedOrigin* orientation) {
SkASSERT(orientation);
SkExifMetadata exif(SkData::MakeWithoutCopy(data, data_length));
return exif.getOrigin(orientation);
}