File: stride.h

package info (click to toggle)
fcft 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,248 kB
  • sloc: ansic: 8,160; python: 115; sh: 44; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 198 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
#pragma once

#include <pixman.h>

static inline int
stride_for_format_and_width(pixman_format_code_t format, int width)
{
    return (((PIXMAN_FORMAT_BPP(format) * width + 7) / 8 + 4 - 1) & -4);
}