Lines Matching refs:bpp
58 static int generate_rowbytes(int src_w, int dst_w, int bpp) in generate_rowbytes() argument
61 int bpp; in generate_rowbytes() member
73 (dst_w == last.dst_w) && (bpp == last.bpp) ) { in generate_rowbytes()
76 last.bpp = bpp; in generate_rowbytes()
80 switch (bpp) { in generate_rowbytes()
91 SDL_SetError("ASM stretch of %d bytes isn't supported\n", bpp); in generate_rowbytes()
99 if ( bpp == 2 ) { in generate_rowbytes()
105 if ( bpp == 2 ) { in generate_rowbytes()
189 const int bpp = dst->format->BytesPerPixel; in SDL_SoftStretch() local
253 dst_width = dstrect->w*bpp; in SDL_SoftStretch()
257 if ( (bpp != 3) && in SDL_SoftStretch()
258 (generate_rowbytes(srcrect->w, dstrect->w, bpp) < 0) ) { in SDL_SoftStretch()
266 + (dstrect->x*bpp); in SDL_SoftStretch()
269 + (srcrect->x*bpp); in SDL_SoftStretch()
274 switch (bpp) { in SDL_SoftStretch()
305 switch (bpp) { in SDL_SoftStretch()