Lines Matching refs:pitch
11 BytesPerPixel (e.g. 4) and the result is stored into Uint16 pitch
13 the value is clamped as 65532). As a result SDL_Surface with a pitch
49 - Uint16 pitch;
50 + unsigned int pitch = 0;
53 - pitch = surface->w*surface->format->BytesPerPixel;
56 + pitch += (unsigned int)surface->w;
57 + if (pitch < surface->w) {
64 - pitch = (pitch+7)/8;
65 + if (pitch % 8) {
66 + pitch = pitch / 8 + 1;
68 + pitch = pitch / 8;
72 - pitch = (pitch+1)/2;
73 + if (pitch % 2) {
74 + pitch = pitch / 2 + 1;
76 + pitch = pitch / 2;
82 - pitch = (pitch + 3) & ~3; /* 4-byte aligning */
83 - return(pitch);
85 + if (pitch & 3) {
86 + if (pitch + 3 < pitch) {
90 + pitch = (pitch + 3) & ~3;
92 + if (pitch > 0xFFFF) {
96 + return((Uint16)pitch);
106 video->pitch = SDL_CalculatePitch(video);
107 + if (!current->pitch) {
119 current -> pitch = SDL_CalculatePitch (current) ;
120 + if (!current->pitch) {
133 current->pitch = SDL_CalculatePitch(current);
134 + if (!current->pitch) {
146 current->pitch = SDL_CalculatePitch(current);
147 + if (!current->pitch) {
152 s_pixels = memalign(16, current->h * current->pitch);
159 video->pitch = SDL_CalculatePitch(video);
160 + if (!current->pitch) {
172 video->pitch = SDL_CalculatePitch(video);
173 + if (!current->pitch) {
185 current->pitch = SDL_CalculatePitch(current);
186 + if (!current->pitch) {