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

Method LoaderNative

src/preview.cpp:352–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352LoaderNative::LoaderNative(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
353 if (0 > parIdx || static_cast<size_t>(parIdx) >= image.nativePreviews().size())
354 return;
355 nativePreview_ = image.nativePreviews()[parIdx];
356 width_ = nativePreview_.width_;
357 height_ = nativePreview_.height_;
358 valid_ = true;
359 if (nativePreview_.filter_.empty()) {
360 size_ = nativePreview_.size_;
361 } else {
362 size_ = getData().size();
363 }
364}
365
366Loader::UniquePtr createLoaderNative(PreviewId id, const Image& image, int parIdx) {
367 return std::make_unique<LoaderNative>(id, image, parIdx);

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected