w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pixman-access.c File Reference
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "pixman-accessor.h"
#include "pixman-private.h"
Include dependency graph for pixman-access.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  format_info_t
 

Macros

#define CONVERT_RGB24_TO_Y15(s)
 
#define CONVERT_RGB24_TO_RGB15(s)
 
#define FETCH_1(img, l, o)    ((((READ ((img), ((uint32_t *)(l)) + ((o) >> 5))) >> ((o) & 0x1f))) & 0x1)
 
#define FETCH_8(img, l, o)   (READ (img, (((uint8_t *)(l)) + ((o) >> 3))))
 
#define FETCH_4(img, l, o)    (((4 * (o)) & 4) ? (FETCH_8 (img, l, 4 * (o)) >> 4) : (FETCH_8 (img, l, (4 * (o))) & 0xf))
 
#define FETCH_24(img, l, o)
 
#define STORE_1(img, l, o, v)
 
#define STORE_8(img, l, o, v)   (WRITE (img, (uint8_t *)(l) + ((o) >> 3), (v)))
 
#define STORE_4(img, l, o, v)
 
#define STORE_24(img, l, o, v)
 
#define YV12_SETUP(image)
 
#define YV12_Y(line)    ((uint8_t *) ((bits) + (stride) * (line)))
 
#define YV12_U(line)
 
#define YV12_V(line)
 
#define MAKE_ACCESSORS(format)
 
#define FORMAT_INFO(format)
 
#define fetch_scanline_x4c4   fetch_scanline_c8
 
#define fetch_pixel_x4c4   fetch_pixel_c8
 
#define store_scanline_x4c4   store_scanline_c8
 
#define fetch_scanline_x4g4   fetch_scanline_g8
 
#define fetch_pixel_x4g4   fetch_pixel_g8
 
#define store_scanline_x4g4   store_scanline_g8
 

Functions

static void get_shifts (pixman_format_code_t format, int *a, int *r, int *g, int *b)
 
static uint32_t convert_channel (uint32_t pixel, uint32_t def_value, int n_from_bits, int from_shift, int n_to_bits, int to_shift)
 
static uint32_t convert_pixel (pixman_format_code_t from, pixman_format_code_t to, uint32_t pixel)
 
static uint32_t convert_pixel_to_a8r8g8b8 (bits_image_t *image, pixman_format_code_t format, uint32_t pixel)
 
static uint32_t convert_pixel_from_a8r8g8b8 (pixman_image_t *image, pixman_format_code_t format, uint32_t pixel)
 
static uint32_t fetch_and_convert_pixel (bits_image_t *image, const uint8_t *bits, int offset, pixman_format_code_t format)
 
static void convert_and_store_pixel (bits_image_t *image, uint8_t *dest, int offset, pixman_format_code_t format, uint32_t pixel)
 
static void fetch_scanline_a8r8g8b8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a8r8g8b8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a8r8g8b8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_x8r8g8b8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_x8r8g8b8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_x8r8g8b8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a8b8g8r8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a8b8g8r8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a8b8g8r8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_x8b8g8r8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_x8b8g8r8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_x8b8g8r8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_x14r6g6b6 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_x14r6g6b6 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_x14r6g6b6 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_b8g8r8a8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_b8g8r8a8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_b8g8r8a8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_b8g8r8x8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_b8g8r8x8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_b8g8r8x8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_r8g8b8x8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_r8g8b8x8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_r8g8b8x8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_r8g8b8a8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_r8g8b8a8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_r8g8b8a8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_r8g8b8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_r8g8b8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_r8g8b8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_b8g8r8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_b8g8r8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_b8g8r8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_r5g6b5 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_r5g6b5 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_r5g6b5 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_b5g6r5 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_b5g6r5 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_b5g6r5 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a1r5g5b5 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a1r5g5b5 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a1r5g5b5 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_x1r5g5b5 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_x1r5g5b5 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_x1r5g5b5 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a1b5g5r5 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a1b5g5r5 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a1b5g5r5 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_x1b5g5r5 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_x1b5g5r5 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_x1b5g5r5 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a4r4g4b4 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a4r4g4b4 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a4r4g4b4 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_x4r4g4b4 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_x4r4g4b4 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_x4r4g4b4 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a4b4g4r4 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a4b4g4r4 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a4b4g4r4 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_x4b4g4r4 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_x4b4g4r4 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_x4b4g4r4 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_c8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_c8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_c8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_g8 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_g8 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_g8 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_r3g3b2 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_r3g3b2 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_r3g3b2 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_b2g3r3 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_b2g3r3 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_b2g3r3 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a2r2g2b2 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a2r2g2b2 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a2r2g2b2 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a2b2g2r2 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a2b2g2r2 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a2b2g2r2 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_x4a4 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_x4a4 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_x4a4 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a4 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a4 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a4 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_g4 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_g4 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_g4 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_c4 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_c4 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_c4 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_r1g2b1 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_r1g2b1 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_r1g2b1 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_b1g2r1 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_b1g2r1 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_b1g2r1 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a1r1g1b1 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a1r1g1b1 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a1r1g1b1 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a1b1g1r1 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a1b1g1r1 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a1b1g1r1 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_a1 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_a1 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_a1 (bits_image_t *image, int offset, int line)
 
static void fetch_scanline_g1 (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void store_scanline_g1 (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static uint32_t fetch_pixel_g1 (bits_image_t *image, int offset, int line)
 
static uint8_t to_srgb (float f)
 
static void fetch_scanline_a8r8g8b8_sRGB_float (bits_image_t *image, int x, int y, int width, uint32_t *b, const uint32_t *mask)
 
static void fetch_scanline_a2r10g10b10_float (bits_image_t *image, int x, int y, int width, uint32_t *b, const uint32_t *mask)
 
static void fetch_scanline_x2r10g10b10_float (bits_image_t *image, int x, int y, int width, uint32_t *b, const uint32_t *mask)
 
static void fetch_scanline_a2b10g10r10_float (bits_image_t *image, int x, int y, int width, uint32_t *b, const uint32_t *mask)
 
static void fetch_scanline_x2b10g10r10_float (bits_image_t *image, int x, int y, int width, uint32_t *b, const uint32_t *mask)
 
static void fetch_scanline_yuy2 (bits_image_t *image, int x, int line, int width, uint32_t *buffer, const uint32_t *mask)
 
static void fetch_scanline_yv12 (bits_image_t *image, int x, int line, int width, uint32_t *buffer, const uint32_t *mask)
 
static argb_t fetch_pixel_x2r10g10b10_float (bits_image_t *image, int offset, int line)
 
static argb_t fetch_pixel_a2r10g10b10_float (bits_image_t *image, int offset, int line)
 
static argb_t fetch_pixel_a2b10g10r10_float (bits_image_t *image, int offset, int line)
 
static argb_t fetch_pixel_x2b10g10r10_float (bits_image_t *image, int offset, int line)
 
static argb_t fetch_pixel_a8r8g8b8_sRGB_float (bits_image_t *image, int offset, int line)
 
static uint32_t fetch_pixel_yuy2 (bits_image_t *image, int offset, int line)
 
static uint32_t fetch_pixel_yv12 (bits_image_t *image, int offset, int line)
 
static void store_scanline_a2r10g10b10_float (bits_image_t *image, int x, int y, int width, const uint32_t *v)
 
static void store_scanline_x2r10g10b10_float (bits_image_t *image, int x, int y, int width, const uint32_t *v)
 
static void store_scanline_a2b10g10r10_float (bits_image_t *image, int x, int y, int width, const uint32_t *v)
 
static void store_scanline_x2b10g10r10_float (bits_image_t *image, int x, int y, int width, const uint32_t *v)
 
static void store_scanline_a8r8g8b8_sRGB_float (bits_image_t *image, int x, int y, int width, const uint32_t *v)
 
static void store_scanline_generic_float (bits_image_t *image, int x, int y, int width, const uint32_t *values)
 
static void fetch_scanline_generic_float (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static void fetch_scanline_a8r8g8b8_32_sRGB (bits_image_t *image, int x, int y, int width, uint32_t *buffer, const uint32_t *mask)
 
static uint32_t fetch_pixel_a8r8g8b8_32_sRGB (bits_image_t *image, int offset, int line)
 
static void store_scanline_a8r8g8b8_32_sRGB (bits_image_t *image, int x, int y, int width, const uint32_t *v)
 
static argb_t fetch_pixel_generic_float (bits_image_t *image, int offset, int line)
 
static uint32_t fetch_pixel_generic_lossy_32 (bits_image_t *image, int offset, int line)
 
static void setup_accessors (bits_image_t *image)
 
void _pixman_bits_image_setup_accessors_accessors (bits_image_t *image)
 

Variables

static const void *const __dummy__a8r8g8b8
 
static const void *const __dummy__x8r8g8b8
 
static const void *const __dummy__a8b8g8r8
 
static const void *const __dummy__x8b8g8r8
 
static const void *const __dummy__x14r6g6b6
 
static const void *const __dummy__b8g8r8a8
 
static const void *const __dummy__b8g8r8x8
 
static const void *const __dummy__r8g8b8x8
 
static const void *const __dummy__r8g8b8a8
 
static const void *const __dummy__r8g8b8
 
static const void *const __dummy__b8g8r8
 
static const void *const __dummy__r5g6b5
 
static const void *const __dummy__b5g6r5
 
static const void *const __dummy__a1r5g5b5
 
static const void *const __dummy__x1r5g5b5
 
static const void *const __dummy__a1b5g5r5
 
static const void *const __dummy__x1b5g5r5
 
static const void *const __dummy__a4r4g4b4
 
static const void *const __dummy__x4r4g4b4
 
static const void *const __dummy__a4b4g4r4
 
static const void *const __dummy__x4b4g4r4
 
static const void *const __dummy__a8
 
static const void *const __dummy__c8
 
static const void *const __dummy__g8
 
static const void *const __dummy__r3g3b2
 
static const void *const __dummy__b2g3r3
 
static const void *const __dummy__a2r2g2b2
 
static const void *const __dummy__a2b2g2r2
 
static const void *const __dummy__x4a4
 
static const void *const __dummy__a4
 
static const void *const __dummy__g4
 
static const void *const __dummy__c4
 
static const void *const __dummy__r1g2b1
 
static const void *const __dummy__b1g2r1
 
static const void *const __dummy__a1r1g1b1
 
static const void *const __dummy__a1b1g1r1
 
static const void *const __dummy__a1
 
static const void *const __dummy__g1
 
static const uint32_t to_linear_u [256]
 
static const float *const to_linear = (const float *)to_linear_u
 
static const format_info_t accessors []
 

Macro Definition Documentation

◆ CONVERT_RGB24_TO_RGB15

#define CONVERT_RGB24_TO_RGB15 (   s)
Value:
((((s) >> 3) & 0x001f) | \
(((s) >> 6) & 0x03e0) | \
(((s) >> 9) & 0x7c00))
#define s
Definition: afcover.h:80

Definition at line 44 of file pixman-access.c.

◆ CONVERT_RGB24_TO_Y15

#define CONVERT_RGB24_TO_Y15 (   s)
Value:
(((((s) >> 16) & 0xff) * 153 + \
(((s) >> 8) & 0xff) * 301 + \
(((s) ) & 0xff) * 58) >> 2)

Definition at line 39 of file pixman-access.c.

◆ FETCH_1

#define FETCH_1 (   img,
  l,
 
)     ((((READ ((img), ((uint32_t *)(l)) + ((o) >> 5))) >> ((o) & 0x1f))) & 0x1)

Definition at line 55 of file pixman-access.c.

◆ FETCH_24

#define FETCH_24 (   img,
  l,
 
)
Value:
((uint32_t)(READ (img, (((uint8_t *)(l)) + ((o) * 3) + 0)) << 0) | \
(uint32_t)(READ (img, (((uint8_t *)(l)) + ((o) * 3) + 1)) << 8) | \
(uint32_t)(READ (img, (((uint8_t *)(l)) + ((o) * 3) + 2)) << 16))
unsigned int uint32_t
Definition: stdint.h:80
unsigned char uint8_t
Definition: stdint.h:78
#define READ
Definition: config.h:50
#define uint32_t
Definition: stdint.in.h:168

Definition at line 75 of file pixman-access.c.

◆ FETCH_4

#define FETCH_4 (   img,
  l,
 
)     (((4 * (o)) & 4) ? (FETCH_8 (img, l, 4 * (o)) >> 4) : (FETCH_8 (img, l, (4 * (o))) & 0xf))

Definition at line 65 of file pixman-access.c.

◆ FETCH_8

#define FETCH_8 (   img,
  l,
 
)    (READ (img, (((uint8_t *)(l)) + ((o) >> 3))))

Definition at line 59 of file pixman-access.c.

◆ fetch_pixel_x4c4

#define fetch_pixel_x4c4   fetch_pixel_c8

◆ fetch_pixel_x4g4

#define fetch_pixel_x4g4   fetch_pixel_g8

◆ fetch_scanline_x4c4

#define fetch_scanline_x4c4   fetch_scanline_c8

◆ fetch_scanline_x4g4

#define fetch_scanline_x4g4   fetch_scanline_g8

◆ FORMAT_INFO

#define FORMAT_INFO (   format)
Value:
{ \
PIXMAN_ ## format, \
fetch_scanline_ ## format, \
fetch_scanline_generic_float, \
fetch_pixel_ ## format, \
fetch_pixel_generic_float, \
store_scanline_ ## format, \
store_scanline_generic_float \
}
static int format
Definition: pbmclean.c:15

Definition at line 1382 of file pixman-access.c.

◆ MAKE_ACCESSORS

#define MAKE_ACCESSORS (   format)

Definition at line 418 of file pixman-access.c.

◆ STORE_1

#define STORE_1 (   img,
  l,
  o,
  v 
)
Value:
do \
{ \
uint32_t *__d = ((uint32_t *)(l)) + ((o) >> 5); \
uint32_t __m, __v; \
\
__m = 1U << ((o) & 0x1f); \
__v = (v)? __m : 0; \
WRITE((img), __d, (READ((img), __d) & ~__m) | __v); \
} \
while (0)
void WRITE(T &t, UInt32 v)
Definition: Compiler.cpp:292
int v
Definition: dviconv.c:10
__m
Definition: sec_div.c:123

Definition at line 97 of file pixman-access.c.

◆ STORE_24

#define STORE_24 (   img,
  l,
  o,
  v 
)
Value:
do \
{ \
uint8_t *__tmp = (l) + 3 * (o); \
WRITE ((img), __tmp++, ((v) & 0x000000ff) >> 0); \
WRITE ((img), __tmp++, ((v) & 0x0000ff00) >> 8); \
WRITE ((img), __tmp++, ((v) & 0x00ff0000) >> 16); \
} \
while (0)

Definition at line 151 of file pixman-access.c.

◆ STORE_4

#define STORE_4 (   img,
  l,
  o,
  v 
)
Value:
do \
{ \
int bo = 4 * (o); \
int v4 = (v) & 0x0f; \
STORE_8 (img, l, bo, ( \
bo & 4 ? \
(FETCH_8 (img, l, bo) & 0x0f) | (v4 << 4) : \
(FETCH_8 (img, l, bo) & 0xf0) | (v4))); \
} while (0)
#define STORE_8(img, l, o, v)
#define FETCH_8(img, l, o)
Definition: pixman-access.c:59

Definition at line 126 of file pixman-access.c.

◆ STORE_8

#define STORE_8 (   img,
  l,
  o,
  v 
)    (WRITE (img, (uint8_t *)(l) + ((o) >> 3), (v)))

Definition at line 111 of file pixman-access.c.

◆ store_scanline_x4c4

#define store_scanline_x4c4   store_scanline_c8

◆ store_scanline_x4g4

#define store_scanline_x4g4   store_scanline_g8

◆ YV12_SETUP

#define YV12_SETUP (   image)
Value:
bits_image_t *__bits_image = (bits_image_t *)image; \
uint32_t *bits = __bits_image->bits; \
int stride = __bits_image->rowstride; \
int offset0 = stride < 0 ? \
((-stride) >> 1) * ((__bits_image->height - 1) >> 1) - stride : \
stride * __bits_image->height; \
int offset1 = stride < 0 ? \
offset0 + ((-stride) >> 1) * ((__bits_image->height) >> 1) : \
offset0 + (offset0 >> 2)
static struct brw_reg stride(struct brw_reg reg, uint32_t vstride, uint32_t width, uint32_t hstride)
uint32_t * bits
Definition: namelist.c:170
Definition: sd.h:76

Definition at line 167 of file pixman-access.c.

◆ YV12_U

#define YV12_U (   line)
Value:
((uint8_t *) ((bits) + offset1 + \
((stride) >> 1) * ((line) >> 1)))
char line[1024]
Definition: process_score.c:29

Definition at line 187 of file pixman-access.c.

◆ YV12_V

#define YV12_V (   line)
Value:
((uint8_t *) ((bits) + offset0 + \
((stride) >> 1) * ((line) >> 1)))

Definition at line 191 of file pixman-access.c.

◆ YV12_Y

#define YV12_Y (   line)     ((uint8_t *) ((bits) + (stride) * (line)))

Definition at line 184 of file pixman-access.c.

Function Documentation

◆ _pixman_bits_image_setup_accessors_accessors()

void _pixman_bits_image_setup_accessors_accessors ( bits_image_t image)

Definition at line 1554 of file pixman-access.c.

References setup_accessors().

◆ convert_and_store_pixel()

static void convert_and_store_pixel ( bits_image_t image,
uint8_t dest,
int  offset,
pixman_format_code_t  format,
uint32_t  pixel 
)
inlinestatic

◆ convert_channel()

static uint32_t convert_channel ( uint32_t  pixel,
uint32_t  def_value,
int  n_from_bits,
int  from_shift,
int  n_to_bits,
int  to_shift 
)
inlinestatic

Definition at line 251 of file pixman-access.c.

References unorm_to_unorm(), and v.

Referenced by convert_pixel().

◆ convert_pixel()

◆ convert_pixel_from_a8r8g8b8()

static uint32_t convert_pixel_from_a8r8g8b8 ( pixman_image_t image,
pixman_format_code_t  format,
uint32_t  pixel 
)
inlinestatic

◆ convert_pixel_to_a8r8g8b8()

static uint32_t convert_pixel_to_a8r8g8b8 ( bits_image_t image,
pixman_format_code_t  format,
uint32_t  pixel 
)
inlinestatic

◆ fetch_and_convert_pixel()

static uint32_t fetch_and_convert_pixel ( bits_image_t image,
const uint8_t bits,
int  offset,
pixman_format_code_t  format 
)
inlinestatic

◆ fetch_pixel_a1()

static uint32_t fetch_pixel_a1 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 506 of file pixman-access.c.

◆ fetch_pixel_a1b1g1r1()

static uint32_t fetch_pixel_a1b1g1r1 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 505 of file pixman-access.c.

◆ fetch_pixel_a1b5g5r5()

static uint32_t fetch_pixel_a1b5g5r5 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 485 of file pixman-access.c.

◆ fetch_pixel_a1r1g1b1()

static uint32_t fetch_pixel_a1r1g1b1 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 504 of file pixman-access.c.

◆ fetch_pixel_a1r5g5b5()

static uint32_t fetch_pixel_a1r5g5b5 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 483 of file pixman-access.c.

◆ fetch_pixel_a2b10g10r10_float()

static argb_t fetch_pixel_a2b10g10r10_float ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 926 of file pixman-access.c.

References a, b, g, offset, p, pixman_unorm_to_float(), r, and READ.

◆ fetch_pixel_a2b2g2r2()

static uint32_t fetch_pixel_a2b2g2r2 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 497 of file pixman-access.c.

◆ fetch_pixel_a2r10g10b10_float()

static argb_t fetch_pixel_a2r10g10b10_float ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 905 of file pixman-access.c.

References a, b, g, offset, p, pixman_unorm_to_float(), r, and READ.

◆ fetch_pixel_a2r2g2b2()

static uint32_t fetch_pixel_a2r2g2b2 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 496 of file pixman-access.c.

◆ fetch_pixel_a4()

static uint32_t fetch_pixel_a4 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 499 of file pixman-access.c.

◆ fetch_pixel_a4b4g4r4()

static uint32_t fetch_pixel_a4b4g4r4 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 489 of file pixman-access.c.

◆ fetch_pixel_a4r4g4b4()

static uint32_t fetch_pixel_a4r4g4b4 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 487 of file pixman-access.c.

◆ fetch_pixel_a8()

static uint32_t fetch_pixel_a8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 491 of file pixman-access.c.

◆ fetch_pixel_a8b8g8r8()

static uint32_t fetch_pixel_a8b8g8r8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 472 of file pixman-access.c.

◆ fetch_pixel_a8r8g8b8()

static uint32_t fetch_pixel_a8r8g8b8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 470 of file pixman-access.c.

◆ fetch_pixel_a8r8g8b8_32_sRGB()

static uint32_t fetch_pixel_a8r8g8b8_32_sRGB ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 1287 of file pixman-access.c.

References a, b, g, offset, r, READ, and to_linear.

◆ fetch_pixel_a8r8g8b8_sRGB_float()

static argb_t fetch_pixel_a8r8g8b8_sRGB_float ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 967 of file pixman-access.c.

References offset, p, pixman_unorm_to_float(), READ, and to_linear.

◆ fetch_pixel_b1g2r1()

static uint32_t fetch_pixel_b1g2r1 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 503 of file pixman-access.c.

◆ fetch_pixel_b2g3r3()

static uint32_t fetch_pixel_b2g3r3 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 495 of file pixman-access.c.

◆ fetch_pixel_b5g6r5()

static uint32_t fetch_pixel_b5g6r5 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 482 of file pixman-access.c.

◆ fetch_pixel_b8g8r8()

static uint32_t fetch_pixel_b8g8r8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 480 of file pixman-access.c.

◆ fetch_pixel_b8g8r8a8()

static uint32_t fetch_pixel_b8g8r8a8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 475 of file pixman-access.c.

◆ fetch_pixel_b8g8r8x8()

static uint32_t fetch_pixel_b8g8r8x8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 476 of file pixman-access.c.

◆ fetch_pixel_c4()

static uint32_t fetch_pixel_c4 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 501 of file pixman-access.c.

◆ fetch_pixel_c8()

static uint32_t fetch_pixel_c8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 492 of file pixman-access.c.

◆ fetch_pixel_g1()

static uint32_t fetch_pixel_g1 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 507 of file pixman-access.c.

◆ fetch_pixel_g4()

static uint32_t fetch_pixel_g4 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 500 of file pixman-access.c.

◆ fetch_pixel_g8()

static uint32_t fetch_pixel_g8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 493 of file pixman-access.c.

◆ fetch_pixel_generic_float()

static argb_t fetch_pixel_generic_float ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 1340 of file pixman-access.c.

References f, offset, and pixman_expand_to_float().

◆ fetch_pixel_generic_lossy_32()

static uint32_t fetch_pixel_generic_lossy_32 ( bits_image_t image,
int  offset,
int  line 
)
static

◆ fetch_pixel_r1g2b1()

static uint32_t fetch_pixel_r1g2b1 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 502 of file pixman-access.c.

◆ fetch_pixel_r3g3b2()

static uint32_t fetch_pixel_r3g3b2 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 494 of file pixman-access.c.

◆ fetch_pixel_r5g6b5()

static uint32_t fetch_pixel_r5g6b5 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 481 of file pixman-access.c.

◆ fetch_pixel_r8g8b8()

static uint32_t fetch_pixel_r8g8b8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 479 of file pixman-access.c.

◆ fetch_pixel_r8g8b8a8()

static uint32_t fetch_pixel_r8g8b8a8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 478 of file pixman-access.c.

◆ fetch_pixel_r8g8b8x8()

static uint32_t fetch_pixel_r8g8b8x8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 477 of file pixman-access.c.

◆ fetch_pixel_x14r6g6b6()

static uint32_t fetch_pixel_x14r6g6b6 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 474 of file pixman-access.c.

◆ fetch_pixel_x1b5g5r5()

static uint32_t fetch_pixel_x1b5g5r5 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 486 of file pixman-access.c.

◆ fetch_pixel_x1r5g5b5()

static uint32_t fetch_pixel_x1r5g5b5 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 484 of file pixman-access.c.

◆ fetch_pixel_x2b10g10r10_float()

static argb_t fetch_pixel_x2b10g10r10_float ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 947 of file pixman-access.c.

References b, g, offset, p, pixman_unorm_to_float(), r, and READ.

◆ fetch_pixel_x2r10g10b10_float()

static argb_t fetch_pixel_x2r10g10b10_float ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 885 of file pixman-access.c.

References b, g, offset, p, pixman_unorm_to_float(), r, and READ.

◆ fetch_pixel_x4a4()

static uint32_t fetch_pixel_x4a4 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 498 of file pixman-access.c.

◆ fetch_pixel_x4b4g4r4()

static uint32_t fetch_pixel_x4b4g4r4 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 490 of file pixman-access.c.

◆ fetch_pixel_x4r4g4b4()

static uint32_t fetch_pixel_x4r4g4b4 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 488 of file pixman-access.c.

◆ fetch_pixel_x8b8g8r8()

static uint32_t fetch_pixel_x8b8g8r8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 473 of file pixman-access.c.

◆ fetch_pixel_x8r8g8b8()

static uint32_t fetch_pixel_x8r8g8b8 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 471 of file pixman-access.c.

◆ fetch_pixel_yuy2()

static uint32_t fetch_pixel_yuy2 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 985 of file pixman-access.c.

References b, g, line, offset, r, u, v, and y.

◆ fetch_pixel_yv12()

static uint32_t fetch_pixel_yv12 ( bits_image_t image,
int  offset,
int  line 
)
static

Definition at line 1014 of file pixman-access.c.

References b, g, offset, r, u, v, y, YV12_SETUP, YV12_U, YV12_V, and YV12_Y.

◆ fetch_scanline_a1()

static void fetch_scanline_a1 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 506 of file pixman-access.c.

◆ fetch_scanline_a1b1g1r1()

static void fetch_scanline_a1b1g1r1 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 505 of file pixman-access.c.

◆ fetch_scanline_a1b5g5r5()

static void fetch_scanline_a1b5g5r5 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 485 of file pixman-access.c.

◆ fetch_scanline_a1r1g1b1()

static void fetch_scanline_a1r1g1b1 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 504 of file pixman-access.c.

◆ fetch_scanline_a1r5g5b5()

static void fetch_scanline_a1r5g5b5 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 483 of file pixman-access.c.

◆ fetch_scanline_a2b10g10r10_float()

static void fetch_scanline_a2b10g10r10_float ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t b,
const uint32_t mask 
)
static

Definition at line 718 of file pixman-access.c.

References a, buffer::b, b, end, g, p, pixman_unorm_to_float(), r, READ, width, cordic::x, and y.

◆ fetch_scanline_a2b2g2r2()

static void fetch_scanline_a2b2g2r2 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 497 of file pixman-access.c.

◆ fetch_scanline_a2r10g10b10_float()

static void fetch_scanline_a2r10g10b10_float ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t b,
const uint32_t mask 
)
static

Definition at line 615 of file pixman-access.c.

References a, buffer::b, b, end, g, p, pixman_unorm_to_float(), r, READ, width, cordic::x, and y.

◆ fetch_scanline_a2r2g2b2()

static void fetch_scanline_a2r2g2b2 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 496 of file pixman-access.c.

◆ fetch_scanline_a4()

static void fetch_scanline_a4 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 499 of file pixman-access.c.

◆ fetch_scanline_a4b4g4r4()

static void fetch_scanline_a4b4g4r4 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 489 of file pixman-access.c.

◆ fetch_scanline_a4r4g4b4()

static void fetch_scanline_a4r4g4b4 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 487 of file pixman-access.c.

◆ fetch_scanline_a8()

static void fetch_scanline_a8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 491 of file pixman-access.c.

◆ fetch_scanline_a8b8g8r8()

static void fetch_scanline_a8b8g8r8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 472 of file pixman-access.c.

◆ fetch_scanline_a8r8g8b8()

static void fetch_scanline_a8r8g8b8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 470 of file pixman-access.c.

◆ fetch_scanline_a8r8g8b8_32_sRGB()

static void fetch_scanline_a8r8g8b8_32_sRGB ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 1255 of file pixman-access.c.

