Home
last modified time | relevance | path

Searched refs:PixelFormat (Results 1 - 25 of 132) sorted by relevance

123456

/third_party/backends/backend/genesys/
H A Dimage_pixel.cpp31 PixelFormat format;
38 { PixelFormat::I1, 1, 1, ColorOrder::RGB },
39 { PixelFormat::I8, 8, 1, ColorOrder::RGB },
40 { PixelFormat::I16, 16, 1, ColorOrder::RGB },
41 { PixelFormat::RGB111, 1, 3, ColorOrder::RGB },
42 { PixelFormat::RGB888, 8, 3, ColorOrder::RGB },
43 { PixelFormat::RGB161616, 16, 3, ColorOrder::RGB },
44 { PixelFormat::BGR888, 8, 3, ColorOrder::BGR },
45 { PixelFormat::BGR161616, 16, 3, ColorOrder::BGR },
49 ColorOrder get_pixel_format_color_order(PixelFormat forma
[all...]
H A Dimage.cpp35 Image::Image(std::size_t width, std::size_t height, PixelFormat format) : in Image()
79 void Image::resize(std::size_t width, std::size_t height, PixelFormat format) in resize()
88 template<PixelFormat SrcFormat, PixelFormat DstFormat>
98 template<PixelFormat SrcFormat>
100 PixelFormat out_format, std::size_t count) in convert_pixel_row_impl()
103 case PixelFormat::I1: { in convert_pixel_row_impl()
104 convert_pixel_row_impl2<SrcFormat, PixelFormat::I1>(in_data, out_data, count); in convert_pixel_row_impl()
107 case PixelFormat::RGB111: { in convert_pixel_row_impl()
108 convert_pixel_row_impl2<SrcFormat, PixelFormat in convert_pixel_row_impl()
[all...]
H A Dimage_pixel.h32 enum class PixelFormat class
78 ColorOrder get_pixel_format_color_order(PixelFormat format);
79 unsigned get_pixel_format_depth(PixelFormat format);
80 unsigned get_pixel_channels(PixelFormat format);
81 std::size_t get_pixel_row_bytes(PixelFormat format, std::size_t width);
83 std::size_t get_pixels_from_row_bytes(PixelFormat format, std::size_t row_bytes);
85 PixelFormat create_pixel_format(unsigned depth, unsigned channels, ColorOrder order);
88 Pixel get_pixel_from_row(const std::uint8_t* data, std::size_t x, PixelFormat format);
89 void set_pixel_to_row(std::uint8_t* data, std::size_t x, Pixel pixel, PixelFormat format);
93 RawPixel get_raw_pixel_from_row(const std::uint8_t* data, std::size_t x, PixelFormat forma
[all...]
H A Dimage_pipeline.h41 virtual PixelFormat get_format() const = 0;
61 ImagePipelineNodeCallableSource(std::size_t width, std::size_t height, PixelFormat format, in ImagePipelineNodeCallableSource()
71 PixelFormat get_format() const override { return format_; }
81 PixelFormat format_ = PixelFormat::UNKNOWN;
92 PixelFormat format, std::size_t input_batch_size,
97 PixelFormat get_format() const override { return format_; }
111 PixelFormat format_ = PixelFormat::UNKNOWN;
123 ImagePipelineNodeArraySource(std::size_t width, std::size_t height, PixelFormat forma
[all...]
H A Dimage_pipeline.cpp42 std::size_t width, std::size_t height, PixelFormat format, std::size_t input_batch_size, in ImagePipelineNodeBufferedCallableSource()
72 PixelFormat format, in ImagePipelineNodeArraySource()
323 PixelFormat ImagePipelineNodeMergeMonoLinesToColor::get_output_format(PixelFormat input_format, in get_output_format()
327 case PixelFormat::I1: { in get_output_format()
329 return PixelFormat::RGB111; in get_output_format()
333 case PixelFormat::I8: { in get_output_format()
335 return PixelFormat::RGB888; in get_output_format()
338 return PixelFormat::BGR888; in get_output_format()
342 case PixelFormat in get_output_format()
[all...]
H A Dimage.h33 Image(std::size_t width, std::size_t height, PixelFormat format);
37 PixelFormat get_format() const { return format_; } in get_format()
50 void resize(std::size_t width, std::size_t height, PixelFormat format);
54 PixelFormat format_ = PixelFormat::UNKNOWN;
59 void convert_pixel_row_format(const std::uint8_t* in_data, PixelFormat in_format,
60 std::uint8_t* out_data, PixelFormat out_format, std::size_t count);
H A Dlow.cpp431 if (pipeline.get_output_format() == PixelFormat::BGR888) { in read_unshuffled_image_from_scanner()
432 pipeline.push_node<ImagePipelineNodeFormatConvert>(PixelFormat::RGB888); in read_unshuffled_image_from_scanner()
435 if (pipeline.get_output_format() == PixelFormat::BGR161616) { in read_unshuffled_image_from_scanner()
436 pipeline.push_node<ImagePipelineNodeFormatConvert>(PixelFormat::RGB161616); in read_unshuffled_image_from_scanner()
529 if (pipeline.get_output_format() == PixelFormat::BGR888) { in read_shuffled_image_from_scanner()
530 pipeline.push_node<ImagePipelineNodeFormatConvert>(PixelFormat::RGB888); in read_shuffled_image_from_scanner()
533 if (pipeline.get_output_format() == PixelFormat::BGR161616) { in read_shuffled_image_from_scanner()
534 pipeline.push_node<ImagePipelineNodeFormatConvert>(PixelFormat::RGB161616); in read_shuffled_image_from_scanner()
1213 if (pipeline.get_output_format() == PixelFormat::BGR888) { in build_image_pipeline()
1214 pipeline.push_node<ImagePipelineNodeFormatConvert>(PixelFormat in build_image_pipeline()
[all...]
/third_party/backends/testsuite/backend/genesys/
H A Dtests_image.cpp39 ASSERT_EQ(get_pixel_from_row(data.data(), 0, PixelFormat::I1), in test_get_pixel_from_row()
41 ASSERT_EQ(get_pixel_from_row(data.data(), 3, PixelFormat::I1), in test_get_pixel_from_row()
43 ASSERT_EQ(get_pixel_from_row(data.data(), 0, PixelFormat::RGB111), in test_get_pixel_from_row()
45 ASSERT_EQ(get_pixel_from_row(data.data(), 1, PixelFormat::RGB111), in test_get_pixel_from_row()
47 ASSERT_EQ(get_pixel_from_row(data.data(), 2, PixelFormat::RGB111), in test_get_pixel_from_row()
49 ASSERT_EQ(get_pixel_from_row(data.data(), 3, PixelFormat::RGB111), in test_get_pixel_from_row()
51 ASSERT_EQ(get_pixel_from_row(data.data(), 0, PixelFormat::I8), in test_get_pixel_from_row()
53 ASSERT_EQ(get_pixel_from_row(data.data(), 1, PixelFormat::I8), in test_get_pixel_from_row()
55 ASSERT_EQ(get_pixel_from_row(data.data(), 0, PixelFormat::RGB888), in test_get_pixel_from_row()
57 ASSERT_EQ(get_pixel_from_row(data.data(), 1, PixelFormat in test_get_pixel_from_row()
[all...]
H A Dtests_image_pipeline.cpp193 stack.push_first_node<ImagePipelineNodeBufferedCallableSource>(4, 3, PixelFormat::I8, in test_node_buffered_callable_source()
225 stack.push_first_node<ImagePipelineNodeArraySource>(3, 1, PixelFormat::RGB888, in test_node_format_convert()
227 stack.push_node<ImagePipelineNodeFormatConvert>(PixelFormat::BGR161616); in test_node_format_convert()
232 ASSERT_EQ(stack.get_output_format(), PixelFormat::BGR161616); in test_node_format_convert()
261 stack.push_first_node<ImagePipelineNodeArraySource>(20, 2, PixelFormat::I8, in test_node_desegment_1_line()
268 ASSERT_EQ(stack.get_output_format(), PixelFormat::I8); in test_node_desegment_1_line()
289 stack.push_first_node<ImagePipelineNodeArraySource>(10, 2, PixelFormat::I8, in test_node_deinterleave_lines_i8()
296 ASSERT_EQ(stack.get_output_format(), PixelFormat::I8); in test_node_deinterleave_lines_i8()
317 stack.push_first_node<ImagePipelineNodeArraySource>(4, 2, PixelFormat::RGB888, in test_node_deinterleave_lines_rgb888()
324 ASSERT_EQ(stack.get_output_format(), PixelFormat in test_node_deinterleave_lines_rgb888()
[all...]
H A Dtests_printers.h37 inline std::ostream& operator<<(std::ostream& str, const genesys::PixelFormat& arg) in operator <<()
/third_party/vk-gl-cts/framework/common/
H A DtcuPixelFormat.hpp35 struct PixelFormat struct
42 PixelFormat (int red, int green, int blue, int alpha) in PixelFormat() function
50 PixelFormat (void) in PixelFormat() function
125 inline bool operator== (const PixelFormat& other) const in operator ==()
133 inline bool operator!= (const PixelFormat& other) const in operator !=()
H A DtcuRenderTarget.hpp39 RenderTarget (int width, int height, const PixelFormat& pixelFormat, int depthBits, int stencilBits, int numSamples);
42 const PixelFormat& getPixelFormat (void) const { return m_pixelFormat; } in getPixelFormat()
54 PixelFormat m_pixelFormat;
H A DtcuSurfaceAccess.hpp34 inline deUint8 getColorMask (const tcu::PixelFormat& format) in getColorMask()
53 SurfaceAccess (tcu::Surface& surface, const tcu::PixelFormat& colorFmt);
54 SurfaceAccess (tcu::Surface& surface, const tcu::PixelFormat& colorFmt, int x, int y, int width, int height);
H A DtcuRenderTarget.cpp32 , m_pixelFormat (PixelFormat(0, 0, 0, 0)) in RenderTarget()
39 RenderTarget::RenderTarget (int width, int height, const PixelFormat& format, int depthBits, int stencilBits, int numSamples) in RenderTarget()
H A DtcuSurfaceAccess.cpp28 SurfaceAccess::SurfaceAccess (tcu::Surface& surface, const tcu::PixelFormat& colorFmt, int x, int y, int width, int height) in SurfaceAccess()
38 SurfaceAccess::SurfaceAccess (tcu::Surface& surface, const tcu::PixelFormat& colorFmt) in SurfaceAccess()
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcNearestEdgeTests.cpp77 static tcu::TextureFormat toTextureFormat (deqp::Context& context, const tcu::PixelFormat& pixelFmt);
91 const tcu::PixelFormat& m_format;
127 tcu::TextureFormat NearestEdgeTestCase::toTextureFormat (deqp::Context& context, const tcu::PixelFormat& pixelFmt) in toTextureFormat()
131 tcu::PixelFormat pixelFmt; in toTextureFormat()
135 { tcu::PixelFormat(8,8,8,8), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8) }, in toTextureFormat()
136 { tcu::PixelFormat(8,8,8,0), tcu::TextureFormat(tcu::TextureFormat::RGB, tcu::TextureFormat::UNORM_INT8) }, in toTextureFormat()
137 { tcu::PixelFormat(4,4,4,4), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_SHORT_4444) }, in toTextureFormat()
138 { tcu::PixelFormat(5,5,5,1), tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_SHORT_5551) }, in toTextureFormat()
139 { tcu::PixelFormat(5,6,5,0), tcu::TextureFormat(tcu::TextureFormat::RGB, tcu::TextureFormat::UNORM_SHORT_565) }, in toTextureFormat()
140 { tcu::PixelFormat(1 in toTextureFormat()
[all...]
H A DglcPackedPixelsTests.cpp102 struct PixelFormat struct
303 static const PixelFormat coreFormats[] = {
325 static const PixelFormat esFormats[] = {
731 bool isFormatValid(const PixelFormat& format, const PixelType& type, const struct InternalFormat& internalformat,
739 const PixelFormat& getPixelFormat(GLenum format) const;
742 InternalFormatSamplerType getSampler(const PixelType& type, const PixelFormat& format) const;
744 GLenum readOutputData(const PixelFormat& outputFormat, const PixelType& outputType, int operation);
750 bool compare(GLvoid* gradient, GLvoid* data, const PixelFormat& outputFormat, const PixelType& outputType,
753 void getFloatBuffer(GLvoid* gradient, int samplerIsIntUintFloat, const PixelFormat& format, const PixelType& type,
756 void getBits(const PixelType& type, const PixelFormat
[all...]
/third_party/skia/experimental/graphite/include/mtl/
H A DMtlTypes.h34 using PixelFormat = unsigned int;
45 PixelFormat fFormat = 0; // MTLPixelFormat fFormat = MTLPixelFormatInvalid;
54 PixelFormat format, in TextureInfo()
/third_party/vk-gl-cts/framework/opengl/
H A DgluTextureTestUtil.hpp286 const tcu::PixelFormat& pixelFormat);
295 const tcu::PixelFormat& pixelFormat);
304 const tcu::PixelFormat& pixelFormat);
313 const tcu::PixelFormat& pixelFormat);
322 const tcu::PixelFormat& pixelFormat);
331 const tcu::PixelFormat& pixelFormat);
341 const tcu::PixelFormat& pixelFormat);
403 inline tcu::IVec4 getBitsVec (const tcu::PixelFormat& format) in getBitsVec()
408 inline tcu::BVec4 getCompareMask (const tcu::PixelFormat& format) in getCompareMask()
H A DgluFboRenderContext.cpp64 static tcu::PixelFormat getPixelFormat (deUint32 colorFormat) in getPixelFormat()
67 return tcu::PixelFormat(bits[0], bits[1], bits[2], bits[3]); in getPixelFormat()
219 tcu::PixelFormat pixelFormat; in createFramebuffer()
/third_party/skia/src/utils/win/
H A DSkWGL_win.cpp107 struct PixelFormat { struct
113 bool pf_less(const PixelFormat& a, const PixelFormat& b) { in pf_less()
133 PixelFormat desiredFormat = { in selectFormat()
138 SkTDArray<PixelFormat> rankedFormats; in selectFormat()
154 int idx = SkTSearch<PixelFormat, pf_less>(rankedFormats.begin(), in selectFormat()
157 sizeof(PixelFormat)); in selectFormat()
/third_party/libdrm/tests/tegra/
H A Dvic30.c74 c->blending0Struct.PixelFormat = output->format; in vic30_fill()
129 c->blending0Struct.PixelFormat = output->format; in vic30_blit()
164 s->PixelFormat = input->format; in vic30_blit()
237 c->blending0Struct.PixelFormat = output->format; in vic30_flip()
273 s->PixelFormat = input->format; in vic30_flip()
/third_party/vk-gl-cts/modules/egl/
H A DteglColorClearCase.cpp101 static void renderReference (tcu::Surface& dst, const vector<ClearOp>& clears, const tcu::PixelFormat& pixelFormat) in renderReference()
149 static tcu::PixelFormat getPixelFormat (const Library& egl, EGLDisplay display, EGLConfig config) in getPixelFormat()
151 tcu::PixelFormat pixelFmt; in getPixelFormat()
180 tcu::PixelFormat pixelFmt = getPixelFormat(egl, display, config.config); in executeForContexts()
343 tcu::PixelFormat pixelFmt = getPixelFormat(egl, display, config.config); in executeForContexts()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fTextureSizeTests.cpp127 const tcu::PixelFormat& rtFmt = m_renderCtx.getRenderTarget().getPixelFormat(); in iterate()
128 const tcu::PixelFormat thresholdFormat(de::min(texBits[0], rtFmt.redBits), de::min(texBits[1], rtFmt.greenBits), de::min(texBits[2], rtFmt.blueBits), de::min(texBits[3], rtFmt.alphaBits)); in iterate()
275 const tcu::PixelFormat& rtFmt = m_renderCtx.getRenderTarget().getPixelFormat(); in testFace()
276 const tcu::PixelFormat thresholdFormat(de::min(texBits[0], rtFmt.redBits), de::min(texBits[1], rtFmt.greenBits), de::min(texBits[2], rtFmt.blueBits), de::min(texBits[3], rtFmt.alphaBits)); in testFace()
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fTextureSizeTests.cpp126 const tcu::PixelFormat& rtFmt = m_renderCtx.getRenderTarget().getPixelFormat(); in iterate()
127 const tcu::PixelFormat thresholdFormat(de::min(texBits[0], rtFmt.redBits), de::min(texBits[1], rtFmt.greenBits), de::min(texBits[2], rtFmt.blueBits), de::min(texBits[3], rtFmt.alphaBits)); in iterate()
274 const tcu::PixelFormat& rtFmt = m_renderCtx.getRenderTarget().getPixelFormat(); in testFace()
275 const tcu::PixelFormat thresholdFormat(de::min(texBits[0], rtFmt.redBits), de::min(texBits[1], rtFmt.greenBits), de::min(texBits[2], rtFmt.blueBits), de::min(texBits[3], rtFmt.alphaBits)); in testFace()

Completed in 17 milliseconds

123456