36 origin = codec->getOrigin();
51 "Actual origin %d", origin);
53 auto result = codec->getImage();
171 memset(
static_cast<uint8_t*
>(
data->writable_data()) + 186, 0, 4);
172 memset(
static_cast<uint8_t*
>(
data->writable_data()) + 2171, 0, 4);
173 memset(
static_cast<uint8_t*
>(
data->writable_data()) + 2240, 0, 4);
DEF_TEST(ExifOrientation, r)
static bool approx_eq(float x, float y, float epsilon)
std::unique_ptr< SkStreamAsset > GetResourceAsStream(const char *resource, bool useFileStream)
sk_sp< SkData > GetResourceAsData(const char *resource)
@ kTopRight_SkEncodedOrigin
@ kTopLeft_SkEncodedOrigin
@ kLeftBottom_SkEncodedOrigin
@ kRightTop_SkEncodedOrigin
static constexpr double kEpsilon
#define REPORTER_ASSERT(r, cond,...)
static std::unique_ptr< SkCodec > MakeFromStream(std::unique_ptr< SkStream >, SkSpan< const SkCodecs::Decoder > decoders, Result *=nullptr, SkPngChunkReader *=nullptr, SelectionPolicy selectionPolicy=SelectionPolicy::kPreferStillImage)
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
void SK_API Parse(Metadata &metadata, const SkData *data)
SK_API std::unique_ptr< SkCodec > Decode(std::unique_ptr< SkStream >, SkCodec::Result *, SkCodecs::DecodeContext=nullptr)
const myers::Point & get< 1 >(const myers::Segment &s)
const myers::Point & get< 0 >(const myers::Segment &s)
SIN Vec< N, float > abs(const Vec< N, float > &x)
std::shared_ptr< const fml::Mapping > data