References a, b, end, g, r, READ, to_linear, width, cordic::x, and y.

◆ fetch_scanline_a8r8g8b8_sRGB_float()

static void fetch_scanline_a8r8g8b8_sRGB_float ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t b,
const uint32_t mask 
)
static

Definition at line 586 of file pixman-access.c.

References b, buffer, end, p, pixman_unorm_to_float(), READ, to_linear, width, cordic::x, and y.

◆ fetch_scanline_b1g2r1()

static void fetch_scanline_b1g2r1 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 503 of file pixman-access.c.

◆ fetch_scanline_b2g3r3()

static void fetch_scanline_b2g3r3 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 495 of file pixman-access.c.

◆ fetch_scanline_b5g6r5()

static void fetch_scanline_b5g6r5 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 482 of file pixman-access.c.

◆ fetch_scanline_b8g8r8()

static void fetch_scanline_b8g8r8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 480 of file pixman-access.c.

◆ fetch_scanline_b8g8r8a8()

static void fetch_scanline_b8g8r8a8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 475 of file pixman-access.c.

◆ fetch_scanline_b8g8r8x8()

static void fetch_scanline_b8g8r8x8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 476 of file pixman-access.c.

◆ fetch_scanline_c4()

static void fetch_scanline_c4 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 501 of file pixman-access.c.

◆ fetch_scanline_c8()

static void fetch_scanline_c8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 492 of file pixman-access.c.

◆ fetch_scanline_g1()

static void fetch_scanline_g1 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 507 of file pixman-access.c.

◆ fetch_scanline_g4()

static void fetch_scanline_g4 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 500 of file pixman-access.c.

◆ fetch_scanline_g8()

static void fetch_scanline_g8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 493 of file pixman-access.c.

◆ fetch_scanline_generic_float()

static void fetch_scanline_generic_float ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 1239 of file pixman-access.c.

References NULL, pixman_expand_to_float(), width, cordic::x, and y.

◆ fetch_scanline_r1g2b1()

static void fetch_scanline_r1g2b1 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 502 of file pixman-access.c.

◆ fetch_scanline_r3g3b2()

static void fetch_scanline_r3g3b2 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 494 of file pixman-access.c.

◆ fetch_scanline_r5g6b5()

static void fetch_scanline_r5g6b5 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 481 of file pixman-access.c.

◆ fetch_scanline_r8g8b8()

static void fetch_scanline_r8g8b8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 479 of file pixman-access.c.

◆ fetch_scanline_r8g8b8a8()

static void fetch_scanline_r8g8b8a8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 478 of file pixman-access.c.

◆ fetch_scanline_r8g8b8x8()

static void fetch_scanline_r8g8b8x8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 477 of file pixman-access.c.

◆ fetch_scanline_x14r6g6b6()

static void fetch_scanline_x14r6g6b6 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 474 of file pixman-access.c.

◆ fetch_scanline_x1b5g5r5()

static void fetch_scanline_x1b5g5r5 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 486 of file pixman-access.c.

◆ fetch_scanline_x1r5g5b5()

static void fetch_scanline_x1r5g5b5 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 484 of file pixman-access.c.

◆ fetch_scanline_x2b10g10r10_float()

static void fetch_scanline_x2b10g10r10_float ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t b,
const uint32_t mask 
)
static

Definition at line 749 of file pixman-access.c.

References buffer::b, b, end, g, p, pixman_unorm_to_float(), r, READ, width, cordic::x, and y.

◆ fetch_scanline_x2r10g10b10_float()

static void fetch_scanline_x2r10g10b10_float ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t b,
const uint32_t mask 
)
static

Definition at line 688 of file pixman-access.c.

References buffer::b, b, end, g, p, pixman_unorm_to_float(), r, READ, width, cordic::x, and y.

◆ fetch_scanline_x4a4()

static void fetch_scanline_x4a4 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 498 of file pixman-access.c.

◆ fetch_scanline_x4b4g4r4()

static void fetch_scanline_x4b4g4r4 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 490 of file pixman-access.c.

◆ fetch_scanline_x4r4g4b4()

static void fetch_scanline_x4r4g4b4 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 488 of file pixman-access.c.

◆ fetch_scanline_x8b8g8r8()

static void fetch_scanline_x8b8g8r8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 473 of file pixman-access.c.

◆ fetch_scanline_x8r8g8b8()

static void fetch_scanline_x8r8g8b8 ( bits_image_t image,
int  x,
int  y,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 471 of file pixman-access.c.

◆ fetch_scanline_yuy2()

static void fetch_scanline_yuy2 ( bits_image_t image,
int  x,
int  line,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 778 of file pixman-access.c.

References b, g, i, line, r, u, v, width, cordic::x, and y.

◆ fetch_scanline_yv12()

static void fetch_scanline_yv12 ( bits_image_t image,
int  x,
int  line,
int  width,
uint32_t buffer,
const uint32_t mask 
)
static

Definition at line 812 of file pixman-access.c.

References b, g, i, r, u, v, width, cordic::x, y, YV12_SETUP, YV12_U, YV12_V, and YV12_Y.

◆ get_shifts()

◆ setup_accessors()

static void setup_accessors ( bits_image_t image)
static

Definition at line 1516 of file pixman-access.c.

References accessors, info, and PIXMAN_null.

Referenced by _pixman_bits_image_setup_accessors_accessors().

◆ store_scanline_a1()

static void store_scanline_a1 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 506 of file pixman-access.c.

◆ store_scanline_a1b1g1r1()

static void store_scanline_a1b1g1r1 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 505 of file pixman-access.c.

◆ store_scanline_a1b5g5r5()

static void store_scanline_a1b5g5r5 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 485 of file pixman-access.c.

◆ store_scanline_a1r1g1b1()

static void store_scanline_a1r1g1b1 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 504 of file pixman-access.c.

◆ store_scanline_a1r5g5b5()

static void store_scanline_a1r5g5b5 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 483 of file pixman-access.c.

◆ store_scanline_a2b10g10r10_float()

static void store_scanline_a2b10g10r10_float ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t v 
)
static

Definition at line 1132 of file pixman-access.c.

References a, b, g, i, pixman_float_to_unorm(), r, v, gen-indic-table::values, width, WRITE(), cordic::x, and y.

◆ store_scanline_a2b2g2r2()

static void store_scanline_a2b2g2r2 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 497 of file pixman-access.c.

◆ store_scanline_a2r10g10b10_float()

static void store_scanline_a2r10g10b10_float ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t v 
)
static

