Home
last modified time | relevance | path

Searched refs:pixel_data (Results 1 – 14 of 14) sorted by relevance

/external/tflite-support/tensorflow_lite_support/examples/task/vision/desktop/utils/
Dimage_utils.cc42 image_data.pixel_data = stbi_load(file_name.c_str(), &image_data.width, in DecodeImageFromFile()
45 if (image_data.pixel_data == nullptr) { in DecodeImageFromFile()
51 stbi_image_free(image_data.pixel_data); in DecodeImageFromFile()
75 if (image_data.pixel_data == nullptr) { in EncodeImageToPngFile()
82 image_data.channels, image_data.pixel_data, in EncodeImageToPngFile()
90 void ImageDataFree(ImageData* image) { stbi_image_free(image->pixel_data); } in ImageDataFree()
Dimage_utils.h33 uint8* pixel_data; member
/external/tflite-support/tensorflow_lite_support/examples/task/vision/desktop/
Dimage_segmenter_demo.cc75 uint8* pixel_data = static_cast<uint8*>( in EncodeMaskToPngFile() local
77 ImageData mask = {.pixel_data = pixel_data, in EncodeMaskToPngFile()
86 pixel_data[3 * i] = colored_label.r(); in EncodeMaskToPngFile()
87 pixel_data[3 * i + 1] = colored_label.g(); in EncodeMaskToPngFile()
88 pixel_data[3 * i + 2] = colored_label.b(); in EncodeMaskToPngFile()
146 CreateFromRgbRawBuffer(image.pixel_data, {image.width, image.height}); in Segment()
149 CreateFromRgbaRawBuffer(image.pixel_data, {image.width, image.height}); in Segment()
Dobject_detector_demo.cc132 image->pixel_data[pixel_index] = r; in EncodeResultToPngFile()
133 image->pixel_data[pixel_index + 1] = g; in EncodeResultToPngFile()
134 image->pixel_data[pixel_index + 2] = b; in EncodeResultToPngFile()
190 CreateFromRgbRawBuffer(image.pixel_data, {image.width, image.height}); in Detect()
193 CreateFromRgbaRawBuffer(image.pixel_data, {image.width, image.height}); in Detect()
Dimage_classifier_demo.cc123 CreateFromRgbRawBuffer(image.pixel_data, {image.width, image.height}); in Classify()
126 CreateFromRgbaRawBuffer(image.pixel_data, {image.width, image.height}); in Classify()
/external/webrtc/modules/desktop_capture/
Dblank_detector_desktop_capturer_wrapper.cc119 uint8_t* pixel_data = frame.GetFrameDataAtPos(DesktopVector(x, y)); in IsBlankPixel() local
120 return RgbaColor(pixel_data) == blank_pixel_; in IsBlankPixel()
/external/deqp/external/openglcts/modules/gl/
Dgl4cStencilTexturingTests.cpp1055 GLubyte* pixel_data = &texture_data[0] + line_offset + pixel_offset; in prepareSourceTextureData() local
1061 memcpy(pixel_data, stencil_data, 1); in prepareSourceTextureData()
1062 memcpy(pixel_data + 1, depth_i_data, 3); in prepareSourceTextureData()
1065 memcpy(pixel_data, depth_f_data, 4); in prepareSourceTextureData()
1066 memcpy(pixel_data + 4, stencil_data, 1); in prepareSourceTextureData()
Dgl3cGPUShader5Tests.cpp512 const glw::GLuint pixel_data = result_image[i]; in verifyImage() local
514 if (color != pixel_data) in verifyImage()
524 const glw::GLuint pixel_data = result_image[i]; in verifyImage() local
526 if (color == pixel_data) in verifyImage()
Dgl4cCopyImageTests.cpp3131 GLubyte* pixel_data = ptr + j * pixel_size; in prepareDstPxls() local
3133 Utils::packPixel(internal_format, type, 1.0, 1.0, 1.0, 1.0, pixel_data); in prepareDstPxls()
3989 GLubyte* pixel_data = out_pixels + j * pixel_size; in prepareDstPxls() local
3991 Utils::packPixel(internal_format, type, 1.0, 1.0, 1.0, 1.0, pixel_data); in prepareDstPxls()
4040 GLubyte* pixel_data = line_data + pixel_offset; in prepareSrcPxls() local
4048 Utils::packPixel(internal_format, type, red, green, blue, alpha, pixel_data); in prepareSrcPxls()
/external/igt-gpu-tools/lib/
Digt_edid.h156 struct detailed_pixel_timing pixel_data; member
Digt_edid.c84 struct detailed_pixel_timing *pt = &dt->data.pixel_data; in detailed_timing_set_mode()
/external/swiftshader/tests/GLESUnitTests/
Dunittests.cpp983 GLuint pixel_data[4][4] = { in TEST_F() local
989 glBufferData(GL_PIXEL_UNPACK_BUFFER, sizeof(pixel_data), (void *)pixel_data, GL_STREAM_DRAW); in TEST_F()
1015 allEqual = allEqual && (color[i][j + 2] == pixel_data[i][j + 2]); in TEST_F()
/external/libabigail/tests/data/test-diff-filter/
Dtest-PR27569-v1.abi42014 …<var-decl name="pixel_data" type-id="42c5f701" visibility="default" filepath="include/drm/drm_edid…
42773 …<var-decl name="pixel_data" type-id="42c5f701" visibility="default" filepath="include/drm/drm_edid…
Dtest-PR27569-v0.abi41985 …<var-decl name="pixel_data" type-id="42c5f701" visibility="default" filepath="include/drm/drm_edid…
42744 …<var-decl name="pixel_data" type-id="42c5f701" visibility="default" filepath="include/drm/drm_edid…