Skip to content
Myr

stride.h

This file

Path

stride.h

9 lines · 198 bytes · C

Last changed by

Not known.

History of this file

Take it

1#pragma once23#include <pixman.h>45static inline int6stride_for_format_and_width(pixman_format_code_t format, int width)7{8    return (((PIXMAN_FORMAT_BPP(format) * width + 7) / 8 + 4 - 1) & -4);9}