Home | History | Annotate | Download | only in gpu

Lines Matching full:fwidth

75             yuvDesc.fWidth = sizes[0].fWidth;
85 yDesc.fWidth = sizes[0].fWidth;
96 uvDesc.fWidth = sizes[1].fWidth;
106 uvDesc.fWidth = sizes[1].fWidth;
109 uvDesc.fWidth = sizes[2].fWidth;
124 if (!convert_texture(texture, dc, sizes[0].fWidth, sizes[0].fHeight, colorSpace,
135 if (!convert_texture(texture, dc, sizes[0].fWidth, sizes[0].fHeight, colorSpace,
144 if (!convert_texture(texture, dc, sizes[1].fWidth, sizes[1].fHeight,
154 if (!convert_texture(texture, dc, sizes[1].fWidth, sizes[1].fHeight,
162 if (!convert_texture(texture, dc, sizes[2].fWidth, sizes[2].fHeight,
173 SkAutoSTMalloc<128 * 128, uint32_t> tempYUV(yuvSize.fWidth * yuvSize.fHeight);
174 if (!yuvTex->readPixels(0, 0, yuvSize.fWidth, yuvSize.fHeight,
178 size_t yRowBytes = rowBytes[0] ? rowBytes[0] : yuvSize.fWidth;
179 size_t uRowBytes = rowBytes[1] ? rowBytes[1] : yuvSize.fWidth;
180 size_t vRowBytes = rowBytes[2] ? rowBytes[2] : yuvSize.fWidth;
181 if (yRowBytes < (size_t)yuvSize.fWidth || uRowBytes < (size_t)yuvSize.fWidth ||
182 vRowBytes < (size_t)yuvSize.fWidth) {
186 for (int i = 0; i < yuvSize.fWidth; ++i) {
188 uint32_t y = GrColorUnpackR(tempYUV.get()[j * yuvSize.fWidth + i]);
189 uint32_t u = GrColorUnpackG(tempYUV.get()[j * yuvSize.fWidth + i]);
190 uint32_t v = GrColorUnpackB(tempYUV.get()[j * yuvSize.fWidth + i]);
202 if (!yTex->readPixels(0, 0, sizes[0].fWidth, sizes[0].fHeight,
207 SkASSERT(sizes[1].fWidth == sizes[2].fWidth);
210 SkAutoSTMalloc<128 * 128, uint32_t> tempUV(uvSize.fWidth * uvSize.fHeight);
211 if (!uvTex->readPixels(0, 0, uvSize.fWidth, uvSize.fHeight,
216 size_t uRowBytes = rowBytes[1] ? rowBytes[1] : uvSize.fWidth;
217 size_t vRowBytes = rowBytes[2] ? rowBytes[2] : uvSize.fWidth;
218 if (uRowBytes < (size_t)uvSize.fWidth || vRowBytes < (size_t)uvSize.fWidth) {
222 for (int i = 0; i < uvSize.fWidth; ++i) {
224 uint32_t u = GrColorUnpackR(tempUV.get()[j * uvSize.fWidth + i]);
225 uint32_t v = GrColorUnpackG(tempUV.get()[j * uvSize.fWidth + i]);
235 if (!uTex->readPixels(0, 0, sizes[1].fWidth, sizes[1].fHeight,
239 if (!vTex->readPixels(0, 0, sizes[2].fWidth, sizes[2].fHeight,