Searched defs:uniform (Results 1 - 25 of 31) sorted by relevance

12

/external/skia/src/gpu/glsl/
H A DGrGLSLTextureSampler.h20 GrGLSLTextureSampler(UniformHandle uniform, const GrTextureAccess& access) argument
21 : fSamplerUniform(uniform)
/external/opencv3/samples/cpp/tutorial_code/Histograms_Matching/
H A DcalcHist_Demo.cpp40 bool uniform = true; bool accumulate = false; local
45 calcHist( &bgr_planes[0], 1, 0, Mat(), b_hist, 1, &histSize, &histRange, uniform, accumulate );
46 calcHist( &bgr_planes[1], 1, 0, Mat(), g_hist, 1, &histSize, &histRange, uniform, accumulate );
47 calcHist( &bgr_planes[2], 1, 0, Mat(), r_hist, 1, &histSize, &histRange, uniform, accumulate );
/external/webrtc/webrtc/base/
H A Drandom.cc24 // Casting the output to 32 bits will give an almost uniform number.
29 // If x / 2^32 is uniform on [0,1), then x / 2^32 * (t+1) is uniform on
30 // the interval [0,t+1), so the integer part is uniform on [0,t].
70 // Creating a Normal distribution variable from two independent uniform
82 double uniform = Rand<double>(); local
83 return -log(uniform) / lambda;
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_shader.cpp145 bool uniform = stage == MESA_SHADER_FRAGMENT; local
148 input, output, temp, uniform);
H A Dbrw_vec4.cpp402 * vector. The goal is to make elimination of unused uniform
436 /* Find which uniform vectors are actually used by the program. We
453 /* Now, figure out a packing of the live uniform vectors into our
465 /* Find the lowest place we can slot this uniform in. */
616 /* Only allow 32 registers (256 uniform components) as push constants,
625 * look for the most infrequently used uniform vec4s, but leave
634 /* Try to find an existing copy of this uniform in the pull
673 int uniform = inst->src[i].reg; local
678 pull_constant_loc[uniform]);
H A Dbrw_vec4_visitor.cpp227 * writemask, note that uniform packing and register allocation
457 * get stored, rather than in some global gl_shader_program uniform
492 /* Track the size of this uniform vector, for future packing of
840 /* Track how big the whole uniform variable is, in case we need to put a
2600 * uniform array access out to a pull constant buffer.
2612 * uniform in the pull constant buffer.
2624 int uniform = inst->src[i].reg; local
2629 if (pull_constant_loc[uniform] == -1) {
2630 const float **values = &prog_data->param[uniform * 4];
2632 pull_constant_loc[uniform]
[all...]
/external/opencv3/modules/imgproc/src/
H A Dhistogram.cpp55 bool uniform, bool issparse, std::vector<size_t>& _tab )
62 if( uniform )
117 const float** ranges, bool uniform,
185 else if( uniform )
752 const double* _uniranges, bool uniform )
769 if( uniform )
941 // non-uniform histogram
987 const double* _uniranges, bool uniform )
997 calcHistLookupTables_8u( hist, SparseMat(), dims, _ranges, _uniranges, uniform, false, _tab );
1225 const float** ranges, bool uniform, boo
53 calcHistLookupTables_8u( const Mat& hist, const SparseMat& shist, int dims, const float** ranges, const double* uniranges, bool uniform, bool issparse, std::vector<size_t>& _tab ) argument
115 histPrepareImages( const Mat* images, int nimages, const int* channels, const Mat& mask, int dims, const int* histSize, const float** ranges, bool uniform, std::vector<uchar*>& ptrs, std::vector<int>& deltas, Size& imsize, std::vector<double>& uniranges ) argument
[all...]
/external/skia/src/gpu/gl/
H A DGrGLProgramDataManager.cpp25 Uniform& uniform = fUniforms[i]; local
30 uniform.fArrayCount = builderUniform.fVariable.getArrayCount();
31 uniform.fType = builderUniform.fVariable.getType();
33 // TODO: Move the Xoom uniform array in both FS and VS bug workaround here.
36 uniform.fVSLocation = builderUniform.fLocation;
38 uniform.fVSLocation = kUnusedUniform;
41 uniform.fFSLocation = builderUniform.fLocation;
43 uniform.fFSLocation = kUnusedUniform;
69 // FIXME: We still insert a single sampler uniform for every stage. If the shader does not
102 // Once the uniform manage
[all...]
/external/skia/src/gpu/vk/
H A DGrVkProgramDataManager.cpp25 Uniform& uniform = fUniforms[i]; local
30 uniform.fArrayCount = uniformInfo.fVariable.getArrayCount();
31 uniform.fType = uniformInfo.fVariable.getType();
33 uniform.fBinding = uniformInfo.fBinding;
34 uniform.fOffset = uniformInfo.fUBOffset;
36 uniform.fSetNumber = uniformInfo.fSetNumber;
/external/deqp/framework/randomshaders/
H A DrsgUtils.cpp41 const ShaderInput* uniform = *i; local
42 if (addedUniforms.find(uniform->getVariable()->getName()) == addedUniforms.end())
44 addedUniforms.insert(uniform->getVariable()->getName());
45 uniforms.push_back(uniform);
119 const ShaderInput* uniform = *i; local
120 values.push_back(VariableValue(uniform->getVariable()));
121 computeRandomValue(rnd, values[values.size()-1].getValue(), uniform->getValueRange());
/external/deqp/modules/glshared/
H A DglsRandomShaderProgram.cpp89 const rsg::ShaderInput* uniform = unifiedUniforms[uniformNdx]; local
90 decl << sglr::pdec::Uniform(uniform->getVariable()->getName(), mapToBasicType(uniform->getVariable()->getType()));
H A DglsUniformBlockCase.hpp196 void addUniform (const Uniform& uniform) { m_uniforms.push_back(uniform); } argument
240 BUFFERMODE_SINGLE = 0, //!< Single buffer shared between uniform blocks.
H A DglsUniformBlockCase.cpp594 const Uniform& uniform = *uniformIter; local
595 computeStd140Layout(layout, curOffset, activeBlockNdx, blockPrefix + uniform.getName(), uniform.getType(), mergeLayoutFlags(block.getFlags(), uniform.getFlags()));
612 // Compute active uniform set for block.
813 void generateDeclaration (std::ostringstream& src, const Uniform& uniform, int indentLevel);
906 void generateDeclaration (std::ostringstream& src, const Uniform& uniform, int indentLevel) argument
908 if ((uniform.getFlags() & LAYOUT_MASK) != 0)
909 src << "layout(" << LayoutFlagsFmt(uniform.getFlags() & LAYOUT_MASK) << ") ";
911 generateDeclaration(src, uniform
1081 const Uniform& uniform = *uniformIter; local
1795 const UniformLayoutEntry& uniform = layout.uniforms[uniformNdx]; local
1830 const UniformLayoutEntry& uniform = layout.uniforms[uniformNdx]; local
[all...]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/shaders/
H A DBaseShader.java40 /** @author Xoppa A BaseShader is a wrapper around a ShaderProgram that keeps track of the uniform and attribute locations. It does
49 /** @return True if the uniform only has to be set once per render call, false if the uniform must be set for each renderable. */
115 /** Register an uniform which might be used by this shader. Only possible prior to the call to init().
116 * @return The ID of the uniform to use in this shader. */
118 if (locations != null) throw new GdxRuntimeException("Cannot register an uniform after initialization");
143 public int register (final Uniform uniform, final Setter setter) { argument
144 return register(uniform.alias, uniform, setter);
147 public int register (final Uniform uniform) { argument
275 set(final int uniform, final Matrix4 value) argument
281 set(final int uniform, final Matrix3 value) argument
287 set(final int uniform, final Vector3 value) argument
293 set(final int uniform, final Vector2 value) argument
299 set(final int uniform, final Color value) argument
305 set(final int uniform, final float value) argument
311 set(final int uniform, final float v1, final float v2) argument
317 set(final int uniform, final float v1, final float v2, final float v3) argument
323 set(final int uniform, final float v1, final float v2, final float v3, final float v4) argument
329 set(final int uniform, final int value) argument
335 set(final int uniform, final int v1, final int v2) argument
341 set(final int uniform, final int v1, final int v2, final int v3) argument
347 set(final int uniform, final int v1, final int v2, final int v3, final int v4) argument
353 set(final int uniform, final TextureDescriptor textureDesc) argument
359 set(final int uniform, final GLTexture texture) argument
[all...]
/external/opencv/cv/src/
H A Dcvthresh.cpp208 bool uniform = false; local
236 uniform = true;
244 if( uniform )
268 if( uniform )
/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_texture.c113 boolean uniform = TRUE; local
259 uniform = uniform && desc->channel[0].size == desc->channel[i].size;
262 /* Non-uniform formats. */
263 if (!uniform) {
310 /* And finally, uniform formats. */
/external/opencv3/modules/core/include/opencv2/core/
H A Doperations.hpp345 inline unsigned RNG::operator ()(unsigned N) { return (unsigned)uniform(0,N); }
348 inline int RNG::uniform(int a, int b) { return a == b ? a : (int)(next() % (b - a) + a); } function in class:cv::RNG
349 inline float RNG::uniform(float a, float b) { return ((float)*this)*(b - a) + a; } function in class:cv::RNG
350 inline double RNG::uniform(double a, double b) { return ((double)*this)*(b - a) + a; } function in class:cv::RNG
/external/deqp/external/vulkancts/modules/vulkan/ubo/
H A DvktUniformBlockCase.hpp197 void addUniform (const Uniform& uniform) { m_uniforms.push_back(uniform); } argument
292 BUFFERMODE_SINGLE = 0, //!< Single buffer shared between uniform blocks.
/external/mesa3d/src/gallium/drivers/r600/
H A Dr600_texture.c847 boolean uniform = TRUE; local
1014 uniform = uniform && desc->channel[0].size == desc->channel[i].size;
1017 /* Non-uniform formats. */
1018 if (!uniform) {
1061 /* uniform formats */
/external/opencv3/modules/imgproc/test/
H A Dtest_histograms.cpp73 int uniform; member in class:CV_BaseHistTest
148 uniform = cvtest::randInt(rng) % 2;
154 if( !uniform )
187 if( uniform )
292 hist[i] = cvCreateHist( cdims, dims, hist_type, r, uniform );
1225 int uniform = CV_IS_UNIFORM_HIST(hist);
1270 if( uniform )
1458 int uniform = CV_IS_UNIFORM_HIST(hist);
1490 if( uniform )
/external/opencv3/modules/ts/src/
H A Dts_func.cpp46 double width_log = rng.uniform(0., maxSizeLog);
47 double height_log = rng.uniform(0., maxSizeLog - width_log);
58 int i, dims = rng.uniform(minDims, maxDims+1);
62 double v = rng.uniform(0., maxSizeLog);
68 int j = rng.uniform(0, dims);
69 int k = rng.uniform(0, dims);
76 int channels = rng.uniform(minChannels, maxChannels+1);
81 depth = rng.uniform(CV_8U, CV_64F+1);
113 size0.width += std::max(rng.uniform(0, 10) - 5, 0);
114 size0.height += std::max(rng.uniform(
397 bool uniform = k >= elemSize; local
[all...]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
H A DCell.java609 public Cell<T> uniform () { method in class:Cell
627 public Cell<T> uniform (boolean x, boolean y) { method in class:Cell
/external/opencv3/modules/core/src/
H A Drand.cpp951 int cv::RNG_MT19937::uniform(int a, int b) { return (int)(next() % (b - a) + a); } function in class:cv::RNG_MT19937
953 float cv::RNG_MT19937::uniform(float a, float b) { return ((float)*this)*(b - a) + a; } function in class:cv::RNG_MT19937
955 double cv::RNG_MT19937::uniform(double a, double b) { return ((double)*this)*(b - a) + a; } function in class:cv::RNG_MT19937
/external/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_state.c1070 boolean uniform = TRUE; local
1120 uniform = uniform && desc->channel[0].size == desc->channel[i].size;
1123 /* Non-uniform formats. */
1124 if (!uniform) {
1154 /* uniform formats */
/external/mesa3d/src/glsl/
H A Dast.h369 unsigned uniform:1; member in struct:ast_type_qualifier::__anon14420::__anon14421
541 * Flag indicating that these declarators are in a uniform block,

Completed in 724 milliseconds

12