Questions tagged [pixman]

Pixman is a low-level software library for pixel manipulation, providing features such as image compositing and trapezoid rasterization.

From the docs:

Pixman is a low-level software library for pixel manipulation, providing features such as image compositing and trapezoid rasterization. Important users of pixman are the cairo graphics library and the X server.

Pixman is implemented as a library in the C programming language. It runs on many platforms, including Linux, BSD Derivatives, MacOS X, and Windows.

Pixman is free and open source software. It is available to be redistributed and/or modified under the terms of the MIT license.

15 questions
6
votes
1 answer

Fix pixman_region_init_rect bug

I know this is a bug that has been around for a while and fixed. But my situation seems to be a little different. When I open say a text file in gedit via terminal, I receive this error: *** BUG *** In pixman_region32_init_rect: Invalid rectangle…
Thomas.R
  • 85
  • 1
  • 9
3
votes
1 answer

Pixman compositing vs. alpha blending

Below is a small test program (works on little endian machines). As is, the result is already strange to me : in: r=20 g=20 b=80 a=FF (#202080FF, ok!) out: r=90 g=90 b=C0 a=FF (#9090C0FF, strange...) Where as I expected the fill color #FFFFFFFF x…
Eric Nicolas
  • 1,507
  • 3
  • 17
  • 24
2
votes
1 answer

Can a program with an empty main() allocate memory?

I have been chasing a memory problem in my program that links against -lcairo and -lX11. Finally, I decided to comment out all lines in my main() and make sure that valgrind is happy. To my surprise, it is not: ==7570== Memcheck, a memory error…
AlwaysLearning
  • 7,257
  • 4
  • 33
  • 68
2
votes
1 answer

is there a way to disable pixman completely

I have pixman installed on my arm target, for bench-marking purposes i want to disable pixman completely(if that is even possible !). Is there a way to do this nicely without actually removing it. I know of the PIXMAN_DISABLE flag, but will that…
maheshg
  • 339
  • 2
  • 7
  • 17
1
vote
2 answers

Where is the implementation of pixman_region32_init()?

lib: http://www.pixman.org/ repository: https://cgit.freedesktop.org/pixman/tree/ void pixman_region32_init (pixman_region32_t *region); I can not find an implementation of that function.. thanks...
1
vote
1 answer

jhbuild bootstrap doesn't see brew's pixman

I'm trying to install some missing dependencies for Mac OS (10.11.6 El Capitan) following this guide There is a problem with pixman: jhbuild bootstrap Pixman is already installed and linked via brew, but jhbuild tries to build it anyway and fails…
T0f
  • 143
  • 1
  • 1
  • 10
1
vote
1 answer

pixman 0.34.0 ios, android build

I'm trying to build pixman-0.34.0 (http://cairographics.org/releases/) for iOS and Android. There list of options for ./configure script: --disable-libtool-lock avoid locking --disable-openmp do not use OpenMP --disable-loongson-mmi …
xrom888
  • 41
  • 1
  • 4
1
vote
1 answer

Draw linear gradient at a certain angle

I'm trying to draw linear gradients with libpixman using the pixman_image_create_linear_gradient() function. It works fine for drawing gradients that run from left to right and from top to bottom but I don't see how I can draw gradients at a…
Andreas
  • 9,245
  • 9
  • 49
  • 97
1
vote
1 answer

How to modify alpha premultiplied image opacity?

I have an alpha premultiplied image that requires changing the opacity of it. The opacity change applied to the image can be from 0.0 to 1.0. This process is easy to achieve using the following formula: Cn = C*alpha; An = A*alpha; However, I'm…
Jona
  • 13,325
  • 15
  • 86
  • 129
0
votes
0 answers

How to differentiate between multiple config.h headers in meson.build subprojects?

I am currently developing a library in C, using meson.build. The library contains several dependencies and I'm using wrap-files and fallback-arguments in the meson-build to integrate these dependencies as subprojects. I'm now aiming to build the…
0
votes
1 answer

Errors about asm for a gcc build on macos

I used to build a project on windows and now that I am trying to build it on macos (M1) I get errors on a dependency (nested in a dependency): pixman-0.34.0/pixman/pixman-x86.c:103:4: error: unknown register name '%eax' in asm : "%eax",…
ymoreau
  • 3,402
  • 1
  • 22
  • 60
0
votes
0 answers

How to compile Cairo in old Debian

I'm looking for a way to run latest mono with latest libgdiplus in old Debian. Latest libgdiplus requires new Cairo library. I tried to compile Cairo using cd /usr/local/src tar -xvf pixman-0.38.4.tar.gz cd pixman-0.38.4 ./configure…
Andrus
  • 26,339
  • 60
  • 204
  • 378
0
votes
0 answers

Issue with X11 rendering text on Ubuntu 18.04

I have a piece of code, that displays a text on screen. The same code when ran on Ubuntu 16.04 with Xserver version 1.18.4 displayed proper output, but when compiled and ran on Ubuntu 18.04 with Xserver version 1.20.4 , it just displays a white…
0
votes
1 answer

Static libpixman-1.a Linking Errors on Windows

I am trying to build a static Cairo library on Windows under MSYS2/MinGW-w64 & am having trouble linking to libpixman-1.a static library. The linker errors are as follows: ... libtool: link: ranlib…
AntumDeluge
  • 490
  • 1
  • 5
  • 13
0
votes
1 answer

when building pixman library, the prompt always says "can not find xxx.h(the std header"?

I'm using Windows 10 system, VS2015. I want to build pixman-0.34.0 now. The tutorials here: http://cairographics.org/end_to_end_build_for_win32/ tells me to use these prompt lines: cd %ROOTDIR%\pixman\pixman sed s/-MD/-MT/ Makefile.win32 >…
WL_Law
  • 87
  • 7