Home
last modified time | relevance | path

Searched refs:color (Results 1 - 25 of 26) sorted by relevance

12

/drivers/peripheral/display/composer/test/common/
H A Dhdi_composition_check.cpp37 static void SimpleHandleAlpha(const LayerSettings& layers, uint32_t& color) in SimpleHandleAlpha() argument
45 color = (color & WHITE_TRANSPARENT) | (layers.alpha & ALPHA); // get the alpha in SimpleHandleAlpha()
48 color = color * (layers.alpha * INV); in SimpleHandleAlpha()
49 color = (color & WHITE_TRANSPARENT) | (layers.alpha & ALPHA); // get the alpha in SimpleHandleAlpha()
61 uint32_t color = 0; in GetCheckColors() local
69 color = layer.color; in GetCheckColors()
[all...]
H A Dhdi_test_render_utils.cpp30 void SetPixel(const BufferHandle& handle, int x, int y, uint32_t color) in SetPixel() argument
48 SetUint32(*pixel, color); in SetPixel()
51 void ClearColor(const BufferHandle& handle, uint32_t color) in ClearColor() argument
55 SetPixel(handle, x, y, color); in ClearColor()
H A Ddisplay_test_utils.cpp82 static uint32_t ConverToRGBA(Composer::V1_0::PixelFormat fmt, uint32_t color) in ConverToRGBA() argument
86 return BGRAToRGBA(color); in ConverToRGBA()
88 return color; in ConverToRGBA()
92 return color; in ConverToRGBA()
128 uint32_t CheckPixel(const BufferHandle &handle, int x, int y, uint32_t color) in CheckPixel() argument
149 if (checkColor != color) { in CheckPixel()
169 void SetPixel(const BufferHandle &handle, int x, int y, uint32_t color) in SetPixel() argument
189 SetUint32(*pixel, color); in SetPixel()
192 void ClearColor(const BufferHandle &handle, uint32_t color) in ClearColor() argument
196 SetPixel(handle, x, y, color); in ClearColor()
201 ClearColorRect(const BufferHandle &handle, uint32_t color, const IRect &rect) ClearColorRect() argument
[all...]
H A Ddisplay_test_utils.h60 uint32_t color; member
83 void SetPixel(const BufferHandle& handle, int x, int y, uint32_t color);
84 void ClearColor(const BufferHandle& handle, uint32_t color);
86 uint32_t CheckPixel(const BufferHandle& handle, int x, int y, uint32_t color);
H A Dhdi_test_render_utils.h25 void SetPixel(const BufferHandle& handle, int x, int y, uint32_t color);
26 void ClearColor(const BufferHandle& handle, uint32_t color);
/drivers/peripheral/display/composer/test/moduletest/
H A Dhdi_device_test.cpp43 .color = RED
49 .color = GREEN
55 .color = YELLOW
66 .color = RED
70 .color = GREEN
74 .color = YELLOW
85 .color = RED,
92 .color = GREEN,
99 .color = YELLOW,
110 .color
507 uint32_t color = splitColors[(i + startIndex) % 4]; TEST_P() local
[all...]
/drivers/hdf_core/framework/support/platform/src/hdmi/
H A Dhdmi_if.c151 static int32_t HdmiUserDeepColorSet(DevHandle handle, enum HdmiDeepColor color) in HdmiUserDeepColorSet() argument
162 buf = HdfSbufObtain(sizeof(color)); in HdmiUserDeepColorSet()
167 if (!HdfSbufWriteBuffer(buf, &color, sizeof(color))) { in HdmiUserDeepColorSet()
168 HDF_LOGE("HdmiUserDeepColorSet: sbuf write color failed"); in HdmiUserDeepColorSet()
282 static int32_t HdmiUserDeepColorGet(DevHandle handle, enum HdmiDeepColor *color) in HdmiUserDeepColorGet() argument
292 if (color == NULL) { in HdmiUserDeepColorGet()
297 reply = HdfSbufObtain(sizeof(*color) + sizeof(uint64_t)); in HdmiUserDeepColorGet()
308 ret = HdmiGetDataFromReply(reply, (uint8_t *)color, sizeof(*color)); in HdmiUserDeepColorGet()
487 HdmiDeepColorSet(DevHandle handle, enum HdmiDeepColor color) HdmiDeepColorSet() argument
496 HdmiDeepColorGet(DevHandle handle, enum HdmiDeepColor *color) HdmiDeepColorGet() argument
[all...]
H A Dhdmi_dispatch.c89 enum HdmiDeepColor *color = NULL; in HdmiCmdDeepColorSet() local
93 if (!HdfSbufReadBuffer(data, (const void **)&color, &size)) { in HdmiCmdDeepColorSet()
97 return HdmiCntlrDeepColorSet(cntlr, *color); in HdmiCmdDeepColorSet()
103 enum HdmiDeepColor color; in HdmiCmdDeepColorGet() local
110 ret = HdmiCntlrDeepColorGet(cntlr, &color); in HdmiCmdDeepColorGet()
115 if (HdfSbufWriteBuffer(reply, &color, sizeof(color)) == false) { in HdmiCmdDeepColorGet()
116 HDF_LOGE("HdmiCmdDeepColorGet: write back color fail!"); in HdmiCmdDeepColorGet()
H A Dhdmi_core.c770 * Video at the default 24-bit color depth is carried at a TMDS clock rate equal to the pixel clock rate. in HdmiTmdsClockUpdate()
984 HDF_LOGE("DVI mode, the color space is not RGB!"); in HdmiColorBitSelect()
1174 /* color space is ycbcr444 when the hdr mode is dolby. */ in HdmiFillCommonAttrFromHardwareStatus()
1196 HDF_LOGI("deep color not change: %u", curCommAttr->deepColor); in HdmiCommonAttrChanged()
1266 HDF_LOGD("attr update: color bit select fail."); in HdmiAttrUpdate()
1287 int32_t HdmiCntlrDeepColorSet(struct HdmiCntlr *cntlr, enum HdmiDeepColor color) in HdmiCntlrDeepColorSet() argument
1294 if (color != HDMI_DEEP_COLOR_24BITS && color != HDMI_DEEP_COLOR_OFF) { in HdmiCntlrDeepColorSet()
1295 HDF_LOGE("not support deepcolor %u when colorspace is ycbcr422.", color); in HdmiCntlrDeepColorSet()
1300 /* if the current hdmi mode is dolby, deep color se in HdmiCntlrDeepColorSet()
1314 HdmiCntlrDeepColorGet(struct HdmiCntlr *cntlr, enum HdmiDeepColor *color) HdmiCntlrDeepColorGet() argument
[all...]
/drivers/peripheral/display/composer/vdi_base/include/
H A Ddisplay_gfx.h45 * @brief Fills a rectangle with a given color on the canvas.
49 * @param color Indicates the color to fill.
55 int32_t (*FillRect)(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt);
58 * @brief Draws a rectangle with a given color on the canvas.
62 * @param color Indicates the color to draw.
68 int32_t (*DrawRectangle)(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt);
71 * @brief Draws a straight line with a given color on the canvas.
83 * @brief Draws a circle with a specified center and radius on the canvas using a given color
[all...]
H A Dhdi_layer.h137 void ClearColor(uint32_t color);
139 void SetPixel(const BufferHandle &handle, int x, int y, uint32_t color);
/drivers/peripheral/display/hal/default_standard/src/display_device/
H A Ddisplay_gfx.h45 * @brief Fills a rectangle with a given color on the canvas.
49 * @param color Indicates the color to fill.
55 int32_t (*FillRect)(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt);
58 * @brief Draws a rectangle with a given color on the canvas.
62 * @param color Indicates the color to draw.
68 int32_t (*DrawRectangle)(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt);
71 * @brief Draws a straight line with a given color on the canvas.
83 * @brief Draws a circle with a specified center and radius on the canvas using a given color
[all...]
/drivers/peripheral/display/interfaces/include/
H A Ddisplay_gfx.h73 * @brief Fills a rectangle with a given color on the canvas.
77 * @param color Indicates the color to fill.
85 int32_t (*FillRect)(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt);
88 * @brief Draws a rectangle with a given color on the canvas.
92 * @param color Indicates the color to draw.
100 int32_t (*DrawRectangle)(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt);
103 * @brief Draws a straight line with a given color on the canvas.
117 * @brief Draws a circle with a specified center and radius on the canvas using a given color
[all...]
H A Ddisplay_vgu.h159 VGU_SPREAD_PAD = 0, /* < The area is filled with the closest gradient stop color. (Default value) */
281 uint32_t color; /* < Color of the stop */ member
355 VGUColorStop *colorStops; /* < Pointer to the gradient stop color array */
368 * @brief Defines a solid color.
372 uint32_t color; /* < Solid color */ member
381 VGU_PAINT_SOLID = 0, /* < Paint a solid color. */
395 VGUSolid *solid; /* < Pointer to the solid color object */
503 * During bit blit, color space conversion (CSC) and transformation can be implemented.
507 * @param color Indicate
[all...]
H A Ddisplay_type.h214 * ROP performs bitwise Boolean operations (including bitwise AND and bitwise OR) on the RGB color and
239 * @brief Enumerates color key types supported by hardware acceleration.
243 CKEY_NONE = 0, /**< No color key */
244 CKEY_SRC, /**< Source color key */
245 CKEY_DST, /**< Destination color key */
352 bool bYCbCrClut; /**< Whether the color lookup table (CLUT) is in the YCbCr space */
359 uint64_t clutPhyAddr; /**< Start physical address of the CLUT, used for color extension or correction */
371 uint32_t color; /**< Line color */ member
382 uint32_t color; /**< Circl member
391 uint32_t color; /**< Rectangle color */ global() member
[all...]
/drivers/peripheral/display/composer/test/unittest/
H A Dhdi_composer_ut.cpp65 DISPLAY_TEST_LOGD("color 0x%x", setting.color); in CreateTestLayer()
84 ClearColor(*(handle->Get()), setting.color); in CreateTestLayer()
475 .color = RED in HWTEST_F()
489 settings[0].color = splitColors[i]; in HWTEST_F()
502 .color = RED in HWTEST_F()
506 .color = GREEN in HWTEST_F()
510 .color = YELLOW in HWTEST_F()
539 .color = GREEN in HWTEST_F()
563 .color in HWTEST_F()
[all...]
/drivers/peripheral/display/hal/default_standard/src/display_device/core/
H A Dhdi_layer.cpp183 void HdiLayer::SetPixel(const BufferHandle &handle, int x, int y, uint32_t color) in SetPixel() argument
199 *pixel = color; in SetPixel()
202 void HdiLayer::ClearColor(uint32_t color) in ClearColor() argument
208 SetPixel(handle, x, y, color); in ClearColor()
H A Dhdi_layer.h158 void ClearColor(uint32_t color);
160 void SetPixel(const BufferHandle &handle, int x, int y, uint32_t color);
/drivers/hdf_core/framework/support/platform/test/unittest/common/
H A Dhdf_hdmi_test.cpp110 enum HdmiDeepColor color = HDMI_DEEP_COLOR_24BITS; in HdmiUserTest() local
133 ret = HdmiDeepColorGet(handle, &color); in HdmiUserTest()
137 printf("HdmiDeepColorGet success, color = %d.", color); in HdmiUserTest()
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Dhdmi_test.c142 enum HdmiDeepColor color = HDMI_DEEP_COLOR_BUTT; in TestHdmiDeepColorSetAndGet() local
148 ret = HdmiDeepColorGet(tester->handle, &color); in TestHdmiDeepColorSetAndGet()
152 HDF_LOGD("TestHdmiDeepColorSetAndGet: HdmiDeepColorGet success, color = %d!", color); in TestHdmiDeepColorSetAndGet()
/drivers/peripheral/display/composer/vdi_base/src/
H A Dhdi_layer.cpp238 void HdiLayer::SetPixel(const BufferHandle &handle, int x, int y, uint32_t color) in SetPixel() argument
253 *pixel = color; in SetPixel()
256 void HdiLayer::ClearColor(uint32_t color) in ClearColor() argument
262 SetPixel(handle, x, y, color); in ClearColor()
/drivers/hdf_core/framework/include/platform/
H A Dhdmi_if.h49 * @brief Enumerates deep color,
78 * @brief Enumerates color space,
685 * @brief HDMI deep color set.
688 * @param color Indicates the deep color to be set, see {@link HdmiDeepColor}.
694 int32_t HdmiDeepColorSet(DevHandle handle, enum HdmiDeepColor color);
697 * @brief HDMI deep color get.
700 * @param color Indicates the pointer to the deep color to read, see {@link HdmiDeepColor}.
706 int32_t HdmiDeepColorGet(DevHandle handle, enum HdmiDeepColor *color);
[all...]
/drivers/hdf_core/framework/tools/hcs-view/hcsVSCode/
H A Dextension.js69 const color = new vscode.ThemeColor('badge.colorTheme');
/drivers/hdf_core/framework/support/platform/include/hdmi/
H A Dhdmi_core.h41 enum HdmiDeepColor deepColor; /* deep color(color depth) */
74 uint32_t deepColor10bits : 1; /* bit14: support deep color 10 bits */
75 uint32_t deepColor12bits : 1; /* bit15: support deep color 12 bits */
76 uint32_t deepColor16bits : 1; /* bit16: support deep color 16 bits */
362 int32_t HdmiCntlrDeepColorSet(struct HdmiCntlr *cntlr, enum HdmiDeepColor color);
363 int32_t HdmiCntlrDeepColorGet(struct HdmiCntlr *cntlr, enum HdmiDeepColor *color);
/drivers/peripheral/light/test/unittest/hdi/
H A Dhdi_unittest_light.cpp644 struct HdfLightColor color = { in HWTEST_F() local
650 lightColor.push_back(color); in HWTEST_F()

Completed in 17 milliseconds

12