Definition at line 1081 of file pixman-access.c.

References a, b, g, i, pixman_float_to_unorm(), r, v, gen-indic-table::values, width, WRITE(), cordic::x, and y.

◆ store_scanline_a2r2g2b2()

static void store_scanline_a2r2g2b2 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 496 of file pixman-access.c.

◆ store_scanline_a4()

static void store_scanline_a4 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 499 of file pixman-access.c.

◆ store_scanline_a4b4g4r4()

static void store_scanline_a4b4g4r4 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 489 of file pixman-access.c.

◆ store_scanline_a4r4g4b4()

static void store_scanline_a4r4g4b4 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 487 of file pixman-access.c.

◆ store_scanline_a8()

static void store_scanline_a8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 491 of file pixman-access.c.

◆ store_scanline_a8b8g8r8()

static void store_scanline_a8b8g8r8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 472 of file pixman-access.c.

◆ store_scanline_a8r8g8b8()

static void store_scanline_a8r8g8b8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 470 of file pixman-access.c.

◆ store_scanline_a8r8g8b8_32_sRGB()

static void store_scanline_a8r8g8b8_32_sRGB ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t v 
)
static

Definition at line 1308 of file pixman-access.c.

References a, b, g, i, r, to_srgb(), v, gen-indic-table::values, width, WRITE(), cordic::x, and y.

◆ store_scanline_a8r8g8b8_sRGB_float()

static void store_scanline_a8r8g8b8_sRGB_float ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t v 
)
static

Definition at line 1183 of file pixman-access.c.

References a, b, g, i, pixman_float_to_unorm(), r, to_srgb(), v, gen-indic-table::values, width, WRITE(), cordic::x, and y.

◆ store_scanline_b1g2r1()

static void store_scanline_b1g2r1 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 503 of file pixman-access.c.

◆ store_scanline_b2g3r3()

static void store_scanline_b2g3r3 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 495 of file pixman-access.c.

◆ store_scanline_b5g6r5()

static void store_scanline_b5g6r5 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 482 of file pixman-access.c.

◆ store_scanline_b8g8r8()

static void store_scanline_b8g8r8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 480 of file pixman-access.c.

◆ store_scanline_b8g8r8a8()

static void store_scanline_b8g8r8a8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 475 of file pixman-access.c.

◆ store_scanline_b8g8r8x8()

static void store_scanline_b8g8r8x8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 476 of file pixman-access.c.

◆ store_scanline_c4()

static void store_scanline_c4 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 501 of file pixman-access.c.

◆ store_scanline_c8()

static void store_scanline_c8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 492 of file pixman-access.c.

◆ store_scanline_g1()

static void store_scanline_g1 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 507 of file pixman-access.c.

◆ store_scanline_g4()

static void store_scanline_g4 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 500 of file pixman-access.c.

◆ store_scanline_g8()

static void store_scanline_g8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 493 of file pixman-access.c.

◆ store_scanline_generic_float()

static void store_scanline_generic_float ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

◆ store_scanline_r1g2b1()

static void store_scanline_r1g2b1 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 502 of file pixman-access.c.

◆ store_scanline_r3g3b2()

static void store_scanline_r3g3b2 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 494 of file pixman-access.c.

◆ store_scanline_r5g6b5()

static void store_scanline_r5g6b5 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 481 of file pixman-access.c.

◆ store_scanline_r8g8b8()

static void store_scanline_r8g8b8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 479 of file pixman-access.c.

◆ store_scanline_r8g8b8a8()

static void store_scanline_r8g8b8a8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 478 of file pixman-access.c.

◆ store_scanline_r8g8b8x8()

static void store_scanline_r8g8b8x8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 477 of file pixman-access.c.

◆ store_scanline_x14r6g6b6()

static void store_scanline_x14r6g6b6 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 474 of file pixman-access.c.

◆ store_scanline_x1b5g5r5()

static void store_scanline_x1b5g5r5 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 486 of file pixman-access.c.

◆ store_scanline_x1r5g5b5()

static void store_scanline_x1r5g5b5 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 484 of file pixman-access.c.

◆ store_scanline_x2b10g10r10_float()

static void store_scanline_x2b10g10r10_float ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t v 
)
static

Definition at line 1158 of file pixman-access.c.

References b, g, i, pixman_float_to_unorm(), r, v, gen-indic-table::values, width, WRITE(), cordic::x, and y.

◆ store_scanline_x2r10g10b10_float()

static void store_scanline_x2r10g10b10_float ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t v 
)
static

Definition at line 1107 of file pixman-access.c.

References b, g, i, pixman_float_to_unorm(), r, v, gen-indic-table::values, width, WRITE(), cordic::x, and y.

◆ store_scanline_x4a4()

static void store_scanline_x4a4 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 498 of file pixman-access.c.

◆ store_scanline_x4b4g4r4()

static void store_scanline_x4b4g4r4 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 490 of file pixman-access.c.

◆ store_scanline_x4r4g4b4()

static void store_scanline_x4r4g4b4 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 488 of file pixman-access.c.

◆ store_scanline_x8b8g8r8()

static void store_scanline_x8b8g8r8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 473 of file pixman-access.c.

