Home
last modified time | relevance | path

Searched refs:texture_data (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/
Dsprite.h130 uint8_t* texture_data; in LoadTexture() local
142 texture_data = new uint8_t[actual_width_ * actual_height_]; in LoadTexture()
145 memcpy(texture_data + actual_width_ * y, texture_source[top + y] + left, in LoadTexture()
152 texture_data = const_cast<uint8_t*>(texture_source.data()); in LoadTexture()
174 texture_data); in LoadTexture()
177 delete(texture_data); in LoadTexture()
/external/deqp/external/openglcts/modules/gl/
Dgl4cStencilTexturingTests.cpp819 std::vector<GLubyte> texture_data; in prepareDestinationTexture() local
842 texture_data.resize(texture_size); in prepareDestinationTexture()
845 memset(&texture_data[0], 0, texture_size); in prepareDestinationTexture()
849 …ateAndFill2DTexture(m_context, m_width, m_height, internal_format, format, type, &texture_data[0]); in prepareDestinationTexture()
946 const std::vector<glw::GLubyte>& texture_data) in prepareSourceTexture() argument
968 &texture_data[0]); in prepareSourceTexture()
1006 …unctionalTest::prepareSourceTextureData(GLenum internal_format, std::vector<GLubyte>& texture_data) in prepareSourceTextureData() argument
1035 texture_data.resize(texture_size); in prepareSourceTextureData()
1055 GLubyte* pixel_data = &texture_data[0] + line_offset + pixel_offset; in prepareSourceTextureData()
1221 std::vector<GLubyte> texture_data; in test() local
[all …]
Dgl4cStencilTexturingTests.hpp71 const std::vector<glw::GLubyte>& texture_data);
73 …void prepareSourceTextureData(glw::GLenum internal_format, std::vector<glw::GLubyte>& texture_data
Dgl4cGetTextureSubImageTests.cpp1042 glw::GLubyte* texture_data = new glw::GLubyte[size]; in check() local
1044 if (DE_NULL == texture_data) in check()
1053 texture_data); in check()
1058 GL_UNSIGNED_BYTE, size, texture_data); in check()
1090 glw::GLubyte tested_value = texture_data[tested_data_position]; in check()
1105 delete[] texture_data; in check()
1110 delete[] texture_data; in check()
Dgl4cShaderImageLoadStoreTests.cpp7141 std::vector<GLubyte> texture_data; in Create2DR8UIDestinationTexture() local
7142 texture_data.resize(texture_size); in Create2DR8UIDestinationTexture()
7147 texture_data[i] = 0; in Create2DR8UIDestinationTexture()
7151 return Create2DR8UITexture(width, height, texture_data, out_texture_id); in Create2DR8UIDestinationTexture()
7171 std::vector<GLubyte> texture_data; in Create2DR8UISourceTexture() local
7172 texture_data.resize(texture_size); in Create2DR8UISourceTexture()
7177 texture_data[i] = texel_value++; in Create2DR8UISourceTexture()
7181 return Create2DR8UITexture(width, height, texture_data, out_texture_id); in Create2DR8UISourceTexture()
7193 GLenum Create2DR8UITexture(GLuint width, GLuint height, const std::vector<GLubyte>& texture_data, in Create2DR8UITexture() argument
7218 GL_UNSIGNED_BYTE, &texture_data[0]); in Create2DR8UITexture()
[all …]
Dgl4cShadingLanguage420PackTests.cpp1985 std::vector<glw::GLuint> texture_data; in checkResults() local
1987 texture_data.resize(texture_data_size); in checkResults()
1989 color_texture.get(m_color_texture_format, m_color_texture_type, &texture_data[0]); in checkResults()
1993 if (green_color != texture_data[i]) in checkResults()
1996 << std::setfill('0') << std::setw(8) << texture_data[i] in checkResults()
2372 std::vector<GLuint> texture_data; in prepareBuffer() local
2373 texture_data.resize(m_width); in prepareBuffer()
2377 for (GLuint i = 0; i < texture_data.size(); ++i) in prepareBuffer()
2379 texture_data[i] = color; in prepareBuffer()
2382 buffer.update(m_width * sizeof(GLuint), &texture_data[0], GL_STATIC_DRAW); in prepareBuffer()
[all …]
Dgl4cBufferStorageTests.cpp3447 GLubyte texture_data[texture_data_size]; in iterate() local
3609 Texture::GetData(gl, GL_TEXTURE_2D, GL_RGBA, GL_UNSIGNED_BYTE, texture_data); in iterate()
3610 if (0 != memcmp(texture_data + pixel_offset, &expected_pixel, pixel_size)) in iterate()
3619 1 /* depth */, texture_data); in iterate()
3662 Texture::GetData(gl, GL_TEXTURE_2D, GL_RGBA, GL_UNSIGNED_BYTE, texture_data); in iterate()
3663 if (0 != memcmp(texture_data + pixel_offset, &expected_pixel, pixel_size)) in iterate()
3672 1 /* depth */, texture_data); in iterate()
Dgl4cShaderSubroutineTests.cpp5738 std::vector<GLubyte> texture_data; in fillTexture() local
5741 texture_data.resize(m_texture_width * m_texture_height * 4); in fillTexture()
5751 texture_data[point_offset + 0] = color[0]; /* red */ in fillTexture()
5752 texture_data[point_offset + 1] = color[1]; /* green */ in fillTexture()
5753 texture_data[point_offset + 2] = color[2]; /* blue */ in fillTexture()
5754 texture_data[point_offset + 3] = color[3]; /* alpha */ in fillTexture()
5758 texture.update(m_texture_width, m_texture_height, GL_RGBA, GL_UNSIGNED_BYTE, &texture_data[0]); in fillTexture()
5921 std::vector<GLuint> texture_data; in fillTexture() local
5924 texture_data.resize(m_texture_width * m_texture_height * 4); in fillTexture()
5934 texture_data[point_offset + 0] = color[0]; /* red */ in fillTexture()
[all …]
Dgl4cComputeShaderTests.cpp1009 std::vector<vec4> texture_data(kBufferSize, vec4(123.0f)); in RunIteration() local
1019 glTexImage1D(GL_TEXTURE_1D, 0, GL_RGBA32F, kWidth, 0, GL_RGBA, GL_FLOAT, &texture_data[0]); in RunIteration()
1025 …glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, kWidth, kHeight, 0, GL_RGBA, GL_FLOAT, &texture_data[0]… in RunIteration()
1031 …e3D(GL_TEXTURE_3D, 0, GL_RGBA32F, kWidth, kHeight, kDepth, 0, GL_RGBA, GL_FLOAT, &texture_data[0]); in RunIteration()
1037 …ge2D(GL_TEXTURE_RECTANGLE, 0, GL_RGBA32F, kWidth, kHeight, 0, GL_RGBA, GL_FLOAT, &texture_data[0]); in RunIteration()
1043 …age2D(GL_TEXTURE_1D_ARRAY, 0, GL_RGBA32F, kWidth, kHeight, 0, GL_RGBA, GL_FLOAT, &texture_data[0]); in RunIteration()
1050 &texture_data[0]); in RunIteration()
1054 glBufferData(GL_TEXTURE_BUFFER, kBufferSize * sizeof(vec4), &texture_data[0], GL_DYNAMIC_DRAW); in RunIteration()
Dgl4cEnhancedLayoutsTests.cpp6950 std::vector<GLuint> texture_data; in test() local
6951 texture_data.resize(m_width * m_height); in test()
6953 for (GLuint i = 0; i < texture_data.size(); ++i) in test()
6955 texture_data[i] = 0x20406080; in test()
6960 &texture_data[0]); in test()
6980 std::vector<GLuint> texture_data; in test() local
6981 texture_data.resize(m_width * m_height); in test()
6983 for (GLuint i = 0; i < texture_data.size(); ++i) in test()
6985 texture_data[i] = 0x20406080; in test()
6989 &texture_data[0]); in test()
[all …]
/external/deqp/external/openglcts/modules/common/
DglcViewportArrayTests.cpp2707 std::vector<GLint> texture_data; in checkResults() local
2708 texture_data.resize(m_width * m_height); in checkResults()
2709 texture_0.get(GL_RED_INTEGER, GL_INT, &texture_data[0]); in checkResults()
2715 bool result = checkRegionR32I(x, y, index, &texture_data[0]); in checkResults()
3472 std::vector<GLint> texture_data; in checkResults() local
3473 texture_data.resize(m_width * m_height); in checkResults()
3474 texture_0.get(GL_RED_INTEGER, GL_INT, &texture_data[0]); in checkResults()
3486 bool result = checkRegionR32I(x, y, expected_value, &texture_data[0]); in checkResults()
3728 std::vector<GLint> texture_data; in checkResults() local
3729 texture_data.resize(m_width * m_height); in checkResults()
[all …]
DglcTextureRepeatModeTests.cpp510 void fillTextureWithColor(GLubyte* texture_data, GLsizei tex_width, GLsizei tex_height,
597 void TestClampModeForInternalFormat::fillTextureWithColor(GLubyte* texture_data, GLsizei tex_width,… in fillTextureWithColor() argument
613 deMemcpy(texture_data, red, size); in fillTextureWithColor()
614 texture_data += size; in fillTextureWithColor()
618 deMemcpy(texture_data, green, size); in fillTextureWithColor()
619 texture_data += size; in fillTextureWithColor()
626 deMemcpy(texture_data, blue, size); in fillTextureWithColor()
627 texture_data += size; in fillTextureWithColor()
631 deMemcpy(texture_data, white, size); in fillTextureWithColor()
632 texture_data += size; in fillTextureWithColor()
/external/mesa3d/src/gallium/frontends/clover/core/
Dresource.cpp75 std::string texture_data; in clear() local
76 texture_data.reserve(util_format_get_blocksize(pipe->format)); in clear()
77 util_format_pack_rgba(pipe->format, &texture_data[0], data.data(), 1); in clear()
78 q.pipe->clear_texture(q.pipe, pipe, 0, box(from, region), texture_data.data()); in clear()
/external/deqp/external/openglcts/modules/glesext/gpu_shader5/
DesextcGPUShader5TextureGatherOffset.cpp958 std::vector<glw::GLubyte> texture_data; in prepareTexture() local
960 texture_data.resize(m_texture_size * m_texture_size * m_texture_bytes_per_pixel); in prepareTexture()
963 prepareTextureData(&texture_data[0]); in prepareTexture()
971 m_texture_size, 1 /* depth */, m_texture_format, m_texture_type, &texture_data[0]); in prepareTexture()
979 m_texture_format, m_texture_type, &texture_data[0]); in prepareTexture()
1269 glw::GLint* texture_data = (glw::GLint*)data; in prepareTextureData() local
1283 texture_data[pixel_offset + 0] = x; in prepareTextureData()
1284 texture_data[pixel_offset + 1] = y; in prepareTextureData()
1287 texture_data[pixel_offset + 2] = x; in prepareTextureData()
1288 texture_data[pixel_offset + 3] = y; in prepareTextureData()
[all …]
/external/mesa3d/src/intel/blorp/
Dblorp_blit.c641 nir_ssa_def *texture_data[5]; in blorp_nir_combine_samples() local
647 assert(stack_depth < ARRAY_SIZE(texture_data)); in blorp_nir_combine_samples()
652 texture_data[stack_depth++] = blorp_nir_txf_ms(b, v, ms_pos, mcs, dst_type); in blorp_nir_combine_samples()
683 nir_store_var(b, color, texture_data[0], 0xf); in blorp_nir_combine_samples()
693 texture_data[stack_depth - 1] = in blorp_nir_combine_samples()
695 texture_data[stack_depth - 1], in blorp_nir_combine_samples()
696 texture_data[stack_depth], in blorp_nir_combine_samples()
706 texture_data[0] = nir_fmul(b, texture_data[0], in blorp_nir_combine_samples()
710 nir_store_var(b, color, texture_data[0], 0xf); in blorp_nir_combine_samples()
/external/deqp/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArraySampling.cpp883 std::vector<T> texture_data; in prepareDataForTexture() local
884 texture_data.resize(n_total_componenets); in prepareDataForTexture()
886 fillImage<T, N_Components>(texture_width, texture_height, components, &texture_data[0]); in prepareDataForTexture()
889 texture_height, 1 /* depth */, texture_format, texture_type, &texture_data[0]); in prepareDataForTexture()
/external/deqp/external/openglcts/modules/gles31/
Des31cComputeShaderTests.cpp994 std::vector<vec4> texture_data(kBufferSize, vec4(123.0f)); in RunIteration() local
1002 …glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, kWidth, kHeight, 0, GL_RGBA, GL_FLOAT, &texture_data[0]… in RunIteration()
1008 …e3D(GL_TEXTURE_3D, 0, GL_RGBA32F, kWidth, kHeight, kDepth, 0, GL_RGBA, GL_FLOAT, &texture_data[0]); in RunIteration()
1015 &texture_data[0]); in RunIteration()