Lines Matching refs:outDecoder
105 static int createFromStream(std::unique_ptr<SkStreamRewindable> stream, AImageDecoder** outDecoder)… in createFromStream() argument
124 *outDecoder = reinterpret_cast<AImageDecoder*>(new ImageDecoder(std::move(androidCodec))); in createFromStream()
128 int AImageDecoder_createFromAAsset(AAsset* asset, AImageDecoder** outDecoder) { in AImageDecoder_createFromAAsset() argument
129 if (!asset || !outDecoder) { in AImageDecoder_createFromAAsset()
132 *outDecoder = nullptr; in AImageDecoder_createFromAAsset()
136 return createFromStream(std::move(stream), outDecoder); in AImageDecoder_createFromAAsset()
146 int AImageDecoder_createFromFd(int fd, AImageDecoder** outDecoder) { in AImageDecoder_createFromFd() argument
147 if (fd <= 0 || !outDecoder) { in AImageDecoder_createFromFd()
170 return createFromStream(std::move(stream), outDecoder); in AImageDecoder_createFromFd()
174 AImageDecoder** outDecoder) { in AImageDecoder_createFromBuffer() argument
175 if (!buffer || !length || !outDecoder) { in AImageDecoder_createFromBuffer()
178 *outDecoder = nullptr; in AImageDecoder_createFromBuffer()
184 return createFromStream(std::move(stream), outDecoder); in AImageDecoder_createFromBuffer()