◆ store_scanline_x8r8g8b8()

static void store_scanline_x8r8g8b8 ( bits_image_t image,
int  x,
int  y,
int  width,
const uint32_t values 
)
static

Definition at line 471 of file pixman-access.c.

◆ to_srgb()

static uint8_t to_srgb ( float  f)
static

Definition at line 564 of file pixman-access.c.

References f, high, low, and to_linear.

Referenced by store_scanline_a8r8g8b8_32_sRGB(), and store_scanline_a8r8g8b8_sRGB_float().

Variable Documentation

◆ __dummy__a1

const void* const __dummy__a1
static

Definition at line 506 of file pixman-access.c.

◆ __dummy__a1b1g1r1

const void* const __dummy__a1b1g1r1
static

Definition at line 505 of file pixman-access.c.

◆ __dummy__a1b5g5r5

const void* const __dummy__a1b5g5r5
static

Definition at line 485 of file pixman-access.c.

◆ __dummy__a1r1g1b1

const void* const __dummy__a1r1g1b1
static

Definition at line 504 of file pixman-access.c.

◆ __dummy__a1r5g5b5

const void* const __dummy__a1r5g5b5
static

Definition at line 483 of file pixman-access.c.

◆ __dummy__a2b2g2r2

const void* const __dummy__a2b2g2r2
static

Definition at line 497 of file pixman-access.c.

◆ __dummy__a2r2g2b2

const void* const __dummy__a2r2g2b2
static

Definition at line 496 of file pixman-access.c.

◆ __dummy__a4

const void* const __dummy__a4
static

Definition at line 499 of file pixman-access.c.

◆ __dummy__a4b4g4r4

const void* const __dummy__a4b4g4r4
static

Definition at line 489 of file pixman-access.c.

◆ __dummy__a4r4g4b4

const void* const __dummy__a4r4g4b4
static

Definition at line 487 of file pixman-access.c.

◆ __dummy__a8

const void* const __dummy__a8
static

Definition at line 491 of file pixman-access.c.

◆ __dummy__a8b8g8r8

const void* const __dummy__a8b8g8r8
static

Definition at line 472 of file pixman-access.c.

◆ __dummy__a8r8g8b8

const void* const __dummy__a8r8g8b8
static

Definition at line 470 of file pixman-access.c.

◆ __dummy__b1g2r1

const void* const __dummy__b1g2r1
static

Definition at line 503 of file pixman-access.c.

◆ __dummy__b2g3r3

const void* const __dummy__b2g3r3
static

Definition at line 495 of file pixman-access.c.

◆ __dummy__b5g6r5

const void* const __dummy__b5g6r5
static

Definition at line 482 of file pixman-access.c.

◆ __dummy__b8g8r8

const void* const __dummy__b8g8r8
static

Definition at line 480 of file pixman-access.c.

◆ __dummy__b8g8r8a8

const void* const __dummy__b8g8r8a8
static

Definition at line 475 of file pixman-access.c.

◆ __dummy__b8g8r8x8

const void* const __dummy__b8g8r8x8
static

Definition at line 476 of file pixman-access.c.

◆ __dummy__c4

const void* const __dummy__c4
static

Definition at line 501 of file pixman-access.c.

◆ __dummy__c8

const void* const __dummy__c8
static

Definition at line 492 of file pixman-access.c.

◆ __dummy__g1

const void* const __dummy__g1
static

Definition at line 507 of file pixman-access.c.

◆ __dummy__g4

const void* const __dummy__g4
static

Definition at line 500 of file pixman-access.c.

◆ __dummy__g8

const void* const __dummy__g8
static

Definition at line 493 of file pixman-access.c.

◆ __dummy__r1g2b1

const void* const __dummy__r1g2b1
static

Definition at line 502 of file pixman-access.c.

◆ __dummy__r3g3b2

const void* const __dummy__r3g3b2
static

Definition at line 494 of file pixman-access.c.

◆ __dummy__r5g6b5

const void* const __dummy__r5g6b5
static

Definition at line 481 of file pixman-access.c.

◆ __dummy__r8g8b8

const void* const __dummy__r8g8b8
static

Definition at line 479 of file pixman-access.c.

◆ __dummy__r8g8b8a8

const void* const __dummy__r8g8b8a8
static

Definition at line 478 of file pixman-access.c.

◆ __dummy__r8g8b8x8

const void* const __dummy__r8g8b8x8
static

Definition at line 477 of file pixman-access.c.

◆ __dummy__x14r6g6b6

const void* const __dummy__x14r6g6b6
static

Definition at line 474 of file pixman-access.c.

◆ __dummy__x1b5g5r5

const void* const __dummy__x1b5g5r5
static

Definition at line 486 of file pixman-access.c.

◆ __dummy__x1r5g5b5

const void* const __dummy__x1r5g5b5
static

Definition at line 484 of file pixman-access.c.

◆ __dummy__x4a4

const void* const __dummy__x4a4
static

Definition at line 498 of file pixman-access.c.

◆ __dummy__x4b4g4r4

const void* const __dummy__x4b4g4r4
static

Definition at line 490 of file pixman-access.c.

◆ __dummy__x4r4g4b4

const void* const __dummy__x4r4g4b4
static

Definition at line 488 of file pixman-access.c.

◆ __dummy__x8b8g8r8

const void* const __dummy__x8b8g8r8
static

Definition at line 473 of file pixman-access.c.

◆ __dummy__x8r8g8b8

const void* const __dummy__x8r8g8b8
static

Definition at line 471 of file pixman-access.c.

◆ accessors

const format_info_t accessors[]
static

Definition at line 1393 of file pixman-access.c.

Referenced by setup_accessors().

◆ to_linear

◆ to_linear_u

const uint32_t to_linear_u[256]
static

Definition at line 514 of file pixman-access.c.