Skip to content
Snippets Groups Projects
  1. May 25, 2019
    • Basile Clement's avatar
      demos: Add a dithering demo · 98b5ec74
      Basile Clement authored and Bryce Harrington's avatar Bryce Harrington committed
      This adds a dither.c which provides a demo of the dithering feature.
      This is based on the scale.c demo for scaling and provides a selection
      of intermediate formats and dithering operators (currently, only
      PIXMAN_DITHER_ORDERED_BAYER_8) to use.  Images are first blitted onto a
      surface of the intermediate format with the requested dither setup, then
      blitted back onto a a8r8g8b8 surface for display.
      98b5ec74
  2. Jan 16, 2019
  3. Nov 12, 2013
  4. Mar 12, 2013
    • Søren Sandmann Pedersen's avatar
      demos: Add linear-gradient demo program · 460faaa4
      Søren Sandmann Pedersen authored
      This program displays a linear gradient from blue to yellow. Due to
      limited precision in pixman-gradient-walker.c, it currently has some
      ugly artefacts that gives it a 'brushed metal' appearance.
      
      V2: Update .gitignore
      460faaa4
  5. Jan 23, 2013
    • Matt Turner's avatar
      Convert INCLUDES to AM_CPPFLAGS · 61dacffa
      Matt Turner authored
      INCLUDES has been deprecated starting with automake 1.13. Convert all
      occurrences with the recommended AM_CPPFLAGS replacement.
      61dacffa
  6. Dec 08, 2012
    • Søren Sandmann Pedersen's avatar
      Add demo program for conical gradients · 4f18ba30
      Søren Sandmann Pedersen authored
      This new test is derived from radial-test.c and displays conical
      gradients at various angles.
      
      It also demonstrates how PIXMAN_REPEAT_NORMAL is supposed to work when
      used with a gradient specification where the first stop is not a 0.0:
      In this case the gradient is supposed to have a smooth transition from
      the last stop back to the first stop with no sharp transitions. It
      also shows that the repeat mode is not ignored for conical gradients
      as one might be tempted to think.
      4f18ba30
    • Søren Sandmann Pedersen's avatar
      demos: Add new demo program, "scale" · 97491ed2
      Søren Sandmann Pedersen authored
      This program allows interactively scaling and rotating images with
      using various filters and repeat modes. It uses
      pixman_filter_create_separate_convolution() to generate the filters.
      97491ed2
  7. Dec 06, 2012
    • Siarhei Siamashka's avatar
      test: Switch to the new PRNG instead of old LCG · b31a6962
      Siarhei Siamashka authored
      Wallclock time for running pixman "make check" (compile time not included):
      
      ----------------------------+----------------+-----------------------------+
                                  | old PRNG (LCG) |   new PRNG (Bob Jenkins)    |
             Processor type       +----------------+------------+----------------+
                                  |    gcc 4.5     |  gcc 4.5   | gcc 4.7 (simd) |
      ----------------------------+----------------+------------+----------------+
      quad Intel Core i7  @2.8GHz |    0m49.494s   |  0m43.722s |    0m37.560s   |
      dual ARM Cortex-A15 @1.7GHz |     5m8.465s   |  4m37.375s |    3m45.819s   |
           IBM Cell PPU   @3.2GHz |    23m0.821s   | 20m38.316s |   16m37.513s   |
      ----------------------------+----------------+------------+----------------+
      
      But some tests got a particularly large boost. For example benchmarking and
      profiling blitters-test on Core i7:
      
      === before ===
      
      $ time ./blitters-test
      
      real    0m10.907s
      user    0m55.650s
      sys     0m0.000s
      
        70.45%  blitters-test  blitters-test       [.] create_random_image
        15.81%  blitters-test  blitters-test       [.] compute_crc32_for_image_internal
         2.26%  blitters-test  blitters-test       [.] _pixman_implementation_lookup_composite
         1.07%  blitters-test  libc-2.15.so        [.] _int_free
         0.89%  blitters-test  libc-2.15.so        [.] malloc_consolidate
         0.87%  blitters-test  libc-2.15.so        [.] _int_malloc
         0.75%  blitters-test  blitters-test       [.] combine_conjoint_general_u
         0.61%  blitters-test  blitters-test       [.] combine_disjoint_general_u
         0.40%  blitters-test  blitters-test       [.] test_composite
         0.31%  blitters-test  libc-2.15.so        [.] _int_memalign
         0.31%  blitters-test  blitters-test       [.] _pixman_bits_image_setup_accessors
         0.28%  blitters-test  libc-2.15.so        [.] malloc
      
      === after ===
      
      $ time ./blitters-test
      
      real    0m3.655s
      user    0m20.550s
      sys     0m0.000s
      
        41.77%  blitters-test.n  blitters-test.new  [.] compute_crc32_for_image_internal
        15.77%  blitters-test.n  blitters-test.new  [.] prng_randmemset_r
         6.15%  blitters-test.n  blitters-test.new  [.] _pixman_implementation_lookup_composite
         3.09%  blitters-test.n  libc-2.15.so       [.] _int_free
         2.68%  blitters-test.n  libc-2.15.so       [.] malloc_consolidate
         2.39%  blitters-test.n  libc-2.15.so       [.] _int_malloc
         2.27%  blitters-test.n  blitters-test.new  [.] create_random_image
         2.22%  blitters-test.n  blitters-test.new  [.] combine_conjoint_general_u
         1.52%  blitters-test.n  blitters-test.new  [.] combine_disjoint_general_u
         1.40%  blitters-test.n  blitters-test.new  [.] test_composite
         1.02%  blitters-test.n  blitters-test.new  [.] prng_srand_r
         1.00%  blitters-test.n  blitters-test.new  [.] _pixman_image_validate
         0.96%  blitters-test.n  blitters-test.new  [.] _pixman_bits_image_setup_accessors
         0.90%  blitters-test.n  libc-2.15.so       [.] malloc
      b31a6962
  8. Aug 09, 2012
  9. Jul 30, 2012
    • Antti S. Lankila's avatar
      Add sRGB blending demo program · a161a6ba
      Antti S. Lankila authored
      Simple sRGB color blender test can be used to determine if the sRGB processing
      works as expected. It blends alpha ramps of purple and green together such that
      at midpoint of image, 50 % blend of both is realized. At that point, sRGB-aware
      processing yields a result close to #bbb rather than #888, which is the linear
      light blending result.
      
      The demo also contains the sample computation for sRGB premultiplied alpha.
      a161a6ba
  10. May 20, 2012
  11. May 15, 2012
  12. Apr 02, 2012
  13. Mar 24, 2012
  14. Sep 27, 2011
  15. Feb 18, 2011
  16. Feb 15, 2011
Loading