Home
last modified time | relevance | path

Searched refs:nativeSampleSize (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/codec/
DSkSampledCodec.cpp20 SkISize SkSampledCodec::accountForNativeScaling(int* sampleSizePtr, int* nativeSampleSize) const { in accountForNativeScaling()
25 if (nativeSampleSize) { in accountForNativeScaling()
26 *nativeSampleSize = 1; in accountForNativeScaling()
57 if (nativeSampleSize) { in accountForNativeScaling()
58 *nativeSampleSize = supportedSampleSize; in accountForNativeScaling()
170 int nativeSampleSize; in sampledDecode() local
171 SkISize nativeSize = this->accountForNativeScaling(&sampleSize, &nativeSampleSize); in sampledDecode()
187 const int subsetX = subsetPtr->x() / nativeSampleSize; in sampledDecode()
188 subsetY = subsetPtr->y() / nativeSampleSize; in sampledDecode()
190 subsetWidth = get_scaled_dimension(subsetPtr->width(), nativeSampleSize); in sampledDecode()
[all …]
DSkSampledCodec.h45 SkISize accountForNativeScaling(int* sampleSize, int* nativeSampleSize = nullptr) const;
/external/skqp/src/codec/
DSkSampledCodec.cpp20 SkISize SkSampledCodec::accountForNativeScaling(int* sampleSizePtr, int* nativeSampleSize) const { in accountForNativeScaling()
25 if (nativeSampleSize) { in accountForNativeScaling()
26 *nativeSampleSize = 1; in accountForNativeScaling()
57 if (nativeSampleSize) { in accountForNativeScaling()
58 *nativeSampleSize = supportedSampleSize; in accountForNativeScaling()
176 int nativeSampleSize; in sampledDecode() local
177 SkISize nativeSize = this->accountForNativeScaling(&sampleSize, &nativeSampleSize); in sampledDecode()
193 const int subsetX = subsetPtr->x() / nativeSampleSize; in sampledDecode()
194 subsetY = subsetPtr->y() / nativeSampleSize; in sampledDecode()
196 subsetWidth = get_scaled_dimension(subsetPtr->width(), nativeSampleSize); in sampledDecode()
[all …]
DSkSampledCodec.h45 SkISize accountForNativeScaling(int* sampleSize, int* nativeSampleSize = nullptr) const;