Home | History | Annotate | Download | only in codec

Lines Matching refs:piex

36 #include "src/piex.h"
391 class SkPiexStream : public ::piex::StreamInterface {
398 ::piex::Error GetData(const size_t offset, const size_t length,
401 ::piex::Error::kOk : ::piex::Error::kFail;
432 * Initializes the object with the information from Piex in a first attempt. This way it can
561 ::piex::PreviewImageData imageData;
562 if (::piex::IsRaw(&piexStream)
563 && ::piex::GetPreviewImageData(&piexStream, &imageData) == ::piex::Error::kOk)
624 * Tries to handle the image with PIEX. If PIEX returns kOk and finds the preview image, create a
625 * SkJpegCodec. If PIEX returns kFail, then the file is invalid, return nullptr. In other cases,
639 ::piex::PreviewImageData imageData;
640 if (::piex::IsRaw(&piexStream)) {
641 ::piex::Error error = ::piex::GetPreviewImageData(&piexStream, &imageData);
642 if (error == ::piex::Error::kFail) {
649 case ::piex::PreviewImageData::kSrgb:
652 case ::piex::PreviewImageData::kAdobeRgb:
658 // Theoretically PIEX can return JPEG compressed image or uncompressed RGB image. We only
660 if (error == ::piex::Error::kOk && imageData.preview.length > 0 &&
661 imageData.preview.format == ::piex::Image::kJpegCompressed)