Home | History | Annotate | Download | only in video

Lines Matching refs:dst

331 int SDL_SaveBMP_RW (SDL_Surface *saveme, SDL_RWops *dst, int freedst)
360 if ( dst ) {
419 fp_offset = SDL_RWtell(dst);
421 SDL_RWwrite(dst, magic, 2, 1);
422 SDL_WriteLE32(dst, bfSize);
423 SDL_WriteLE16(dst, bfReserved1);
424 SDL_WriteLE16(dst, bfReserved2);
425 SDL_WriteLE32(dst, bfOffBits);
445 SDL_WriteLE32(dst, biSize);
446 SDL_WriteLE32(dst, biWidth);
447 SDL_WriteLE32(dst, biHeight);
448 SDL_WriteLE16(dst, biPlanes);
449 SDL_WriteLE16(dst, biBitCount);
450 SDL_WriteLE32(dst, biCompression);
451 SDL_WriteLE32(dst, biSizeImage);
452 SDL_WriteLE32(dst, biXPelsPerMeter);
453 SDL_WriteLE32(dst, biYPelsPerMeter);
454 SDL_WriteLE32(dst, biClrUsed);
455 SDL_WriteLE32(dst, biClrImportant);
465 SDL_RWwrite(dst, &colors[i].b, 1, 1);
466 SDL_RWwrite(dst, &colors[i].g, 1, 1);
467 SDL_RWwrite(dst, &colors[i].r, 1, 1);
468 SDL_RWwrite(dst, &colors[i].unused, 1, 1);
473 bfOffBits = SDL_RWtell(dst)-fp_offset;
474 if ( SDL_RWseek(dst, fp_offset+10, RW_SEEK_SET) < 0 ) {
477 SDL_WriteLE32(dst, bfOffBits);
478 if ( SDL_RWseek(dst, fp_offset+bfOffBits, RW_SEEK_SET) < 0 ) {
487 if ( SDL_RWwrite(dst, bits, 1, bw) != bw) {
494 SDL_RWwrite(dst, &padbyte, 1, 1);
500 bfSize = SDL_RWtell(dst)-fp_offset;
501 if ( SDL_RWseek(dst, fp_offset+2, RW_SEEK_SET) < 0 ) {
504 SDL_WriteLE32(dst, bfSize);
505 if ( SDL_RWseek(dst, fp_offset+bfSize, RW_SEEK_SET) < 0 ) {
516 if ( freedst && dst ) {
517 SDL_RWclose(dst);