Home
last modified time | relevance | path

Searched refs:pFormat (Results 1 – 18 of 18) sorted by relevance

/OK3568_Linux_fs/external/xserver/render/
H A Dmiindex.c228 miInitIndexed(ScreenPtr pScreen, PictFormatPtr pFormat) in miInitIndexed() argument
230 ColormapPtr pColormap = pFormat->index.pColormap; in miInitIndexed()
256 pFormat->index.nvalues = num; in miInitIndexed()
257 pFormat->index.pValues = xallocarray(num, sizeof(xIndexValue)); in miInitIndexed()
258 if (!pFormat->index.pValues) { in miInitIndexed()
269 pFormat->index.pValues[i].pixel = p; in miInitIndexed()
270 pFormat->index.pValues[i].red = rgb[i].red; in miInitIndexed()
271 pFormat->index.pValues[i].green = rgb[i].green; in miInitIndexed()
272 pFormat->index.pValues[i].blue = rgb[i].blue; in miInitIndexed()
273 pFormat->index.pValues[i].alpha = 0xffff; in miInitIndexed()
[all …]
H A Drender.c320 PictFormatPtr pFormat; in ProcRenderQueryPictFormats() local
387 for (nformat = 0, pFormat = ps->formats; in ProcRenderQueryPictFormats()
388 nformat < ps->nformats; nformat++, pFormat++) { in ProcRenderQueryPictFormats()
389 pictForm->id = pFormat->id; in ProcRenderQueryPictFormats()
390 pictForm->type = pFormat->type; in ProcRenderQueryPictFormats()
391 pictForm->depth = pFormat->depth; in ProcRenderQueryPictFormats()
392 pictForm->direct.red = pFormat->direct.red; in ProcRenderQueryPictFormats()
393 pictForm->direct.redMask = pFormat->direct.redMask; in ProcRenderQueryPictFormats()
394 pictForm->direct.green = pFormat->direct.green; in ProcRenderQueryPictFormats()
395 pictForm->direct.greenMask = pFormat->direct.greenMask; in ProcRenderQueryPictFormats()
[all …]
H A Dmipict.h114 miInitIndexed(ScreenPtr pScreen, PictFormatPtr pFormat);
117 miCloseIndexed(ScreenPtr pScreen, PictFormatPtr pFormat);
122 PictFormatPtr pFormat, int ndef, xColorItem * pdef);
H A Dpicturestr.h126 PictFormatPtr pFormat; member
263 typedef Bool (*InitIndexedProcPtr) (ScreenPtr pScreen, PictFormatPtr pFormat);
265 typedef void (*CloseIndexedProcPtr) (ScreenPtr pScreen, PictFormatPtr pFormat);
268 PictFormatPtr pFormat,
433 PictFormatPtr pFormat,
H A Dmirect.c48 miRenderColorToPixel(pDst->pFormat, color, &pixel); in miColorRects()
H A Dpicture.c747 PictFormatPtr pFormat, in CreatePicture() argument
762 pPicture->pFormat = pFormat; in CreatePicture()
763 pPicture->format = pFormat->format | (pDrawable->bitsPerPixel << 24); in CreatePicture()
850 pPicture->pFormat = 0; in createSourcePicture()
/OK3568_Linux_fs/external/xserver/hw/dmx/
H A Ddmxpict.c178 XRenderPictFormat *pFormat = NULL; in dmxFindFormat() local
182 return pFormat; in dmxFindFormat()
185 pFormat = XRenderFindFormat(dmxScreen->beDisplay, 0, 0, i++); in dmxFindFormat()
186 if (!pFormat) in dmxFindFormat()
189 if (pFormat->type != pFmt->type) in dmxFindFormat()
191 if (pFormat->depth != pFmt->depth) in dmxFindFormat()
193 if (pFormat->direct.red != pFmt->direct.red) in dmxFindFormat()
195 if (pFormat->direct.redMask != pFmt->direct.redMask) in dmxFindFormat()
197 if (pFormat->direct.green != pFmt->direct.green) in dmxFindFormat()
199 if (pFormat->direct.greenMask != pFmt->direct.greenMask) in dmxFindFormat()
[all …]
H A Ddmxpict.h86 extern Bool dmxInitIndexed(ScreenPtr pScreen, PictFormatPtr pFormat);
87 extern void dmxCloseIndexed(ScreenPtr pScreen, PictFormatPtr pFormat);
88 extern void dmxUpdateIndexed(ScreenPtr pScreen, PictFormatPtr pFormat,
/OK3568_Linux_fs/external/xserver/exa/
H A Dexa_render.c146 CARD16 blue, CARD16 alpha, PictFormatPtr pFormat) in exaGetPixelFromRGBA() argument
153 if (!PICT_FORMAT_COLOR(pFormat->format) && in exaGetPixelFromRGBA()
154 PICT_FORMAT_TYPE(pFormat->format) != PICT_TYPE_A) in exaGetPixelFromRGBA()
157 rbits = PICT_FORMAT_R(pFormat->format); in exaGetPixelFromRGBA()
158 gbits = PICT_FORMAT_G(pFormat->format); in exaGetPixelFromRGBA()
159 bbits = PICT_FORMAT_B(pFormat->format); in exaGetPixelFromRGBA()
160 abits = PICT_FORMAT_A(pFormat->format); in exaGetPixelFromRGBA()
162 rshift = pFormat->direct.red; in exaGetPixelFromRGBA()
163 gshift = pFormat->direct.green; in exaGetPixelFromRGBA()
164 bshift = pFormat->direct.blue; in exaGetPixelFromRGBA()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xwayland/
H A Dxwayland-glamor-xv.c195 XvFormatPtr pFormat, pf; in xwl_glamor_xv_add_formats() local
203 pFormat = xnfcalloc(totFormat, sizeof(XvFormatRec)); in xwl_glamor_xv_add_formats()
205 for (pf = pFormat, i = 0, numFormat = 0; i < NUM_FORMATS; i++) { in xwl_glamor_xv_add_formats()
216 moreSpace = xnfreallocarray(pFormat, totFormat, in xwl_glamor_xv_add_formats()
218 pFormat = moreSpace; in xwl_glamor_xv_add_formats()
219 pf = pFormat + numFormat; in xwl_glamor_xv_add_formats()
232 pa->pFormats = pFormat; in xwl_glamor_xv_add_formats()
/OK3568_Linux_fs/external/xserver/mi/
H A Dmidispcur.c162 PictFormatPtr pFormat; in miDCMakePicture() local
167 pFormat = PictureWindowFormat(pWin); in miDCMakePicture()
168 if (!pFormat) in miDCMakePicture()
170 pPicture = CreatePicture(0, pDraw, pFormat, in miDCMakePicture()
190 PictFormatPtr pFormat; in miDCRealize() local
194 pFormat = PictureMatchFormat(pScreen, 32, PICT_a8r8g8b8); in miDCRealize()
195 if (!pFormat) in miDCRealize()
216 pFormat, 0, 0, serverClient, &error); in miDCRealize()
/OK3568_Linux_fs/external/xserver/hw/kdrive/src/
H A Dkxv.c200 XvFormatPtr pFormat, pf; in KdXVInitAdaptors() local
301 if (!(pFormat = calloc(totFormat, sizeof(XvFormatRec)))) { in KdXVInitAdaptors()
305 for (pf = pFormat, i = 0, numFormat = 0, formatPtr = in KdXVInitAdaptors()
318 moreSpace = reallocarray(pFormat, totFormat, in KdXVInitAdaptors()
322 pFormat = moreSpace; in KdXVInitAdaptors()
323 pf = pFormat + numFormat; in KdXVInitAdaptors()
336 pa->pFormats = pFormat; in KdXVInitAdaptors()
/OK3568_Linux_fs/external/xserver/glamor/
H A Dglamor_render.c1335 PictFormatPtr pFormat; in glamor_convert_gradient_picture() local
1339 pFormat = source->pFormat; in glamor_convert_gradient_picture()
1340 format = pFormat->format; in glamor_convert_gradient_picture()
1343 pFormat = PictureMatchFormat(screen, 32, format); in glamor_convert_gradient_picture()
1375 &pixmap->drawable, pFormat, 0, 0, serverClient, &error); in glamor_convert_gradient_picture()
H A Dglamor_compositerects.c243 miRenderColorToPixel(dst->pFormat, color, &pixel); in glamor_composite_rectangles()
/OK3568_Linux_fs/external/xserver/fb/
H A Dfbpict.c324 if (pict->pFormat->index.devPrivate) in create_bits_picture()
325 pixman_image_set_indexed(image, pict->pFormat->index.devPrivate); in create_bits_picture()
/OK3568_Linux_fs/external/xserver/hw/xfree86/common/
H A Dxf86xv.c321 XvFormatPtr pFormat, pf; in xf86XVInitAdaptors() local
422 if (!(pFormat = calloc(totFormat, sizeof(XvFormatRec)))) { in xf86XVInitAdaptors()
426 for (pf = pFormat, i = 0, numFormat = 0, formatPtr = in xf86XVInitAdaptors()
439 moreSpace = reallocarray(pFormat, totFormat, in xf86XVInitAdaptors()
443 pFormat = moreSpace; in xf86XVInitAdaptors()
444 pf = pFormat + numFormat; in xf86XVInitAdaptors()
457 pa->pFormats = pFormat; in xf86XVInitAdaptors()
/OK3568_Linux_fs/external/xserver/Xext/
H A Dxvdisp.c124 SWriteFormat(ClientPtr client, xvFormat * pFormat) in SWriteFormat() argument
126 swapl(&pFormat->visual); in SWriteFormat()
127 WriteToClient(client, sz_xvFormat, pFormat); in SWriteFormat()
/OK3568_Linux_fs/external/xserver/
H A DChangeLog5739 Their pFormat member is NULL, which resulted in a crash in
30462 Instead of trying to look up from the screen, just use the pFormat
120254 Solid pictures have a NULL pFormat field, but their format is always