Lines Matching refs:out
41 void blend(RenderScriptToolkit::BlendingMode mode, const uchar4* in, uchar4* out,
48 BlendTask(RenderScriptToolkit::BlendingMode mode, const uint8_t* in, uint8_t* out, size_t sizeX, in BlendTask() argument
53 mOut{reinterpret_cast<uchar4*>(out)} {}
57 extern "C" int rsdIntrinsicBlend_K(uchar4 *out, uchar4 const *in, int slot,
85 void BlendTask::blend(RenderScriptToolkit::BlendingMode mode, const uchar4* in, uchar4* out, in blend() argument
92 if (rsdIntrinsicBlend_K(out, in, (int) mode, x1, x2) >= 0) { in blend()
101 for (;x1 < x2; x1++, out++) { in blend()
102 *out = 0; in blend()
106 for (;x1 < x2; x1++, out++, in++) { in blend()
107 *out = *in; in blend()
118 rsdIntrinsicBlendSrcOver_K(out, in, len); in blend()
120 out += len << 3; in blend()
125 for (;x1 < x2; x1++, out++, in++) { in blend()
127 ushort4 out_s = convert<ushort4>(*out); in blend()
129 *out = convertClipped(in_s); in blend()
137 rsdIntrinsicBlendDstOver_K(out, in, len); in blend()
139 out += len << 3; in blend()
144 for (;x1 < x2; x1++, out++, in++) { in blend()
146 ushort4 out_s = convert<ushort4>(*out); in blend()
148 *out = convertClipped(in_s); in blend()
156 rsdIntrinsicBlendSrcIn_K(out, in, len); in blend()
158 out += len << 3; in blend()
163 for (;x1 < x2; x1++, out++, in++) { in blend()
165 in_s = (in_s * out->w) >> (ushort4)8; in blend()
166 *out = convert<uchar4>(in_s); in blend()
174 rsdIntrinsicBlendDstIn_K(out, in, len); in blend()
176 out += len << 3; in blend()
181 for (;x1 < x2; x1++, out++, in++) { in blend()
182 ushort4 out_s = convert<ushort4>(*out); in blend()
184 *out = convert<uchar4>(out_s); in blend()
192 rsdIntrinsicBlendSrcOut_K(out, in, len); in blend()
194 out += len << 3; in blend()
199 for (;x1 < x2; x1++, out++, in++) { in blend()
201 in_s = (in_s * (ushort4)(255 - out->w)) >> (ushort4)8; in blend()
202 *out = convert<uchar4>(in_s); in blend()
210 rsdIntrinsicBlendDstOut_K(out, in, len); in blend()
212 out += len << 3; in blend()
217 for (;x1 < x2; x1++, out++, in++) { in blend()
218 ushort4 out_s = convert<ushort4>(*out); in blend()
220 *out = convert<uchar4>(out_s); in blend()
228 rsdIntrinsicBlendSrcAtop_K(out, in, len); in blend()
230 out += len << 3; in blend()
235 for (;x1 < x2; x1++, out++, in++) { in blend()
240 uint4 out_s = convert<uint4>(*out); in blend()
243 *out = convertClipped(out_s); in blend()
251 rsdIntrinsicBlendDstAtop_K(out, in, len); in blend()
253 out += len << 3; in blend()
258 for (;x1 < x2; x1++, out++, in++) { in blend()
260 uint4 out_s = convert<uint4>(*out); in blend()
264 *out = convertClipped(out_s); in blend()
272 rsdIntrinsicBlendXor_K(out, in, len); in blend()
274 out += len << 3; in blend()
279 for (;x1 < x2; x1++, out++, in++) { in blend()
280 *out = *in ^ *out; in blend()
288 rsdIntrinsicBlendMultiply_K(out, in, len); in blend()
290 out += len << 3; in blend()
295 for (;x1 < x2; x1++, out++, in++) { in blend()
296 *out = convert<uchar4>((convert<ushort4>(*in) * convert<ushort4>(*out)) in blend()
305 rsdIntrinsicBlendAdd_K(out, in, len); in blend()
307 out += len << 3; in blend()
312 for (;x1 < x2; x1++, out++, in++) { in blend()
314 oR = out->x, oG = out->y, oB = out->z, oA = out->w; in blend()
315 out->x = (oR + iR) > 255 ? 255 : oR + iR; in blend()
316 out->y = (oG + iG) > 255 ? 255 : oG + iG; in blend()
317 out->z = (oB + iB) > 255 ? 255 : oB + iB; in blend()
318 out->w = (oA + iA) > 255 ? 255 : oA + iA; in blend()
326 rsdIntrinsicBlendSub_K(out, in, len); in blend()
328 out += len << 3; in blend()
333 for (;x1 < x2; x1++, out++, in++) { in blend()
335 oR = out->x, oG = out->y, oB = out->z, oA = out->w; in blend()
336 out->x = (oR - iR) < 0 ? 0 : oR - iR; in blend()
337 out->y = (oG - iG) < 0 ? 0 : oG - iG; in blend()
338 out->z = (oB - iB) < 0 ? 0 : oB - iB; in blend()
339 out->w = (oA - iA) < 0 ? 0 : oA - iA; in blend()
357 void RenderScriptToolkit::blend(BlendingMode mode, const uint8_t* in, uint8_t* out, size_t sizeX, in blend() argument
365 BlendTask task(mode, in, out, sizeX, sizeY, restriction); in blend()