Home
last modified time | relevance | path

Searched refs:matrices (Results 1 - 25 of 35) sorted by relevance

12

/third_party/ltp/testcases/realtime/func/matrix_mult/
H A Dmatrix_mult.c50 struct matrices { struct
97 static void matrix_mult(struct matrices *matrices) in matrix_mult() argument
101 matrix_init(matrices->A, matrices->B); in matrix_mult()
105 double sum = matrices->A[i_m][j] * matrices->B[j][i]; in matrix_mult()
107 sum += matrices->A[i_m][k] * matrices->B[k][j]; in matrix_mult()
108 matrices in matrix_mult()
113 matrix_mult_record(struct matrices *matrices, int index) matrix_mult_record() argument
152 struct matrices *matrices = (struct matrices *) t->arg; concurrent_thread() local
179 struct matrices *matrices[numcpus]; main_thread() local
[all...]
/third_party/skia/gm/
H A Ddrawimageset.cpp117 SkMatrix matrices[4]; variable
119 matrices[0].setRotate(30);
120 matrices[0].postTranslate(d / 3, 0);
128 SkAssertResult(matrices[1].setPolyToPoly(src, dst, 4));
129 matrices[1].postTranslate(d, 50.f);
131 matrices[2].setRotate(-60.f);
132 matrices[2].postSkew(0.5f, -1.15f);
133 matrices[2].postScale(0.6f, 1.05f);
134 matrices[2].postTranslate(d, 2.6f * d);
140 SkAssertResult(matrices[
222 SkMatrix matrices[5]; global() variable
[all...]
H A Dperspimages.cpp46 SkTDArray<SkMatrix> matrices; variable
47 matrices.push()->setAll(1.f, 0.f, 0.f,
50 matrices.push()->setAll(1.f, 0.f, 0.f,
53 matrices[1].preSkew(0.2f, -0.1f);
54 matrices[1].preRotate(-65.f);
55 matrices[1].preScale(1.2f, .8f);
56 matrices[1].postTranslate(0.f, 60.f);
62 for (const auto& m : matrices) {
77 for (const auto& m : matrices) {
H A Dcirculararcs.cpp279 SkTArray<SkMatrix> matrices; in DEF_SIMPLE_GM() local
280 matrices.push_back().setRotate(kRadius, kRadius, 45.f); in DEF_SIMPLE_GM()
281 matrices.push_back(SkMatrix::I()); in DEF_SIMPLE_GM()
282 matrices.push_back().setAll(-1, 0, 2*kRadius, in DEF_SIMPLE_GM()
285 matrices.push_back().setAll( 1, 0, 0, in DEF_SIMPLE_GM()
288 matrices.push_back().setAll( 1, 0, 0, in DEF_SIMPLE_GM()
291 matrices.push_back().setAll( 0, -1, 2*kRadius, in DEF_SIMPLE_GM()
294 matrices.push_back().setAll( 0, -1, 2*kRadius, in DEF_SIMPLE_GM()
297 matrices.push_back().setAll( 0, 1, 0, in DEF_SIMPLE_GM()
300 matrices in DEF_SIMPLE_GM()
[all...]
H A Dblurrect.cpp516 std::vector<SkMatrix> matrices; in DEF_SIMPLE_GM() local
518 matrices.push_back(SkMatrix::RotateDeg(4.f, c)); in DEF_SIMPLE_GM()
520 matrices.push_back(SkMatrix::RotateDeg(63.f, c)); in DEF_SIMPLE_GM()
522 matrices.push_back(SkMatrix::RotateDeg(30.f, c)); in DEF_SIMPLE_GM()
523 matrices.back().preScale(1.1f, .5f); in DEF_SIMPLE_GM()
525 matrices.push_back(SkMatrix::RotateDeg(147.f, c)); in DEF_SIMPLE_GM()
526 matrices.back().preScale(3.f, .1f); in DEF_SIMPLE_GM()
532 matrices.push_back(SkMatrix::Concat(mirror, matrices.back())); in DEF_SIMPLE_GM()
534 matrices in DEF_SIMPLE_GM()
[all...]
H A Dvertices.cpp228 SkTDArray<SkMatrix> matrices; in draw_batching() local
229 matrices.push()->reset(); in draw_batching()
230 matrices.push()->setTranslate(0, 40); in draw_batching()
231 matrices.push() in draw_batching()
250 for (const auto& m : matrices) { in draw_batching()
275 // Test case for skbug.com/10069. We need to draw the vertices twice (with different matrices) to
H A Dbleed.cpp109 * tests various matrices, filter qualities, and interaction with mask filters. They also exercise
225 std::vector<SkMatrix> matrices; variable
227 matrices.push_back(SkMatrix::I());
235 matrices.push_back(m);
239 matrices.back().mapPoints(corners, 4);
243 matrices.push_back(m);
253 for (const SkMatrix& matrix : matrices) {
H A Dlocalmatriximagefilter.cpp50 // Show the effect of localmatriximagefilter with various matrices, on various filters
61 const SkMatrix matrices[] = { in DEF_SIMPLE_GM() local
75 for (const auto& matrix : matrices) { in DEF_SIMPLE_GM()
H A Dshadowutils.cpp92 SkTDArray<SkMatrix> matrices; in draw_paths() local
93 matrices.push()->reset(); in draw_paths()
94 matrices.push()->setRotate(33.f, 25.f, 25.f).postScale(1.2f, 0.8f, 25.f, 25.f); in draw_paths()
95 for (auto& m : matrices) { in draw_paths()
169 for (auto& m : matrices) { in draw_paths()
/third_party/skia/src/gpu/
H A DGrUniformDataManager.h46 // These three calls upload arrayCount matrices into a uniform array.
47 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
48 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override;
49 void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override;
70 inline void setMatrices(UniformHandle, int arrayCount, const float matrices[]) const;
H A DGrUniformDataManager.cpp232 const float matrices[]) const { in setMatrices()
241 this->copyUniforms(buffer, matrices, arrayCount * 16, uni.fType); in setMatrices()
244 const float* matrix = &matrices[N * N * i]; in setMatrices()
/third_party/skia/src/gpu/gl/
H A DGrGLProgramDataManager.h67 // matrices are column-major, the first three upload a single matrix, the latter three upload
68 // arrayCount matrices into a uniform array.
72 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
73 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override;
74 void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override;
90 const float matrices[]) const;
/third_party/skia/src/gpu/glsl/
H A DGrGLSLProgramDataManager.h47 // matrices are column-major, the first three upload a single matrix, the latter three upload
48 // arrayCount matrices into a uniform array.
52 virtual void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const = 0;
53 virtual void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const = 0;
54 virtual void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const = 0;
/third_party/skia/src/core/
H A DSkVMBlitter.h35 const SkMatrixProvider& matrices,
53 // Params::{paint,quality,matrices} are only passed to {shader,clip}->program(),
68 const SkMatrixProvider& matrices; member
76 const SkMatrixProvider& matrices,
H A DSkVMBlitter.cpp100 const SkMatrixProvider& matrices, const SkMatrix* localM,
105 matrices,localM, dst, uniforms,alloc);
222 const SkMatrixProvider& matrices, in EffectiveParams()
287 matrices, in EffectiveParams()
315 params.matrices, /*localM=*/nullptr, in BuildProgram()
372 params.matrices, /*localM=*/nullptr, in BuildProgram()
445 *outColor = sb->program(&p, device, /*local=*/device, paint, params.matrices, in CacheKey()
532 const SkMatrixProvider& matrices, in SkVMBlitter()
539 , fParams(EffectiveParams(device, sprite, paint, matrices, std::move(clip)))
751 const SkMatrixProvider& matrices, in Make()
219 EffectiveParams(const SkPixmap& device, const SkPixmap* sprite, SkPaint paint, const SkMatrixProvider& matrices, sk_sp<SkShader> clip) EffectiveParams() argument
528 SkVMBlitter(const SkPixmap& device, const SkPaint& paint, const SkPixmap* sprite, SkIPoint spriteOffset, const SkMatrixProvider& matrices, sk_sp<SkShader> clip, bool* ok) SkVMBlitter() argument
749 Make(const SkPixmap& device, const SkPaint& paint, const SkMatrixProvider& matrices, SkArenaAlloc* alloc, sk_sp<SkShader> clip) Make() argument
[all...]
/third_party/skia/src/shaders/
H A DSkLocalMatrixShader.cpp82 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram()
90 matrices,lm.get(), dst, in onProgram()
160 const SkMatrixProvider& matrices, const SkMatrix* localM,
163 SkOverrideDeviceMatrixProvider matrixProvider(matrices, fCTM);
80 onProgram(skvm::Builder* p, skvm::Coord device, skvm::Coord local, skvm::Color paint, const SkMatrixProvider& matrices, const SkMatrix* localM, const SkColorInfo& dst, skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const onProgram() argument
H A DSkTransformShader.cpp16 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram()
19 skvm::Coord newLocal = this->applyMatrix(b, matrices.localToDevice(), local, uniforms); in onProgram()
14 onProgram(skvm::Builder* b, skvm::Coord device, skvm::Coord local, skvm::Color color, const SkMatrixProvider& matrices, const SkMatrix* localM, const SkColorInfo& dst, skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const onProgram() argument
H A DSkColorFilterShader.cpp67 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram()
72 matrices,localM, dst, in onProgram()
65 onProgram(skvm::Builder* p, skvm::Coord device, skvm::Coord local, skvm::Color paint, const SkMatrixProvider& matrices, const SkMatrix* localM, const SkColorInfo& dst, skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const onProgram() argument
H A DSkTransformShader.h25 const SkMatrixProvider& matrices, const SkMatrix* localM,
H A DSkImageShader.cpp172 // legacy shader impl should be able to handle these matrices in legacy_shader_can_handle()
339 const SkMatrixProvider& matrices, const SkMatrix* localM,
343 b, device, local, color, matrices, localM, dst, uniforms, this, alloc);
667 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram()
671 b, device, origLocal, paint, matrices, localM, dst, uniforms, nullptr, alloc); in onProgram()
676 const SkMatrixProvider& matrices, const SkMatrix* localM, const SkColorInfo& dst, in makeProgram()
680 if (!this->computeTotalInverse(matrices.localToDevice(), localM, &baseInv)) { in makeProgram()
694 if (matrices.localToDeviceHitsPixelCenters()) { in makeProgram()
665 onProgram(skvm::Builder* b, skvm::Coord device, skvm::Coord origLocal, skvm::Color paint, const SkMatrixProvider& matrices, const SkMatrix* localM, const SkColorInfo& dst, skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const onProgram() argument
674 makeProgram( skvm::Builder* p, skvm::Coord device, skvm::Coord origLocal, skvm::Color paint, const SkMatrixProvider& matrices, const SkMatrix* localM, const SkColorInfo& dst, skvm::Uniforms* uniforms, const TransformShader* coordShader, SkArenaAlloc* alloc) const makeProgram() argument
H A DSkPictureShader.cpp298 const SkMatrixProvider& matrices, const SkMatrix* localM, in onProgram()
305 bitmapShader = this->rasterShader(matrices.localToDevice(), &lm, in onProgram()
312 matrices,lm, dst, in onProgram()
296 onProgram(skvm::Builder* p, skvm::Coord device, skvm::Coord local, skvm::Color paint, const SkMatrixProvider& matrices, const SkMatrix* localM, const SkColorInfo& dst, skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const onProgram() argument
H A DSkShader.cpp213 const SkMatrixProvider& matrices, const SkMatrix* localM, in program()
234 if (auto color = this->onProgram(p, device,local, paint, matrices,localM, tweaked, in program()
211 program(skvm::Builder* p, skvm::Coord device, skvm::Coord local, skvm::Color paint, const SkMatrixProvider& matrices, const SkMatrix* localM, const SkColorInfo& dst, skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const program() argument
/third_party/skia/samplecode/
H A DSampleShadowUtils.cpp172 SkTDArray<SkMatrix> matrices; variable
173 matrices.push()->reset();
174 matrices.push()->setRotate(33.f, 25.f, 25.f).postScale(1.2f, 0.8f, 25.f, 25.f);
181 for (auto& m : matrices) {
215 for (auto& m : matrices) {
/third_party/skia/src/gpu/mtl/
H A DGrMtlPipelineStateDataManager.h32 // matrices are column-major, the first one uploads a single matrix, the latter uploads
33 // arrayCount matrices into a uniform array.
35 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
/third_party/skia/src/gpu/vk/
H A DGrVkPipelineStateDataManager.h40 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;

Completed in 14 milliseconds

12