Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audiotypecvt.c @ 4889:8c9cbb623d55
Fixed crashing loading 48KHz audio, contributed by Terry Welsh
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 18 Sep 2010 18:15:08 -0700 |
parents | f7b03b6838cb |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
4887:0a77d2fc95ad | 4889:8c9cbb623d55 |
---|---|
2306 Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1; | 2306 Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1; |
2307 const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1; | 2307 const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1; |
2308 const Uint8 *target = ((const Uint8 *) cvt->buf) - 1; | 2308 const Uint8 *target = ((const Uint8 *) cvt->buf) - 1; |
2309 Uint8 sample0 = src[0]; | 2309 Uint8 sample0 = src[0]; |
2310 Uint8 last_sample0 = sample0; | 2310 Uint8 last_sample0 = sample0; |
2311 while (dst != target) { | 2311 while (dst > target) { |
2312 dst[0] = sample0; | 2312 dst[0] = sample0; |
2313 dst--; | 2313 dst--; |
2314 eps += srcsize; | 2314 eps += srcsize; |
2315 if ((eps << 1) >= dstsize) { | 2315 if ((eps << 1) >= dstsize) { |
2316 src--; | 2316 src--; |
2338 Uint8 *dst = (Uint8 *) cvt->buf; | 2338 Uint8 *dst = (Uint8 *) cvt->buf; |
2339 const Uint8 *src = (Uint8 *) cvt->buf; | 2339 const Uint8 *src = (Uint8 *) cvt->buf; |
2340 const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize); | 2340 const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize); |
2341 Uint8 sample0 = src[0]; | 2341 Uint8 sample0 = src[0]; |
2342 Uint8 last_sample0 = sample0; | 2342 Uint8 last_sample0 = sample0; |
2343 while (dst != target) { | 2343 while (dst < target) { |
2344 src++; | 2344 src++; |
2345 eps += dstsize; | 2345 eps += dstsize; |
2346 if ((eps << 1) >= srcsize) { | 2346 if ((eps << 1) >= srcsize) { |
2347 dst[0] = sample0; | 2347 dst[0] = sample0; |
2348 dst++; | 2348 dst++; |
2372 const Uint8 *target = ((const Uint8 *) cvt->buf) - 2; | 2372 const Uint8 *target = ((const Uint8 *) cvt->buf) - 2; |
2373 Uint8 sample1 = src[1]; | 2373 Uint8 sample1 = src[1]; |
2374 Uint8 sample0 = src[0]; | 2374 Uint8 sample0 = src[0]; |
2375 Uint8 last_sample1 = sample1; | 2375 Uint8 last_sample1 = sample1; |
2376 Uint8 last_sample0 = sample0; | 2376 Uint8 last_sample0 = sample0; |
2377 while (dst != target) { | 2377 while (dst > target) { |
2378 dst[1] = sample1; | 2378 dst[1] = sample1; |
2379 dst[0] = sample0; | 2379 dst[0] = sample0; |
2380 dst -= 2; | 2380 dst -= 2; |
2381 eps += srcsize; | 2381 eps += srcsize; |
2382 if ((eps << 1) >= dstsize) { | 2382 if ((eps << 1) >= dstsize) { |
2409 const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize); | 2409 const Uint8 *target = (const Uint8 *) (cvt->buf + dstsize); |
2410 Uint8 sample0 = src[0]; | 2410 Uint8 sample0 = src[0]; |
2411 Uint8 sample1 = src[1]; | 2411 Uint8 sample1 = src[1]; |
2412 Uint8 last_sample0 = sample0; | 2412 Uint8 last_sample0 = sample0; |
2413 Uint8 last_sample1 = sample1; | 2413 Uint8 last_sample1 = sample1; |
2414 while (dst != target) { | 2414 while (dst < target) { |
2415 src += 2; | 2415 src += 2; |
2416 eps += dstsize; | 2416 eps += dstsize; |
2417 if ((eps << 1) >= srcsize) { | 2417 if ((eps << 1) >= srcsize) { |
2418 dst[0] = sample0; | 2418 dst[0] = sample0; |
2419 dst[1] = sample1; | 2419 dst[1] = sample1; |
2450 Uint8 sample0 = src[0]; | 2450 Uint8 sample0 = src[0]; |
2451 Uint8 last_sample3 = sample3; | 2451 Uint8 last_sample3 = sample3; |
2452 Uint8 last_sample2 = sample2; | 2452 Uint8 last_sample2 = sample2; |
2453 Uint8 last_sample1 = sample1; | 2453 Uint8 last_sample1 = sample1; |
2454 Uint8 last_sample0 = sample0; | 2454 Uint8 last_sample0 = sample0; |
2455 while (dst != target) { | 2455 while (dst > target) { |
2456 dst[3] = sample3; | 2456 dst[3] = sample3; |
2457 dst[2] = sample2; | 2457 dst[2] = sample2; |
2458 dst[1] = sample1; | 2458 dst[1] = sample1; |
2459 dst[0] = sample0; | 2459 dst[0] = sample0; |
2460 dst -= 4; | 2460 dst -= 4; |
2497 Uint8 sample3 = src[3]; | 2497 Uint8 sample3 = src[3]; |
2498 Uint8 last_sample0 = sample0; | 2498 Uint8 last_sample0 = sample0; |
2499 Uint8 last_sample1 = sample1; | 2499 Uint8 last_sample1 = sample1; |
2500 Uint8 last_sample2 = sample2; | 2500 Uint8 last_sample2 = sample2; |
2501 Uint8 last_sample3 = sample3; | 2501 Uint8 last_sample3 = sample3; |
2502 while (dst != target) { | 2502 while (dst < target) { |
2503 src += 4; | 2503 src += 4; |
2504 eps += dstsize; | 2504 eps += dstsize; |
2505 if ((eps << 1) >= srcsize) { | 2505 if ((eps << 1) >= srcsize) { |
2506 dst[0] = sample0; | 2506 dst[0] = sample0; |
2507 dst[1] = sample1; | 2507 dst[1] = sample1; |
2548 Uint8 last_sample4 = sample4; | 2548 Uint8 last_sample4 = sample4; |
2549 Uint8 last_sample3 = sample3; | 2549 Uint8 last_sample3 = sample3; |
2550 Uint8 last_sample2 = sample2; | 2550 Uint8 last_sample2 = sample2; |
2551 Uint8 last_sample1 = sample1; | 2551 Uint8 last_sample1 = sample1; |
2552 Uint8 last_sample0 = sample0; | 2552 Uint8 last_sample0 = sample0; |
2553 while (dst != target) { | 2553 while (dst > target) { |
2554 dst[5] = sample5; | 2554 dst[5] = sample5; |
2555 dst[4] = sample4; | 2555 dst[4] = sample4; |
2556 dst[3] = sample3; | 2556 dst[3] = sample3; |
2557 dst[2] = sample2; | 2557 dst[2] = sample2; |
2558 dst[1] = sample1; | 2558 dst[1] = sample1; |
2605 Uint8 last_sample1 = sample1; | 2605 Uint8 last_sample1 = sample1; |
2606 Uint8 last_sample2 = sample2; | 2606 Uint8 last_sample2 = sample2; |
2607 Uint8 last_sample3 = sample3; | 2607 Uint8 last_sample3 = sample3; |
2608 Uint8 last_sample4 = sample4; | 2608 Uint8 last_sample4 = sample4; |
2609 Uint8 last_sample5 = sample5; | 2609 Uint8 last_sample5 = sample5; |
2610 while (dst != target) { | 2610 while (dst < target) { |
2611 src += 6; | 2611 src += 6; |
2612 eps += dstsize; | 2612 eps += dstsize; |
2613 if ((eps << 1) >= srcsize) { | 2613 if ((eps << 1) >= srcsize) { |
2614 dst[0] = sample0; | 2614 dst[0] = sample0; |
2615 dst[1] = sample1; | 2615 dst[1] = sample1; |
2666 Uint8 last_sample4 = sample4; | 2666 Uint8 last_sample4 = sample4; |
2667 Uint8 last_sample3 = sample3; | 2667 Uint8 last_sample3 = sample3; |
2668 Uint8 last_sample2 = sample2; | 2668 Uint8 last_sample2 = sample2; |
2669 Uint8 last_sample1 = sample1; | 2669 Uint8 last_sample1 = sample1; |
2670 Uint8 last_sample0 = sample0; | 2670 Uint8 last_sample0 = sample0; |
2671 while (dst != target) { | 2671 while (dst > target) { |
2672 dst[7] = sample7; | 2672 dst[7] = sample7; |
2673 dst[6] = sample6; | 2673 dst[6] = sample6; |
2674 dst[5] = sample5; | 2674 dst[5] = sample5; |
2675 dst[4] = sample4; | 2675 dst[4] = sample4; |
2676 dst[3] = sample3; | 2676 dst[3] = sample3; |
2733 Uint8 last_sample3 = sample3; | 2733 Uint8 last_sample3 = sample3; |
2734 Uint8 last_sample4 = sample4; | 2734 Uint8 last_sample4 = sample4; |
2735 Uint8 last_sample5 = sample5; | 2735 Uint8 last_sample5 = sample5; |
2736 Uint8 last_sample6 = sample6; | 2736 Uint8 last_sample6 = sample6; |
2737 Uint8 last_sample7 = sample7; | 2737 Uint8 last_sample7 = sample7; |
2738 while (dst != target) { | 2738 while (dst < target) { |
2739 src += 8; | 2739 src += 8; |
2740 eps += dstsize; | 2740 eps += dstsize; |
2741 if ((eps << 1) >= srcsize) { | 2741 if ((eps << 1) >= srcsize) { |
2742 dst[0] = sample0; | 2742 dst[0] = sample0; |
2743 dst[1] = sample1; | 2743 dst[1] = sample1; |
2786 Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1; | 2786 Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1; |
2787 const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1; | 2787 const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1; |
2788 const Sint8 *target = ((const Sint8 *) cvt->buf) - 1; | 2788 const Sint8 *target = ((const Sint8 *) cvt->buf) - 1; |
2789 Sint8 sample0 = ((Sint8) src[0]); | 2789 Sint8 sample0 = ((Sint8) src[0]); |
2790 Sint8 last_sample0 = sample0; | 2790 Sint8 last_sample0 = sample0; |
2791 while (dst != target) { | 2791 while (dst > target) { |
2792 dst[0] = ((Sint8) sample0); | 2792 dst[0] = ((Sint8) sample0); |
2793 dst--; | 2793 dst--; |
2794 eps += srcsize; | 2794 eps += srcsize; |
2795 if ((eps << 1) >= dstsize) { | 2795 if ((eps << 1) >= dstsize) { |
2796 src--; | 2796 src--; |
2818 Sint8 *dst = (Sint8 *) cvt->buf; | 2818 Sint8 *dst = (Sint8 *) cvt->buf; |
2819 const Sint8 *src = (Sint8 *) cvt->buf; | 2819 const Sint8 *src = (Sint8 *) cvt->buf; |
2820 const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize); | 2820 const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize); |
2821 Sint8 sample0 = ((Sint8) src[0]); | 2821 Sint8 sample0 = ((Sint8) src[0]); |
2822 Sint8 last_sample0 = sample0; | 2822 Sint8 last_sample0 = sample0; |
2823 while (dst != target) { | 2823 while (dst < target) { |
2824 src++; | 2824 src++; |
2825 eps += dstsize; | 2825 eps += dstsize; |
2826 if ((eps << 1) >= srcsize) { | 2826 if ((eps << 1) >= srcsize) { |
2827 dst[0] = ((Sint8) sample0); | 2827 dst[0] = ((Sint8) sample0); |
2828 dst++; | 2828 dst++; |
2852 const Sint8 *target = ((const Sint8 *) cvt->buf) - 2; | 2852 const Sint8 *target = ((const Sint8 *) cvt->buf) - 2; |
2853 Sint8 sample1 = ((Sint8) src[1]); | 2853 Sint8 sample1 = ((Sint8) src[1]); |
2854 Sint8 sample0 = ((Sint8) src[0]); | 2854 Sint8 sample0 = ((Sint8) src[0]); |
2855 Sint8 last_sample1 = sample1; | 2855 Sint8 last_sample1 = sample1; |
2856 Sint8 last_sample0 = sample0; | 2856 Sint8 last_sample0 = sample0; |
2857 while (dst != target) { | 2857 while (dst > target) { |
2858 dst[1] = ((Sint8) sample1); | 2858 dst[1] = ((Sint8) sample1); |
2859 dst[0] = ((Sint8) sample0); | 2859 dst[0] = ((Sint8) sample0); |
2860 dst -= 2; | 2860 dst -= 2; |
2861 eps += srcsize; | 2861 eps += srcsize; |
2862 if ((eps << 1) >= dstsize) { | 2862 if ((eps << 1) >= dstsize) { |
2889 const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize); | 2889 const Sint8 *target = (const Sint8 *) (cvt->buf + dstsize); |
2890 Sint8 sample0 = ((Sint8) src[0]); | 2890 Sint8 sample0 = ((Sint8) src[0]); |
2891 Sint8 sample1 = ((Sint8) src[1]); | 2891 Sint8 sample1 = ((Sint8) src[1]); |
2892 Sint8 last_sample0 = sample0; | 2892 Sint8 last_sample0 = sample0; |
2893 Sint8 last_sample1 = sample1; | 2893 Sint8 last_sample1 = sample1; |
2894 while (dst != target) { | 2894 while (dst < target) { |
2895 src += 2; | 2895 src += 2; |
2896 eps += dstsize; | 2896 eps += dstsize; |
2897 if ((eps << 1) >= srcsize) { | 2897 if ((eps << 1) >= srcsize) { |
2898 dst[0] = ((Sint8) sample0); | 2898 dst[0] = ((Sint8) sample0); |
2899 dst[1] = ((Sint8) sample1); | 2899 dst[1] = ((Sint8) sample1); |
2930 Sint8 sample0 = ((Sint8) src[0]); | 2930 Sint8 sample0 = ((Sint8) src[0]); |
2931 Sint8 last_sample3 = sample3; | 2931 Sint8 last_sample3 = sample3; |
2932 Sint8 last_sample2 = sample2; | 2932 Sint8 last_sample2 = sample2; |
2933 Sint8 last_sample1 = sample1; | 2933 Sint8 last_sample1 = sample1; |
2934 Sint8 last_sample0 = sample0; | 2934 Sint8 last_sample0 = sample0; |
2935 while (dst != target) { | 2935 while (dst > target) { |
2936 dst[3] = ((Sint8) sample3); | 2936 dst[3] = ((Sint8) sample3); |
2937 dst[2] = ((Sint8) sample2); | 2937 dst[2] = ((Sint8) sample2); |
2938 dst[1] = ((Sint8) sample1); | 2938 dst[1] = ((Sint8) sample1); |
2939 dst[0] = ((Sint8) sample0); | 2939 dst[0] = ((Sint8) sample0); |
2940 dst -= 4; | 2940 dst -= 4; |
2977 Sint8 sample3 = ((Sint8) src[3]); | 2977 Sint8 sample3 = ((Sint8) src[3]); |
2978 Sint8 last_sample0 = sample0; | 2978 Sint8 last_sample0 = sample0; |
2979 Sint8 last_sample1 = sample1; | 2979 Sint8 last_sample1 = sample1; |
2980 Sint8 last_sample2 = sample2; | 2980 Sint8 last_sample2 = sample2; |
2981 Sint8 last_sample3 = sample3; | 2981 Sint8 last_sample3 = sample3; |
2982 while (dst != target) { | 2982 while (dst < target) { |
2983 src += 4; | 2983 src += 4; |
2984 eps += dstsize; | 2984 eps += dstsize; |
2985 if ((eps << 1) >= srcsize) { | 2985 if ((eps << 1) >= srcsize) { |
2986 dst[0] = ((Sint8) sample0); | 2986 dst[0] = ((Sint8) sample0); |
2987 dst[1] = ((Sint8) sample1); | 2987 dst[1] = ((Sint8) sample1); |
3028 Sint8 last_sample4 = sample4; | 3028 Sint8 last_sample4 = sample4; |
3029 Sint8 last_sample3 = sample3; | 3029 Sint8 last_sample3 = sample3; |
3030 Sint8 last_sample2 = sample2; | 3030 Sint8 last_sample2 = sample2; |
3031 Sint8 last_sample1 = sample1; | 3031 Sint8 last_sample1 = sample1; |
3032 Sint8 last_sample0 = sample0; | 3032 Sint8 last_sample0 = sample0; |
3033 while (dst != target) { | 3033 while (dst > target) { |
3034 dst[5] = ((Sint8) sample5); | 3034 dst[5] = ((Sint8) sample5); |
3035 dst[4] = ((Sint8) sample4); | 3035 dst[4] = ((Sint8) sample4); |
3036 dst[3] = ((Sint8) sample3); | 3036 dst[3] = ((Sint8) sample3); |
3037 dst[2] = ((Sint8) sample2); | 3037 dst[2] = ((Sint8) sample2); |
3038 dst[1] = ((Sint8) sample1); | 3038 dst[1] = ((Sint8) sample1); |
3085 Sint8 last_sample1 = sample1; | 3085 Sint8 last_sample1 = sample1; |
3086 Sint8 last_sample2 = sample2; | 3086 Sint8 last_sample2 = sample2; |
3087 Sint8 last_sample3 = sample3; | 3087 Sint8 last_sample3 = sample3; |
3088 Sint8 last_sample4 = sample4; | 3088 Sint8 last_sample4 = sample4; |
3089 Sint8 last_sample5 = sample5; | 3089 Sint8 last_sample5 = sample5; |
3090 while (dst != target) { | 3090 while (dst < target) { |
3091 src += 6; | 3091 src += 6; |
3092 eps += dstsize; | 3092 eps += dstsize; |
3093 if ((eps << 1) >= srcsize) { | 3093 if ((eps << 1) >= srcsize) { |
3094 dst[0] = ((Sint8) sample0); | 3094 dst[0] = ((Sint8) sample0); |
3095 dst[1] = ((Sint8) sample1); | 3095 dst[1] = ((Sint8) sample1); |
3146 Sint8 last_sample4 = sample4; | 3146 Sint8 last_sample4 = sample4; |
3147 Sint8 last_sample3 = sample3; | 3147 Sint8 last_sample3 = sample3; |
3148 Sint8 last_sample2 = sample2; | 3148 Sint8 last_sample2 = sample2; |
3149 Sint8 last_sample1 = sample1; | 3149 Sint8 last_sample1 = sample1; |
3150 Sint8 last_sample0 = sample0; | 3150 Sint8 last_sample0 = sample0; |
3151 while (dst != target) { | 3151 while (dst > target) { |
3152 dst[7] = ((Sint8) sample7); | 3152 dst[7] = ((Sint8) sample7); |
3153 dst[6] = ((Sint8) sample6); | 3153 dst[6] = ((Sint8) sample6); |
3154 dst[5] = ((Sint8) sample5); | 3154 dst[5] = ((Sint8) sample5); |
3155 dst[4] = ((Sint8) sample4); | 3155 dst[4] = ((Sint8) sample4); |
3156 dst[3] = ((Sint8) sample3); | 3156 dst[3] = ((Sint8) sample3); |
3213 Sint8 last_sample3 = sample3; | 3213 Sint8 last_sample3 = sample3; |
3214 Sint8 last_sample4 = sample4; | 3214 Sint8 last_sample4 = sample4; |
3215 Sint8 last_sample5 = sample5; | 3215 Sint8 last_sample5 = sample5; |
3216 Sint8 last_sample6 = sample6; | 3216 Sint8 last_sample6 = sample6; |
3217 Sint8 last_sample7 = sample7; | 3217 Sint8 last_sample7 = sample7; |
3218 while (dst != target) { | 3218 while (dst < target) { |
3219 src += 8; | 3219 src += 8; |
3220 eps += dstsize; | 3220 eps += dstsize; |
3221 if ((eps << 1) >= srcsize) { | 3221 if ((eps << 1) >= srcsize) { |
3222 dst[0] = ((Sint8) sample0); | 3222 dst[0] = ((Sint8) sample0); |
3223 dst[1] = ((Sint8) sample1); | 3223 dst[1] = ((Sint8) sample1); |
3266 Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1; | 3266 Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1; |
3267 const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1; | 3267 const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1; |
3268 const Uint16 *target = ((const Uint16 *) cvt->buf) - 1; | 3268 const Uint16 *target = ((const Uint16 *) cvt->buf) - 1; |
3269 Uint16 sample0 = SDL_SwapLE16(src[0]); | 3269 Uint16 sample0 = SDL_SwapLE16(src[0]); |
3270 Uint16 last_sample0 = sample0; | 3270 Uint16 last_sample0 = sample0; |
3271 while (dst != target) { | 3271 while (dst > target) { |
3272 dst[0] = SDL_SwapLE16(sample0); | 3272 dst[0] = SDL_SwapLE16(sample0); |
3273 dst--; | 3273 dst--; |
3274 eps += srcsize; | 3274 eps += srcsize; |
3275 if ((eps << 1) >= dstsize) { | 3275 if ((eps << 1) >= dstsize) { |
3276 src--; | 3276 src--; |
3298 Uint16 *dst = (Uint16 *) cvt->buf; | 3298 Uint16 *dst = (Uint16 *) cvt->buf; |
3299 const Uint16 *src = (Uint16 *) cvt->buf; | 3299 const Uint16 *src = (Uint16 *) cvt->buf; |
3300 const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize); | 3300 const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize); |
3301 Uint16 sample0 = SDL_SwapLE16(src[0]); | 3301 Uint16 sample0 = SDL_SwapLE16(src[0]); |
3302 Uint16 last_sample0 = sample0; | 3302 Uint16 last_sample0 = sample0; |
3303 while (dst != target) { | 3303 while (dst < target) { |
3304 src++; | 3304 src++; |
3305 eps += dstsize; | 3305 eps += dstsize; |
3306 if ((eps << 1) >= srcsize) { | 3306 if ((eps << 1) >= srcsize) { |
3307 dst[0] = SDL_SwapLE16(sample0); | 3307 dst[0] = SDL_SwapLE16(sample0); |
3308 dst++; | 3308 dst++; |
3332 const Uint16 *target = ((const Uint16 *) cvt->buf) - 2; | 3332 const Uint16 *target = ((const Uint16 *) cvt->buf) - 2; |
3333 Uint16 sample1 = SDL_SwapLE16(src[1]); | 3333 Uint16 sample1 = SDL_SwapLE16(src[1]); |
3334 Uint16 sample0 = SDL_SwapLE16(src[0]); | 3334 Uint16 sample0 = SDL_SwapLE16(src[0]); |
3335 Uint16 last_sample1 = sample1; | 3335 Uint16 last_sample1 = sample1; |
3336 Uint16 last_sample0 = sample0; | 3336 Uint16 last_sample0 = sample0; |
3337 while (dst != target) { | 3337 while (dst > target) { |
3338 dst[1] = SDL_SwapLE16(sample1); | 3338 dst[1] = SDL_SwapLE16(sample1); |
3339 dst[0] = SDL_SwapLE16(sample0); | 3339 dst[0] = SDL_SwapLE16(sample0); |
3340 dst -= 2; | 3340 dst -= 2; |
3341 eps += srcsize; | 3341 eps += srcsize; |
3342 if ((eps << 1) >= dstsize) { | 3342 if ((eps << 1) >= dstsize) { |
3369 const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize); | 3369 const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize); |
3370 Uint16 sample0 = SDL_SwapLE16(src[0]); | 3370 Uint16 sample0 = SDL_SwapLE16(src[0]); |
3371 Uint16 sample1 = SDL_SwapLE16(src[1]); | 3371 Uint16 sample1 = SDL_SwapLE16(src[1]); |
3372 Uint16 last_sample0 = sample0; | 3372 Uint16 last_sample0 = sample0; |
3373 Uint16 last_sample1 = sample1; | 3373 Uint16 last_sample1 = sample1; |
3374 while (dst != target) { | 3374 while (dst < target) { |
3375 src += 2; | 3375 src += 2; |
3376 eps += dstsize; | 3376 eps += dstsize; |
3377 if ((eps << 1) >= srcsize) { | 3377 if ((eps << 1) >= srcsize) { |
3378 dst[0] = SDL_SwapLE16(sample0); | 3378 dst[0] = SDL_SwapLE16(sample0); |
3379 dst[1] = SDL_SwapLE16(sample1); | 3379 dst[1] = SDL_SwapLE16(sample1); |
3410 Uint16 sample0 = SDL_SwapLE16(src[0]); | 3410 Uint16 sample0 = SDL_SwapLE16(src[0]); |
3411 Uint16 last_sample3 = sample3; | 3411 Uint16 last_sample3 = sample3; |
3412 Uint16 last_sample2 = sample2; | 3412 Uint16 last_sample2 = sample2; |
3413 Uint16 last_sample1 = sample1; | 3413 Uint16 last_sample1 = sample1; |
3414 Uint16 last_sample0 = sample0; | 3414 Uint16 last_sample0 = sample0; |
3415 while (dst != target) { | 3415 while (dst > target) { |
3416 dst[3] = SDL_SwapLE16(sample3); | 3416 dst[3] = SDL_SwapLE16(sample3); |
3417 dst[2] = SDL_SwapLE16(sample2); | 3417 dst[2] = SDL_SwapLE16(sample2); |
3418 dst[1] = SDL_SwapLE16(sample1); | 3418 dst[1] = SDL_SwapLE16(sample1); |
3419 dst[0] = SDL_SwapLE16(sample0); | 3419 dst[0] = SDL_SwapLE16(sample0); |
3420 dst -= 4; | 3420 dst -= 4; |
3457 Uint16 sample3 = SDL_SwapLE16(src[3]); | 3457 Uint16 sample3 = SDL_SwapLE16(src[3]); |
3458 Uint16 last_sample0 = sample0; | 3458 Uint16 last_sample0 = sample0; |
3459 Uint16 last_sample1 = sample1; | 3459 Uint16 last_sample1 = sample1; |
3460 Uint16 last_sample2 = sample2; | 3460 Uint16 last_sample2 = sample2; |
3461 Uint16 last_sample3 = sample3; | 3461 Uint16 last_sample3 = sample3; |
3462 while (dst != target) { | 3462 while (dst < target) { |
3463 src += 4; | 3463 src += 4; |
3464 eps += dstsize; | 3464 eps += dstsize; |
3465 if ((eps << 1) >= srcsize) { | 3465 if ((eps << 1) >= srcsize) { |
3466 dst[0] = SDL_SwapLE16(sample0); | 3466 dst[0] = SDL_SwapLE16(sample0); |
3467 dst[1] = SDL_SwapLE16(sample1); | 3467 dst[1] = SDL_SwapLE16(sample1); |
3508 Uint16 last_sample4 = sample4; | 3508 Uint16 last_sample4 = sample4; |
3509 Uint16 last_sample3 = sample3; | 3509 Uint16 last_sample3 = sample3; |
3510 Uint16 last_sample2 = sample2; | 3510 Uint16 last_sample2 = sample2; |
3511 Uint16 last_sample1 = sample1; | 3511 Uint16 last_sample1 = sample1; |
3512 Uint16 last_sample0 = sample0; | 3512 Uint16 last_sample0 = sample0; |
3513 while (dst != target) { | 3513 while (dst > target) { |
3514 dst[5] = SDL_SwapLE16(sample5); | 3514 dst[5] = SDL_SwapLE16(sample5); |
3515 dst[4] = SDL_SwapLE16(sample4); | 3515 dst[4] = SDL_SwapLE16(sample4); |
3516 dst[3] = SDL_SwapLE16(sample3); | 3516 dst[3] = SDL_SwapLE16(sample3); |
3517 dst[2] = SDL_SwapLE16(sample2); | 3517 dst[2] = SDL_SwapLE16(sample2); |
3518 dst[1] = SDL_SwapLE16(sample1); | 3518 dst[1] = SDL_SwapLE16(sample1); |
3565 Uint16 last_sample1 = sample1; | 3565 Uint16 last_sample1 = sample1; |
3566 Uint16 last_sample2 = sample2; | 3566 Uint16 last_sample2 = sample2; |
3567 Uint16 last_sample3 = sample3; | 3567 Uint16 last_sample3 = sample3; |
3568 Uint16 last_sample4 = sample4; | 3568 Uint16 last_sample4 = sample4; |
3569 Uint16 last_sample5 = sample5; | 3569 Uint16 last_sample5 = sample5; |
3570 while (dst != target) { | 3570 while (dst < target) { |
3571 src += 6; | 3571 src += 6; |
3572 eps += dstsize; | 3572 eps += dstsize; |
3573 if ((eps << 1) >= srcsize) { | 3573 if ((eps << 1) >= srcsize) { |
3574 dst[0] = SDL_SwapLE16(sample0); | 3574 dst[0] = SDL_SwapLE16(sample0); |
3575 dst[1] = SDL_SwapLE16(sample1); | 3575 dst[1] = SDL_SwapLE16(sample1); |
3626 Uint16 last_sample4 = sample4; | 3626 Uint16 last_sample4 = sample4; |
3627 Uint16 last_sample3 = sample3; | 3627 Uint16 last_sample3 = sample3; |
3628 Uint16 last_sample2 = sample2; | 3628 Uint16 last_sample2 = sample2; |
3629 Uint16 last_sample1 = sample1; | 3629 Uint16 last_sample1 = sample1; |
3630 Uint16 last_sample0 = sample0; | 3630 Uint16 last_sample0 = sample0; |
3631 while (dst != target) { | 3631 while (dst > target) { |
3632 dst[7] = SDL_SwapLE16(sample7); | 3632 dst[7] = SDL_SwapLE16(sample7); |
3633 dst[6] = SDL_SwapLE16(sample6); | 3633 dst[6] = SDL_SwapLE16(sample6); |
3634 dst[5] = SDL_SwapLE16(sample5); | 3634 dst[5] = SDL_SwapLE16(sample5); |
3635 dst[4] = SDL_SwapLE16(sample4); | 3635 dst[4] = SDL_SwapLE16(sample4); |
3636 dst[3] = SDL_SwapLE16(sample3); | 3636 dst[3] = SDL_SwapLE16(sample3); |
3693 Uint16 last_sample3 = sample3; | 3693 Uint16 last_sample3 = sample3; |
3694 Uint16 last_sample4 = sample4; | 3694 Uint16 last_sample4 = sample4; |
3695 Uint16 last_sample5 = sample5; | 3695 Uint16 last_sample5 = sample5; |
3696 Uint16 last_sample6 = sample6; | 3696 Uint16 last_sample6 = sample6; |
3697 Uint16 last_sample7 = sample7; | 3697 Uint16 last_sample7 = sample7; |
3698 while (dst != target) { | 3698 while (dst < target) { |
3699 src += 8; | 3699 src += 8; |
3700 eps += dstsize; | 3700 eps += dstsize; |
3701 if ((eps << 1) >= srcsize) { | 3701 if ((eps << 1) >= srcsize) { |
3702 dst[0] = SDL_SwapLE16(sample0); | 3702 dst[0] = SDL_SwapLE16(sample0); |
3703 dst[1] = SDL_SwapLE16(sample1); | 3703 dst[1] = SDL_SwapLE16(sample1); |
3746 Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1; | 3746 Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1; |
3747 const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1; | 3747 const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1; |
3748 const Sint16 *target = ((const Sint16 *) cvt->buf) - 1; | 3748 const Sint16 *target = ((const Sint16 *) cvt->buf) - 1; |
3749 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); | 3749 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); |
3750 Sint16 last_sample0 = sample0; | 3750 Sint16 last_sample0 = sample0; |
3751 while (dst != target) { | 3751 while (dst > target) { |
3752 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); | 3752 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); |
3753 dst--; | 3753 dst--; |
3754 eps += srcsize; | 3754 eps += srcsize; |
3755 if ((eps << 1) >= dstsize) { | 3755 if ((eps << 1) >= dstsize) { |
3756 src--; | 3756 src--; |
3778 Sint16 *dst = (Sint16 *) cvt->buf; | 3778 Sint16 *dst = (Sint16 *) cvt->buf; |
3779 const Sint16 *src = (Sint16 *) cvt->buf; | 3779 const Sint16 *src = (Sint16 *) cvt->buf; |
3780 const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize); | 3780 const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize); |
3781 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); | 3781 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); |
3782 Sint16 last_sample0 = sample0; | 3782 Sint16 last_sample0 = sample0; |
3783 while (dst != target) { | 3783 while (dst < target) { |
3784 src++; | 3784 src++; |
3785 eps += dstsize; | 3785 eps += dstsize; |
3786 if ((eps << 1) >= srcsize) { | 3786 if ((eps << 1) >= srcsize) { |
3787 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); | 3787 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); |
3788 dst++; | 3788 dst++; |
3812 const Sint16 *target = ((const Sint16 *) cvt->buf) - 2; | 3812 const Sint16 *target = ((const Sint16 *) cvt->buf) - 2; |
3813 Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1])); | 3813 Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1])); |
3814 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); | 3814 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); |
3815 Sint16 last_sample1 = sample1; | 3815 Sint16 last_sample1 = sample1; |
3816 Sint16 last_sample0 = sample0; | 3816 Sint16 last_sample0 = sample0; |
3817 while (dst != target) { | 3817 while (dst > target) { |
3818 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); | 3818 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); |
3819 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); | 3819 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); |
3820 dst -= 2; | 3820 dst -= 2; |
3821 eps += srcsize; | 3821 eps += srcsize; |
3822 if ((eps << 1) >= dstsize) { | 3822 if ((eps << 1) >= dstsize) { |
3849 const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize); | 3849 const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize); |
3850 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); | 3850 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); |
3851 Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1])); | 3851 Sint16 sample1 = ((Sint16) SDL_SwapLE16(src[1])); |
3852 Sint16 last_sample0 = sample0; | 3852 Sint16 last_sample0 = sample0; |
3853 Sint16 last_sample1 = sample1; | 3853 Sint16 last_sample1 = sample1; |
3854 while (dst != target) { | 3854 while (dst < target) { |
3855 src += 2; | 3855 src += 2; |
3856 eps += dstsize; | 3856 eps += dstsize; |
3857 if ((eps << 1) >= srcsize) { | 3857 if ((eps << 1) >= srcsize) { |
3858 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); | 3858 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); |
3859 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); | 3859 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); |
3890 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); | 3890 Sint16 sample0 = ((Sint16) SDL_SwapLE16(src[0])); |
3891 Sint16 last_sample3 = sample3; | 3891 Sint16 last_sample3 = sample3; |
3892 Sint16 last_sample2 = sample2; | 3892 Sint16 last_sample2 = sample2; |
3893 Sint16 last_sample1 = sample1; | 3893 Sint16 last_sample1 = sample1; |
3894 Sint16 last_sample0 = sample0; | 3894 Sint16 last_sample0 = sample0; |
3895 while (dst != target) { | 3895 while (dst > target) { |
3896 dst[3] = ((Sint16) SDL_SwapLE16(sample3)); | 3896 dst[3] = ((Sint16) SDL_SwapLE16(sample3)); |
3897 dst[2] = ((Sint16) SDL_SwapLE16(sample2)); | 3897 dst[2] = ((Sint16) SDL_SwapLE16(sample2)); |
3898 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); | 3898 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); |
3899 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); | 3899 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); |
3900 dst -= 4; | 3900 dst -= 4; |
3937 Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3])); | 3937 Sint16 sample3 = ((Sint16) SDL_SwapLE16(src[3])); |
3938 Sint16 last_sample0 = sample0; | 3938 Sint16 last_sample0 = sample0; |
3939 Sint16 last_sample1 = sample1; | 3939 Sint16 last_sample1 = sample1; |
3940 Sint16 last_sample2 = sample2; | 3940 Sint16 last_sample2 = sample2; |
3941 Sint16 last_sample3 = sample3; | 3941 Sint16 last_sample3 = sample3; |
3942 while (dst != target) { | 3942 while (dst < target) { |
3943 src += 4; | 3943 src += 4; |
3944 eps += dstsize; | 3944 eps += dstsize; |
3945 if ((eps << 1) >= srcsize) { | 3945 if ((eps << 1) >= srcsize) { |
3946 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); | 3946 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); |
3947 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); | 3947 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); |
3988 Sint16 last_sample4 = sample4; | 3988 Sint16 last_sample4 = sample4; |
3989 Sint16 last_sample3 = sample3; | 3989 Sint16 last_sample3 = sample3; |
3990 Sint16 last_sample2 = sample2; | 3990 Sint16 last_sample2 = sample2; |
3991 Sint16 last_sample1 = sample1; | 3991 Sint16 last_sample1 = sample1; |
3992 Sint16 last_sample0 = sample0; | 3992 Sint16 last_sample0 = sample0; |
3993 while (dst != target) { | 3993 while (dst > target) { |
3994 dst[5] = ((Sint16) SDL_SwapLE16(sample5)); | 3994 dst[5] = ((Sint16) SDL_SwapLE16(sample5)); |
3995 dst[4] = ((Sint16) SDL_SwapLE16(sample4)); | 3995 dst[4] = ((Sint16) SDL_SwapLE16(sample4)); |
3996 dst[3] = ((Sint16) SDL_SwapLE16(sample3)); | 3996 dst[3] = ((Sint16) SDL_SwapLE16(sample3)); |
3997 dst[2] = ((Sint16) SDL_SwapLE16(sample2)); | 3997 dst[2] = ((Sint16) SDL_SwapLE16(sample2)); |
3998 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); | 3998 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); |
4045 Sint16 last_sample1 = sample1; | 4045 Sint16 last_sample1 = sample1; |
4046 Sint16 last_sample2 = sample2; | 4046 Sint16 last_sample2 = sample2; |
4047 Sint16 last_sample3 = sample3; | 4047 Sint16 last_sample3 = sample3; |
4048 Sint16 last_sample4 = sample4; | 4048 Sint16 last_sample4 = sample4; |
4049 Sint16 last_sample5 = sample5; | 4049 Sint16 last_sample5 = sample5; |
4050 while (dst != target) { | 4050 while (dst < target) { |
4051 src += 6; | 4051 src += 6; |
4052 eps += dstsize; | 4052 eps += dstsize; |
4053 if ((eps << 1) >= srcsize) { | 4053 if ((eps << 1) >= srcsize) { |
4054 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); | 4054 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); |
4055 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); | 4055 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); |
4106 Sint16 last_sample4 = sample4; | 4106 Sint16 last_sample4 = sample4; |
4107 Sint16 last_sample3 = sample3; | 4107 Sint16 last_sample3 = sample3; |
4108 Sint16 last_sample2 = sample2; | 4108 Sint16 last_sample2 = sample2; |
4109 Sint16 last_sample1 = sample1; | 4109 Sint16 last_sample1 = sample1; |
4110 Sint16 last_sample0 = sample0; | 4110 Sint16 last_sample0 = sample0; |
4111 while (dst != target) { | 4111 while (dst > target) { |
4112 dst[7] = ((Sint16) SDL_SwapLE16(sample7)); | 4112 dst[7] = ((Sint16) SDL_SwapLE16(sample7)); |
4113 dst[6] = ((Sint16) SDL_SwapLE16(sample6)); | 4113 dst[6] = ((Sint16) SDL_SwapLE16(sample6)); |
4114 dst[5] = ((Sint16) SDL_SwapLE16(sample5)); | 4114 dst[5] = ((Sint16) SDL_SwapLE16(sample5)); |
4115 dst[4] = ((Sint16) SDL_SwapLE16(sample4)); | 4115 dst[4] = ((Sint16) SDL_SwapLE16(sample4)); |
4116 dst[3] = ((Sint16) SDL_SwapLE16(sample3)); | 4116 dst[3] = ((Sint16) SDL_SwapLE16(sample3)); |
4173 Sint16 last_sample3 = sample3; | 4173 Sint16 last_sample3 = sample3; |
4174 Sint16 last_sample4 = sample4; | 4174 Sint16 last_sample4 = sample4; |
4175 Sint16 last_sample5 = sample5; | 4175 Sint16 last_sample5 = sample5; |
4176 Sint16 last_sample6 = sample6; | 4176 Sint16 last_sample6 = sample6; |
4177 Sint16 last_sample7 = sample7; | 4177 Sint16 last_sample7 = sample7; |
4178 while (dst != target) { | 4178 while (dst < target) { |
4179 src += 8; | 4179 src += 8; |
4180 eps += dstsize; | 4180 eps += dstsize; |
4181 if ((eps << 1) >= srcsize) { | 4181 if ((eps << 1) >= srcsize) { |
4182 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); | 4182 dst[0] = ((Sint16) SDL_SwapLE16(sample0)); |
4183 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); | 4183 dst[1] = ((Sint16) SDL_SwapLE16(sample1)); |
4226 Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1; | 4226 Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1; |
4227 const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1; | 4227 const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1; |
4228 const Uint16 *target = ((const Uint16 *) cvt->buf) - 1; | 4228 const Uint16 *target = ((const Uint16 *) cvt->buf) - 1; |
4229 Uint16 sample0 = SDL_SwapBE16(src[0]); | 4229 Uint16 sample0 = SDL_SwapBE16(src[0]); |
4230 Uint16 last_sample0 = sample0; | 4230 Uint16 last_sample0 = sample0; |
4231 while (dst != target) { | 4231 while (dst > target) { |
4232 dst[0] = SDL_SwapBE16(sample0); | 4232 dst[0] = SDL_SwapBE16(sample0); |
4233 dst--; | 4233 dst--; |
4234 eps += srcsize; | 4234 eps += srcsize; |
4235 if ((eps << 1) >= dstsize) { | 4235 if ((eps << 1) >= dstsize) { |
4236 src--; | 4236 src--; |
4258 Uint16 *dst = (Uint16 *) cvt->buf; | 4258 Uint16 *dst = (Uint16 *) cvt->buf; |
4259 const Uint16 *src = (Uint16 *) cvt->buf; | 4259 const Uint16 *src = (Uint16 *) cvt->buf; |
4260 const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize); | 4260 const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize); |
4261 Uint16 sample0 = SDL_SwapBE16(src[0]); | 4261 Uint16 sample0 = SDL_SwapBE16(src[0]); |
4262 Uint16 last_sample0 = sample0; | 4262 Uint16 last_sample0 = sample0; |
4263 while (dst != target) { | 4263 while (dst < target) { |
4264 src++; | 4264 src++; |
4265 eps += dstsize; | 4265 eps += dstsize; |
4266 if ((eps << 1) >= srcsize) { | 4266 if ((eps << 1) >= srcsize) { |
4267 dst[0] = SDL_SwapBE16(sample0); | 4267 dst[0] = SDL_SwapBE16(sample0); |
4268 dst++; | 4268 dst++; |
4292 const Uint16 *target = ((const Uint16 *) cvt->buf) - 2; | 4292 const Uint16 *target = ((const Uint16 *) cvt->buf) - 2; |
4293 Uint16 sample1 = SDL_SwapBE16(src[1]); | 4293 Uint16 sample1 = SDL_SwapBE16(src[1]); |
4294 Uint16 sample0 = SDL_SwapBE16(src[0]); | 4294 Uint16 sample0 = SDL_SwapBE16(src[0]); |
4295 Uint16 last_sample1 = sample1; | 4295 Uint16 last_sample1 = sample1; |
4296 Uint16 last_sample0 = sample0; | 4296 Uint16 last_sample0 = sample0; |
4297 while (dst != target) { | 4297 while (dst > target) { |
4298 dst[1] = SDL_SwapBE16(sample1); | 4298 dst[1] = SDL_SwapBE16(sample1); |
4299 dst[0] = SDL_SwapBE16(sample0); | 4299 dst[0] = SDL_SwapBE16(sample0); |
4300 dst -= 2; | 4300 dst -= 2; |
4301 eps += srcsize; | 4301 eps += srcsize; |
4302 if ((eps << 1) >= dstsize) { | 4302 if ((eps << 1) >= dstsize) { |
4329 const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize); | 4329 const Uint16 *target = (const Uint16 *) (cvt->buf + dstsize); |
4330 Uint16 sample0 = SDL_SwapBE16(src[0]); | 4330 Uint16 sample0 = SDL_SwapBE16(src[0]); |
4331 Uint16 sample1 = SDL_SwapBE16(src[1]); | 4331 Uint16 sample1 = SDL_SwapBE16(src[1]); |
4332 Uint16 last_sample0 = sample0; | 4332 Uint16 last_sample0 = sample0; |
4333 Uint16 last_sample1 = sample1; | 4333 Uint16 last_sample1 = sample1; |
4334 while (dst != target) { | 4334 while (dst < target) { |
4335 src += 2; | 4335 src += 2; |
4336 eps += dstsize; | 4336 eps += dstsize; |
4337 if ((eps << 1) >= srcsize) { | 4337 if ((eps << 1) >= srcsize) { |
4338 dst[0] = SDL_SwapBE16(sample0); | 4338 dst[0] = SDL_SwapBE16(sample0); |
4339 dst[1] = SDL_SwapBE16(sample1); | 4339 dst[1] = SDL_SwapBE16(sample1); |
4370 Uint16 sample0 = SDL_SwapBE16(src[0]); | 4370 Uint16 sample0 = SDL_SwapBE16(src[0]); |
4371 Uint16 last_sample3 = sample3; | 4371 Uint16 last_sample3 = sample3; |
4372 Uint16 last_sample2 = sample2; | 4372 Uint16 last_sample2 = sample2; |
4373 Uint16 last_sample1 = sample1; | 4373 Uint16 last_sample1 = sample1; |
4374 Uint16 last_sample0 = sample0; | 4374 Uint16 last_sample0 = sample0; |
4375 while (dst != target) { | 4375 while (dst > target) { |
4376 dst[3] = SDL_SwapBE16(sample3); | 4376 dst[3] = SDL_SwapBE16(sample3); |
4377 dst[2] = SDL_SwapBE16(sample2); | 4377 dst[2] = SDL_SwapBE16(sample2); |
4378 dst[1] = SDL_SwapBE16(sample1); | 4378 dst[1] = SDL_SwapBE16(sample1); |
4379 dst[0] = SDL_SwapBE16(sample0); | 4379 dst[0] = SDL_SwapBE16(sample0); |
4380 dst -= 4; | 4380 dst -= 4; |
4417 Uint16 sample3 = SDL_SwapBE16(src[3]); | 4417 Uint16 sample3 = SDL_SwapBE16(src[3]); |
4418 Uint16 last_sample0 = sample0; | 4418 Uint16 last_sample0 = sample0; |
4419 Uint16 last_sample1 = sample1; | 4419 Uint16 last_sample1 = sample1; |
4420 Uint16 last_sample2 = sample2; | 4420 Uint16 last_sample2 = sample2; |
4421 Uint16 last_sample3 = sample3; | 4421 Uint16 last_sample3 = sample3; |
4422 while (dst != target) { | 4422 while (dst < target) { |
4423 src += 4; | 4423 src += 4; |
4424 eps += dstsize; | 4424 eps += dstsize; |
4425 if ((eps << 1) >= srcsize) { | 4425 if ((eps << 1) >= srcsize) { |
4426 dst[0] = SDL_SwapBE16(sample0); | 4426 dst[0] = SDL_SwapBE16(sample0); |
4427 dst[1] = SDL_SwapBE16(sample1); | 4427 dst[1] = SDL_SwapBE16(sample1); |
4468 Uint16 last_sample4 = sample4; | 4468 Uint16 last_sample4 = sample4; |
4469 Uint16 last_sample3 = sample3; | 4469 Uint16 last_sample3 = sample3; |
4470 Uint16 last_sample2 = sample2; | 4470 Uint16 last_sample2 = sample2; |
4471 Uint16 last_sample1 = sample1; | 4471 Uint16 last_sample1 = sample1; |
4472 Uint16 last_sample0 = sample0; | 4472 Uint16 last_sample0 = sample0; |
4473 while (dst != target) { | 4473 while (dst > target) { |
4474 dst[5] = SDL_SwapBE16(sample5); | 4474 dst[5] = SDL_SwapBE16(sample5); |
4475 dst[4] = SDL_SwapBE16(sample4); | 4475 dst[4] = SDL_SwapBE16(sample4); |
4476 dst[3] = SDL_SwapBE16(sample3); | 4476 dst[3] = SDL_SwapBE16(sample3); |
4477 dst[2] = SDL_SwapBE16(sample2); | 4477 dst[2] = SDL_SwapBE16(sample2); |
4478 dst[1] = SDL_SwapBE16(sample1); | 4478 dst[1] = SDL_SwapBE16(sample1); |
4525 Uint16 last_sample1 = sample1; | 4525 Uint16 last_sample1 = sample1; |
4526 Uint16 last_sample2 = sample2; | 4526 Uint16 last_sample2 = sample2; |
4527 Uint16 last_sample3 = sample3; | 4527 Uint16 last_sample3 = sample3; |
4528 Uint16 last_sample4 = sample4; | 4528 Uint16 last_sample4 = sample4; |
4529 Uint16 last_sample5 = sample5; | 4529 Uint16 last_sample5 = sample5; |
4530 while (dst != target) { | 4530 while (dst < target) { |
4531 src += 6; | 4531 src += 6; |
4532 eps += dstsize; | 4532 eps += dstsize; |
4533 if ((eps << 1) >= srcsize) { | 4533 if ((eps << 1) >= srcsize) { |
4534 dst[0] = SDL_SwapBE16(sample0); | 4534 dst[0] = SDL_SwapBE16(sample0); |
4535 dst[1] = SDL_SwapBE16(sample1); | 4535 dst[1] = SDL_SwapBE16(sample1); |
4586 Uint16 last_sample4 = sample4; | 4586 Uint16 last_sample4 = sample4; |
4587 Uint16 last_sample3 = sample3; | 4587 Uint16 last_sample3 = sample3; |
4588 Uint16 last_sample2 = sample2; | 4588 Uint16 last_sample2 = sample2; |
4589 Uint16 last_sample1 = sample1; | 4589 Uint16 last_sample1 = sample1; |
4590 Uint16 last_sample0 = sample0; | 4590 Uint16 last_sample0 = sample0; |
4591 while (dst != target) { | 4591 while (dst > target) { |
4592 dst[7] = SDL_SwapBE16(sample7); | 4592 dst[7] = SDL_SwapBE16(sample7); |
4593 dst[6] = SDL_SwapBE16(sample6); | 4593 dst[6] = SDL_SwapBE16(sample6); |
4594 dst[5] = SDL_SwapBE16(sample5); | 4594 dst[5] = SDL_SwapBE16(sample5); |
4595 dst[4] = SDL_SwapBE16(sample4); | 4595 dst[4] = SDL_SwapBE16(sample4); |
4596 dst[3] = SDL_SwapBE16(sample3); | 4596 dst[3] = SDL_SwapBE16(sample3); |
4653 Uint16 last_sample3 = sample3; | 4653 Uint16 last_sample3 = sample3; |
4654 Uint16 last_sample4 = sample4; | 4654 Uint16 last_sample4 = sample4; |
4655 Uint16 last_sample5 = sample5; | 4655 Uint16 last_sample5 = sample5; |
4656 Uint16 last_sample6 = sample6; | 4656 Uint16 last_sample6 = sample6; |
4657 Uint16 last_sample7 = sample7; | 4657 Uint16 last_sample7 = sample7; |
4658 while (dst != target) { | 4658 while (dst < target) { |
4659 src += 8; | 4659 src += 8; |
4660 eps += dstsize; | 4660 eps += dstsize; |
4661 if ((eps << 1) >= srcsize) { | 4661 if ((eps << 1) >= srcsize) { |
4662 dst[0] = SDL_SwapBE16(sample0); | 4662 dst[0] = SDL_SwapBE16(sample0); |
4663 dst[1] = SDL_SwapBE16(sample1); | 4663 dst[1] = SDL_SwapBE16(sample1); |
4706 Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1; | 4706 Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1; |
4707 const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1; | 4707 const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1; |
4708 const Sint16 *target = ((const Sint16 *) cvt->buf) - 1; | 4708 const Sint16 *target = ((const Sint16 *) cvt->buf) - 1; |
4709 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); | 4709 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); |
4710 Sint16 last_sample0 = sample0; | 4710 Sint16 last_sample0 = sample0; |
4711 while (dst != target) { | 4711 while (dst > target) { |
4712 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); | 4712 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); |
4713 dst--; | 4713 dst--; |
4714 eps += srcsize; | 4714 eps += srcsize; |
4715 if ((eps << 1) >= dstsize) { | 4715 if ((eps << 1) >= dstsize) { |
4716 src--; | 4716 src--; |
4738 Sint16 *dst = (Sint16 *) cvt->buf; | 4738 Sint16 *dst = (Sint16 *) cvt->buf; |
4739 const Sint16 *src = (Sint16 *) cvt->buf; | 4739 const Sint16 *src = (Sint16 *) cvt->buf; |
4740 const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize); | 4740 const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize); |
4741 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); | 4741 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); |
4742 Sint16 last_sample0 = sample0; | 4742 Sint16 last_sample0 = sample0; |
4743 while (dst != target) { | 4743 while (dst < target) { |
4744 src++; | 4744 src++; |
4745 eps += dstsize; | 4745 eps += dstsize; |
4746 if ((eps << 1) >= srcsize) { | 4746 if ((eps << 1) >= srcsize) { |
4747 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); | 4747 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); |
4748 dst++; | 4748 dst++; |
4772 const Sint16 *target = ((const Sint16 *) cvt->buf) - 2; | 4772 const Sint16 *target = ((const Sint16 *) cvt->buf) - 2; |
4773 Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1])); | 4773 Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1])); |
4774 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); | 4774 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); |
4775 Sint16 last_sample1 = sample1; | 4775 Sint16 last_sample1 = sample1; |
4776 Sint16 last_sample0 = sample0; | 4776 Sint16 last_sample0 = sample0; |
4777 while (dst != target) { | 4777 while (dst > target) { |
4778 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); | 4778 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); |
4779 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); | 4779 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); |
4780 dst -= 2; | 4780 dst -= 2; |
4781 eps += srcsize; | 4781 eps += srcsize; |
4782 if ((eps << 1) >= dstsize) { | 4782 if ((eps << 1) >= dstsize) { |
4809 const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize); | 4809 const Sint16 *target = (const Sint16 *) (cvt->buf + dstsize); |
4810 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); | 4810 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); |
4811 Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1])); | 4811 Sint16 sample1 = ((Sint16) SDL_SwapBE16(src[1])); |
4812 Sint16 last_sample0 = sample0; | 4812 Sint16 last_sample0 = sample0; |
4813 Sint16 last_sample1 = sample1; | 4813 Sint16 last_sample1 = sample1; |
4814 while (dst != target) { | 4814 while (dst < target) { |
4815 src += 2; | 4815 src += 2; |
4816 eps += dstsize; | 4816 eps += dstsize; |
4817 if ((eps << 1) >= srcsize) { | 4817 if ((eps << 1) >= srcsize) { |
4818 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); | 4818 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); |
4819 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); | 4819 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); |
4850 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); | 4850 Sint16 sample0 = ((Sint16) SDL_SwapBE16(src[0])); |
4851 Sint16 last_sample3 = sample3; | 4851 Sint16 last_sample3 = sample3; |
4852 Sint16 last_sample2 = sample2; | 4852 Sint16 last_sample2 = sample2; |
4853 Sint16 last_sample1 = sample1; | 4853 Sint16 last_sample1 = sample1; |
4854 Sint16 last_sample0 = sample0; | 4854 Sint16 last_sample0 = sample0; |
4855 while (dst != target) { | 4855 while (dst > target) { |
4856 dst[3] = ((Sint16) SDL_SwapBE16(sample3)); | 4856 dst[3] = ((Sint16) SDL_SwapBE16(sample3)); |
4857 dst[2] = ((Sint16) SDL_SwapBE16(sample2)); | 4857 dst[2] = ((Sint16) SDL_SwapBE16(sample2)); |
4858 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); | 4858 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); |
4859 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); | 4859 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); |
4860 dst -= 4; | 4860 dst -= 4; |
4897 Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3])); | 4897 Sint16 sample3 = ((Sint16) SDL_SwapBE16(src[3])); |
4898 Sint16 last_sample0 = sample0; | 4898 Sint16 last_sample0 = sample0; |
4899 Sint16 last_sample1 = sample1; | 4899 Sint16 last_sample1 = sample1; |
4900 Sint16 last_sample2 = sample2; | 4900 Sint16 last_sample2 = sample2; |
4901 Sint16 last_sample3 = sample3; | 4901 Sint16 last_sample3 = sample3; |
4902 while (dst != target) { | 4902 while (dst < target) { |
4903 src += 4; | 4903 src += 4; |
4904 eps += dstsize; | 4904 eps += dstsize; |
4905 if ((eps << 1) >= srcsize) { | 4905 if ((eps << 1) >= srcsize) { |
4906 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); | 4906 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); |
4907 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); | 4907 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); |
4948 Sint16 last_sample4 = sample4; | 4948 Sint16 last_sample4 = sample4; |
4949 Sint16 last_sample3 = sample3; | 4949 Sint16 last_sample3 = sample3; |
4950 Sint16 last_sample2 = sample2; | 4950 Sint16 last_sample2 = sample2; |
4951 Sint16 last_sample1 = sample1; | 4951 Sint16 last_sample1 = sample1; |
4952 Sint16 last_sample0 = sample0; | 4952 Sint16 last_sample0 = sample0; |
4953 while (dst != target) { | 4953 while (dst > target) { |
4954 dst[5] = ((Sint16) SDL_SwapBE16(sample5)); | 4954 dst[5] = ((Sint16) SDL_SwapBE16(sample5)); |
4955 dst[4] = ((Sint16) SDL_SwapBE16(sample4)); | 4955 dst[4] = ((Sint16) SDL_SwapBE16(sample4)); |
4956 dst[3] = ((Sint16) SDL_SwapBE16(sample3)); | 4956 dst[3] = ((Sint16) SDL_SwapBE16(sample3)); |
4957 dst[2] = ((Sint16) SDL_SwapBE16(sample2)); | 4957 dst[2] = ((Sint16) SDL_SwapBE16(sample2)); |
4958 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); | 4958 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); |
5005 Sint16 last_sample1 = sample1; | 5005 Sint16 last_sample1 = sample1; |
5006 Sint16 last_sample2 = sample2; | 5006 Sint16 last_sample2 = sample2; |
5007 Sint16 last_sample3 = sample3; | 5007 Sint16 last_sample3 = sample3; |
5008 Sint16 last_sample4 = sample4; | 5008 Sint16 last_sample4 = sample4; |
5009 Sint16 last_sample5 = sample5; | 5009 Sint16 last_sample5 = sample5; |
5010 while (dst != target) { | 5010 while (dst < target) { |
5011 src += 6; | 5011 src += 6; |
5012 eps += dstsize; | 5012 eps += dstsize; |
5013 if ((eps << 1) >= srcsize) { | 5013 if ((eps << 1) >= srcsize) { |
5014 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); | 5014 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); |
5015 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); | 5015 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); |
5066 Sint16 last_sample4 = sample4; | 5066 Sint16 last_sample4 = sample4; |
5067 Sint16 last_sample3 = sample3; | 5067 Sint16 last_sample3 = sample3; |
5068 Sint16 last_sample2 = sample2; | 5068 Sint16 last_sample2 = sample2; |
5069 Sint16 last_sample1 = sample1; | 5069 Sint16 last_sample1 = sample1; |
5070 Sint16 last_sample0 = sample0; | 5070 Sint16 last_sample0 = sample0; |
5071 while (dst != target) { | 5071 while (dst > target) { |
5072 dst[7] = ((Sint16) SDL_SwapBE16(sample7)); | 5072 dst[7] = ((Sint16) SDL_SwapBE16(sample7)); |
5073 dst[6] = ((Sint16) SDL_SwapBE16(sample6)); | 5073 dst[6] = ((Sint16) SDL_SwapBE16(sample6)); |
5074 dst[5] = ((Sint16) SDL_SwapBE16(sample5)); | 5074 dst[5] = ((Sint16) SDL_SwapBE16(sample5)); |
5075 dst[4] = ((Sint16) SDL_SwapBE16(sample4)); | 5075 dst[4] = ((Sint16) SDL_SwapBE16(sample4)); |
5076 dst[3] = ((Sint16) SDL_SwapBE16(sample3)); | 5076 dst[3] = ((Sint16) SDL_SwapBE16(sample3)); |
5133 Sint16 last_sample3 = sample3; | 5133 Sint16 last_sample3 = sample3; |
5134 Sint16 last_sample4 = sample4; | 5134 Sint16 last_sample4 = sample4; |
5135 Sint16 last_sample5 = sample5; | 5135 Sint16 last_sample5 = sample5; |
5136 Sint16 last_sample6 = sample6; | 5136 Sint16 last_sample6 = sample6; |
5137 Sint16 last_sample7 = sample7; | 5137 Sint16 last_sample7 = sample7; |
5138 while (dst != target) { | 5138 while (dst < target) { |
5139 src += 8; | 5139 src += 8; |
5140 eps += dstsize; | 5140 eps += dstsize; |
5141 if ((eps << 1) >= srcsize) { | 5141 if ((eps << 1) >= srcsize) { |
5142 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); | 5142 dst[0] = ((Sint16) SDL_SwapBE16(sample0)); |
5143 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); | 5143 dst[1] = ((Sint16) SDL_SwapBE16(sample1)); |
5186 Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1; | 5186 Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1; |
5187 const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1; | 5187 const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1; |
5188 const Sint32 *target = ((const Sint32 *) cvt->buf) - 1; | 5188 const Sint32 *target = ((const Sint32 *) cvt->buf) - 1; |
5189 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); | 5189 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); |
5190 Sint32 last_sample0 = sample0; | 5190 Sint32 last_sample0 = sample0; |
5191 while (dst != target) { | 5191 while (dst > target) { |
5192 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); | 5192 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); |
5193 dst--; | 5193 dst--; |
5194 eps += srcsize; | 5194 eps += srcsize; |
5195 if ((eps << 1) >= dstsize) { | 5195 if ((eps << 1) >= dstsize) { |
5196 src--; | 5196 src--; |
5218 Sint32 *dst = (Sint32 *) cvt->buf; | 5218 Sint32 *dst = (Sint32 *) cvt->buf; |
5219 const Sint32 *src = (Sint32 *) cvt->buf; | 5219 const Sint32 *src = (Sint32 *) cvt->buf; |
5220 const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize); | 5220 const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize); |
5221 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); | 5221 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); |
5222 Sint32 last_sample0 = sample0; | 5222 Sint32 last_sample0 = sample0; |
5223 while (dst != target) { | 5223 while (dst < target) { |
5224 src++; | 5224 src++; |
5225 eps += dstsize; | 5225 eps += dstsize; |
5226 if ((eps << 1) >= srcsize) { | 5226 if ((eps << 1) >= srcsize) { |
5227 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); | 5227 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); |
5228 dst++; | 5228 dst++; |
5252 const Sint32 *target = ((const Sint32 *) cvt->buf) - 2; | 5252 const Sint32 *target = ((const Sint32 *) cvt->buf) - 2; |
5253 Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1])); | 5253 Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1])); |
5254 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); | 5254 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); |
5255 Sint32 last_sample1 = sample1; | 5255 Sint32 last_sample1 = sample1; |
5256 Sint32 last_sample0 = sample0; | 5256 Sint32 last_sample0 = sample0; |
5257 while (dst != target) { | 5257 while (dst > target) { |
5258 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); | 5258 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); |
5259 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); | 5259 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); |
5260 dst -= 2; | 5260 dst -= 2; |
5261 eps += srcsize; | 5261 eps += srcsize; |
5262 if ((eps << 1) >= dstsize) { | 5262 if ((eps << 1) >= dstsize) { |
5289 const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize); | 5289 const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize); |
5290 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); | 5290 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); |
5291 Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1])); | 5291 Sint32 sample1 = ((Sint32) SDL_SwapLE32(src[1])); |
5292 Sint32 last_sample0 = sample0; | 5292 Sint32 last_sample0 = sample0; |
5293 Sint32 last_sample1 = sample1; | 5293 Sint32 last_sample1 = sample1; |
5294 while (dst != target) { | 5294 while (dst < target) { |
5295 src += 2; | 5295 src += 2; |
5296 eps += dstsize; | 5296 eps += dstsize; |
5297 if ((eps << 1) >= srcsize) { | 5297 if ((eps << 1) >= srcsize) { |
5298 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); | 5298 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); |
5299 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); | 5299 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); |
5330 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); | 5330 Sint32 sample0 = ((Sint32) SDL_SwapLE32(src[0])); |
5331 Sint32 last_sample3 = sample3; | 5331 Sint32 last_sample3 = sample3; |
5332 Sint32 last_sample2 = sample2; | 5332 Sint32 last_sample2 = sample2; |
5333 Sint32 last_sample1 = sample1; | 5333 Sint32 last_sample1 = sample1; |
5334 Sint32 last_sample0 = sample0; | 5334 Sint32 last_sample0 = sample0; |
5335 while (dst != target) { | 5335 while (dst > target) { |
5336 dst[3] = ((Sint32) SDL_SwapLE32(sample3)); | 5336 dst[3] = ((Sint32) SDL_SwapLE32(sample3)); |
5337 dst[2] = ((Sint32) SDL_SwapLE32(sample2)); | 5337 dst[2] = ((Sint32) SDL_SwapLE32(sample2)); |
5338 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); | 5338 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); |
5339 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); | 5339 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); |
5340 dst -= 4; | 5340 dst -= 4; |
5377 Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3])); | 5377 Sint32 sample3 = ((Sint32) SDL_SwapLE32(src[3])); |
5378 Sint32 last_sample0 = sample0; | 5378 Sint32 last_sample0 = sample0; |
5379 Sint32 last_sample1 = sample1; | 5379 Sint32 last_sample1 = sample1; |
5380 Sint32 last_sample2 = sample2; | 5380 Sint32 last_sample2 = sample2; |
5381 Sint32 last_sample3 = sample3; | 5381 Sint32 last_sample3 = sample3; |
5382 while (dst != target) { | 5382 while (dst < target) { |
5383 src += 4; | 5383 src += 4; |
5384 eps += dstsize; | 5384 eps += dstsize; |
5385 if ((eps << 1) >= srcsize) { | 5385 if ((eps << 1) >= srcsize) { |
5386 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); | 5386 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); |
5387 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); | 5387 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); |
5428 Sint32 last_sample4 = sample4; | 5428 Sint32 last_sample4 = sample4; |
5429 Sint32 last_sample3 = sample3; | 5429 Sint32 last_sample3 = sample3; |
5430 Sint32 last_sample2 = sample2; | 5430 Sint32 last_sample2 = sample2; |
5431 Sint32 last_sample1 = sample1; | 5431 Sint32 last_sample1 = sample1; |
5432 Sint32 last_sample0 = sample0; | 5432 Sint32 last_sample0 = sample0; |
5433 while (dst != target) { | 5433 while (dst > target) { |
5434 dst[5] = ((Sint32) SDL_SwapLE32(sample5)); | 5434 dst[5] = ((Sint32) SDL_SwapLE32(sample5)); |
5435 dst[4] = ((Sint32) SDL_SwapLE32(sample4)); | 5435 dst[4] = ((Sint32) SDL_SwapLE32(sample4)); |
5436 dst[3] = ((Sint32) SDL_SwapLE32(sample3)); | 5436 dst[3] = ((Sint32) SDL_SwapLE32(sample3)); |
5437 dst[2] = ((Sint32) SDL_SwapLE32(sample2)); | 5437 dst[2] = ((Sint32) SDL_SwapLE32(sample2)); |
5438 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); | 5438 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); |
5485 Sint32 last_sample1 = sample1; | 5485 Sint32 last_sample1 = sample1; |
5486 Sint32 last_sample2 = sample2; | 5486 Sint32 last_sample2 = sample2; |
5487 Sint32 last_sample3 = sample3; | 5487 Sint32 last_sample3 = sample3; |
5488 Sint32 last_sample4 = sample4; | 5488 Sint32 last_sample4 = sample4; |
5489 Sint32 last_sample5 = sample5; | 5489 Sint32 last_sample5 = sample5; |
5490 while (dst != target) { | 5490 while (dst < target) { |
5491 src += 6; | 5491 src += 6; |
5492 eps += dstsize; | 5492 eps += dstsize; |
5493 if ((eps << 1) >= srcsize) { | 5493 if ((eps << 1) >= srcsize) { |
5494 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); | 5494 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); |
5495 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); | 5495 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); |
5546 Sint32 last_sample4 = sample4; | 5546 Sint32 last_sample4 = sample4; |
5547 Sint32 last_sample3 = sample3; | 5547 Sint32 last_sample3 = sample3; |
5548 Sint32 last_sample2 = sample2; | 5548 Sint32 last_sample2 = sample2; |
5549 Sint32 last_sample1 = sample1; | 5549 Sint32 last_sample1 = sample1; |
5550 Sint32 last_sample0 = sample0; | 5550 Sint32 last_sample0 = sample0; |
5551 while (dst != target) { | 5551 while (dst > target) { |
5552 dst[7] = ((Sint32) SDL_SwapLE32(sample7)); | 5552 dst[7] = ((Sint32) SDL_SwapLE32(sample7)); |
5553 dst[6] = ((Sint32) SDL_SwapLE32(sample6)); | 5553 dst[6] = ((Sint32) SDL_SwapLE32(sample6)); |
5554 dst[5] = ((Sint32) SDL_SwapLE32(sample5)); | 5554 dst[5] = ((Sint32) SDL_SwapLE32(sample5)); |
5555 dst[4] = ((Sint32) SDL_SwapLE32(sample4)); | 5555 dst[4] = ((Sint32) SDL_SwapLE32(sample4)); |
5556 dst[3] = ((Sint32) SDL_SwapLE32(sample3)); | 5556 dst[3] = ((Sint32) SDL_SwapLE32(sample3)); |
5613 Sint32 last_sample3 = sample3; | 5613 Sint32 last_sample3 = sample3; |
5614 Sint32 last_sample4 = sample4; | 5614 Sint32 last_sample4 = sample4; |
5615 Sint32 last_sample5 = sample5; | 5615 Sint32 last_sample5 = sample5; |
5616 Sint32 last_sample6 = sample6; | 5616 Sint32 last_sample6 = sample6; |
5617 Sint32 last_sample7 = sample7; | 5617 Sint32 last_sample7 = sample7; |
5618 while (dst != target) { | 5618 while (dst < target) { |
5619 src += 8; | 5619 src += 8; |
5620 eps += dstsize; | 5620 eps += dstsize; |
5621 if ((eps << 1) >= srcsize) { | 5621 if ((eps << 1) >= srcsize) { |
5622 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); | 5622 dst[0] = ((Sint32) SDL_SwapLE32(sample0)); |
5623 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); | 5623 dst[1] = ((Sint32) SDL_SwapLE32(sample1)); |
5666 Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1; | 5666 Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1; |
5667 const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1; | 5667 const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1; |
5668 const Sint32 *target = ((const Sint32 *) cvt->buf) - 1; | 5668 const Sint32 *target = ((const Sint32 *) cvt->buf) - 1; |
5669 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); | 5669 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); |
5670 Sint32 last_sample0 = sample0; | 5670 Sint32 last_sample0 = sample0; |
5671 while (dst != target) { | 5671 while (dst > target) { |
5672 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); | 5672 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); |
5673 dst--; | 5673 dst--; |
5674 eps += srcsize; | 5674 eps += srcsize; |
5675 if ((eps << 1) >= dstsize) { | 5675 if ((eps << 1) >= dstsize) { |
5676 src--; | 5676 src--; |
5698 Sint32 *dst = (Sint32 *) cvt->buf; | 5698 Sint32 *dst = (Sint32 *) cvt->buf; |
5699 const Sint32 *src = (Sint32 *) cvt->buf; | 5699 const Sint32 *src = (Sint32 *) cvt->buf; |
5700 const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize); | 5700 const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize); |
5701 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); | 5701 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); |
5702 Sint32 last_sample0 = sample0; | 5702 Sint32 last_sample0 = sample0; |
5703 while (dst != target) { | 5703 while (dst < target) { |
5704 src++; | 5704 src++; |
5705 eps += dstsize; | 5705 eps += dstsize; |
5706 if ((eps << 1) >= srcsize) { | 5706 if ((eps << 1) >= srcsize) { |
5707 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); | 5707 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); |
5708 dst++; | 5708 dst++; |
5732 const Sint32 *target = ((const Sint32 *) cvt->buf) - 2; | 5732 const Sint32 *target = ((const Sint32 *) cvt->buf) - 2; |
5733 Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1])); | 5733 Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1])); |
5734 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); | 5734 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); |
5735 Sint32 last_sample1 = sample1; | 5735 Sint32 last_sample1 = sample1; |
5736 Sint32 last_sample0 = sample0; | 5736 Sint32 last_sample0 = sample0; |
5737 while (dst != target) { | 5737 while (dst > target) { |
5738 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); | 5738 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); |
5739 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); | 5739 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); |
5740 dst -= 2; | 5740 dst -= 2; |
5741 eps += srcsize; | 5741 eps += srcsize; |
5742 if ((eps << 1) >= dstsize) { | 5742 if ((eps << 1) >= dstsize) { |
5769 const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize); | 5769 const Sint32 *target = (const Sint32 *) (cvt->buf + dstsize); |
5770 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); | 5770 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); |
5771 Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1])); | 5771 Sint32 sample1 = ((Sint32) SDL_SwapBE32(src[1])); |
5772 Sint32 last_sample0 = sample0; | 5772 Sint32 last_sample0 = sample0; |
5773 Sint32 last_sample1 = sample1; | 5773 Sint32 last_sample1 = sample1; |
5774 while (dst != target) { | 5774 while (dst < target) { |
5775 src += 2; | 5775 src += 2; |
5776 eps += dstsize; | 5776 eps += dstsize; |
5777 if ((eps << 1) >= srcsize) { | 5777 if ((eps << 1) >= srcsize) { |
5778 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); | 5778 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); |
5779 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); | 5779 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); |
5810 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); | 5810 Sint32 sample0 = ((Sint32) SDL_SwapBE32(src[0])); |
5811 Sint32 last_sample3 = sample3; | 5811 Sint32 last_sample3 = sample3; |
5812 Sint32 last_sample2 = sample2; | 5812 Sint32 last_sample2 = sample2; |
5813 Sint32 last_sample1 = sample1; | 5813 Sint32 last_sample1 = sample1; |
5814 Sint32 last_sample0 = sample0; | 5814 Sint32 last_sample0 = sample0; |
5815 while (dst != target) { | 5815 while (dst > target) { |
5816 dst[3] = ((Sint32) SDL_SwapBE32(sample3)); | 5816 dst[3] = ((Sint32) SDL_SwapBE32(sample3)); |
5817 dst[2] = ((Sint32) SDL_SwapBE32(sample2)); | 5817 dst[2] = ((Sint32) SDL_SwapBE32(sample2)); |
5818 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); | 5818 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); |
5819 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); | 5819 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); |
5820 dst -= 4; | 5820 dst -= 4; |
5857 Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3])); | 5857 Sint32 sample3 = ((Sint32) SDL_SwapBE32(src[3])); |
5858 Sint32 last_sample0 = sample0; | 5858 Sint32 last_sample0 = sample0; |
5859 Sint32 last_sample1 = sample1; | 5859 Sint32 last_sample1 = sample1; |
5860 Sint32 last_sample2 = sample2; | 5860 Sint32 last_sample2 = sample2; |
5861 Sint32 last_sample3 = sample3; | 5861 Sint32 last_sample3 = sample3; |
5862 while (dst != target) { | 5862 while (dst < target) { |
5863 src += 4; | 5863 src += 4; |
5864 eps += dstsize; | 5864 eps += dstsize; |
5865 if ((eps << 1) >= srcsize) { | 5865 if ((eps << 1) >= srcsize) { |
5866 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); | 5866 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); |
5867 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); | 5867 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); |
5908 Sint32 last_sample4 = sample4; | 5908 Sint32 last_sample4 = sample4; |
5909 Sint32 last_sample3 = sample3; | 5909 Sint32 last_sample3 = sample3; |
5910 Sint32 last_sample2 = sample2; | 5910 Sint32 last_sample2 = sample2; |
5911 Sint32 last_sample1 = sample1; | 5911 Sint32 last_sample1 = sample1; |
5912 Sint32 last_sample0 = sample0; | 5912 Sint32 last_sample0 = sample0; |
5913 while (dst != target) { | 5913 while (dst > target) { |
5914 dst[5] = ((Sint32) SDL_SwapBE32(sample5)); | 5914 dst[5] = ((Sint32) SDL_SwapBE32(sample5)); |
5915 dst[4] = ((Sint32) SDL_SwapBE32(sample4)); | 5915 dst[4] = ((Sint32) SDL_SwapBE32(sample4)); |
5916 dst[3] = ((Sint32) SDL_SwapBE32(sample3)); | 5916 dst[3] = ((Sint32) SDL_SwapBE32(sample3)); |
5917 dst[2] = ((Sint32) SDL_SwapBE32(sample2)); | 5917 dst[2] = ((Sint32) SDL_SwapBE32(sample2)); |
5918 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); | 5918 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); |
5965 Sint32 last_sample1 = sample1; | 5965 Sint32 last_sample1 = sample1; |
5966 Sint32 last_sample2 = sample2; | 5966 Sint32 last_sample2 = sample2; |
5967 Sint32 last_sample3 = sample3; | 5967 Sint32 last_sample3 = sample3; |
5968 Sint32 last_sample4 = sample4; | 5968 Sint32 last_sample4 = sample4; |
5969 Sint32 last_sample5 = sample5; | 5969 Sint32 last_sample5 = sample5; |
5970 while (dst != target) { | 5970 while (dst < target) { |
5971 src += 6; | 5971 src += 6; |
5972 eps += dstsize; | 5972 eps += dstsize; |
5973 if ((eps << 1) >= srcsize) { | 5973 if ((eps << 1) >= srcsize) { |
5974 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); | 5974 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); |
5975 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); | 5975 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); |
6026 Sint32 last_sample4 = sample4; | 6026 Sint32 last_sample4 = sample4; |
6027 Sint32 last_sample3 = sample3; | 6027 Sint32 last_sample3 = sample3; |
6028 Sint32 last_sample2 = sample2; | 6028 Sint32 last_sample2 = sample2; |
6029 Sint32 last_sample1 = sample1; | 6029 Sint32 last_sample1 = sample1; |
6030 Sint32 last_sample0 = sample0; | 6030 Sint32 last_sample0 = sample0; |
6031 while (dst != target) { | 6031 while (dst > target) { |
6032 dst[7] = ((Sint32) SDL_SwapBE32(sample7)); | 6032 dst[7] = ((Sint32) SDL_SwapBE32(sample7)); |
6033 dst[6] = ((Sint32) SDL_SwapBE32(sample6)); | 6033 dst[6] = ((Sint32) SDL_SwapBE32(sample6)); |
6034 dst[5] = ((Sint32) SDL_SwapBE32(sample5)); | 6034 dst[5] = ((Sint32) SDL_SwapBE32(sample5)); |
6035 dst[4] = ((Sint32) SDL_SwapBE32(sample4)); | 6035 dst[4] = ((Sint32) SDL_SwapBE32(sample4)); |
6036 dst[3] = ((Sint32) SDL_SwapBE32(sample3)); | 6036 dst[3] = ((Sint32) SDL_SwapBE32(sample3)); |
6093 Sint32 last_sample3 = sample3; | 6093 Sint32 last_sample3 = sample3; |
6094 Sint32 last_sample4 = sample4; | 6094 Sint32 last_sample4 = sample4; |
6095 Sint32 last_sample5 = sample5; | 6095 Sint32 last_sample5 = sample5; |
6096 Sint32 last_sample6 = sample6; | 6096 Sint32 last_sample6 = sample6; |
6097 Sint32 last_sample7 = sample7; | 6097 Sint32 last_sample7 = sample7; |
6098 while (dst != target) { | 6098 while (dst < target) { |
6099 src += 8; | 6099 src += 8; |
6100 eps += dstsize; | 6100 eps += dstsize; |
6101 if ((eps << 1) >= srcsize) { | 6101 if ((eps << 1) >= srcsize) { |
6102 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); | 6102 dst[0] = ((Sint32) SDL_SwapBE32(sample0)); |
6103 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); | 6103 dst[1] = ((Sint32) SDL_SwapBE32(sample1)); |
6146 float *dst = ((float *) (cvt->buf + dstsize)) - 1; | 6146 float *dst = ((float *) (cvt->buf + dstsize)) - 1; |
6147 const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1; | 6147 const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1; |
6148 const float *target = ((const float *) cvt->buf) - 1; | 6148 const float *target = ((const float *) cvt->buf) - 1; |
6149 float sample0 = SDL_SwapFloatLE(src[0]); | 6149 float sample0 = SDL_SwapFloatLE(src[0]); |
6150 float last_sample0 = sample0; | 6150 float last_sample0 = sample0; |
6151 while (dst != target) { | 6151 while (dst > target) { |
6152 dst[0] = SDL_SwapFloatLE(sample0); | 6152 dst[0] = SDL_SwapFloatLE(sample0); |
6153 dst--; | 6153 dst--; |
6154 eps += srcsize; | 6154 eps += srcsize; |
6155 if ((eps << 1) >= dstsize) { | 6155 if ((eps << 1) >= dstsize) { |
6156 src--; | 6156 src--; |
6178 float *dst = (float *) cvt->buf; | 6178 float *dst = (float *) cvt->buf; |
6179 const float *src = (float *) cvt->buf; | 6179 const float *src = (float *) cvt->buf; |
6180 const float *target = (const float *) (cvt->buf + dstsize); | 6180 const float *target = (const float *) (cvt->buf + dstsize); |
6181 float sample0 = SDL_SwapFloatLE(src[0]); | 6181 float sample0 = SDL_SwapFloatLE(src[0]); |
6182 float last_sample0 = sample0; | 6182 float last_sample0 = sample0; |
6183 while (dst != target) { | 6183 while (dst < target) { |
6184 src++; | 6184 src++; |
6185 eps += dstsize; | 6185 eps += dstsize; |
6186 if ((eps << 1) >= srcsize) { | 6186 if ((eps << 1) >= srcsize) { |
6187 dst[0] = SDL_SwapFloatLE(sample0); | 6187 dst[0] = SDL_SwapFloatLE(sample0); |
6188 dst++; | 6188 dst++; |
6212 const float *target = ((const float *) cvt->buf) - 2; | 6212 const float *target = ((const float *) cvt->buf) - 2; |
6213 float sample1 = SDL_SwapFloatLE(src[1]); | 6213 float sample1 = SDL_SwapFloatLE(src[1]); |
6214 float sample0 = SDL_SwapFloatLE(src[0]); | 6214 float sample0 = SDL_SwapFloatLE(src[0]); |
6215 float last_sample1 = sample1; | 6215 float last_sample1 = sample1; |
6216 float last_sample0 = sample0; | 6216 float last_sample0 = sample0; |
6217 while (dst != target) { | 6217 while (dst > target) { |
6218 dst[1] = SDL_SwapFloatLE(sample1); | 6218 dst[1] = SDL_SwapFloatLE(sample1); |
6219 dst[0] = SDL_SwapFloatLE(sample0); | 6219 dst[0] = SDL_SwapFloatLE(sample0); |
6220 dst -= 2; | 6220 dst -= 2; |
6221 eps += srcsize; | 6221 eps += srcsize; |
6222 if ((eps << 1) >= dstsize) { | 6222 if ((eps << 1) >= dstsize) { |
6249 const float *target = (const float *) (cvt->buf + dstsize); | 6249 const float *target = (const float *) (cvt->buf + dstsize); |
6250 float sample0 = SDL_SwapFloatLE(src[0]); | 6250 float sample0 = SDL_SwapFloatLE(src[0]); |
6251 float sample1 = SDL_SwapFloatLE(src[1]); | 6251 float sample1 = SDL_SwapFloatLE(src[1]); |
6252 float last_sample0 = sample0; | 6252 float last_sample0 = sample0; |
6253 float last_sample1 = sample1; | 6253 float last_sample1 = sample1; |
6254 while (dst != target) { | 6254 while (dst < target) { |
6255 src += 2; | 6255 src += 2; |
6256 eps += dstsize; | 6256 eps += dstsize; |
6257 if ((eps << 1) >= srcsize) { | 6257 if ((eps << 1) >= srcsize) { |
6258 dst[0] = SDL_SwapFloatLE(sample0); | 6258 dst[0] = SDL_SwapFloatLE(sample0); |
6259 dst[1] = SDL_SwapFloatLE(sample1); | 6259 dst[1] = SDL_SwapFloatLE(sample1); |
6290 float sample0 = SDL_SwapFloatLE(src[0]); | 6290 float sample0 = SDL_SwapFloatLE(src[0]); |
6291 float last_sample3 = sample3; | 6291 float last_sample3 = sample3; |
6292 float last_sample2 = sample2; | 6292 float last_sample2 = sample2; |
6293 float last_sample1 = sample1; | 6293 float last_sample1 = sample1; |
6294 float last_sample0 = sample0; | 6294 float last_sample0 = sample0; |
6295 while (dst != target) { | 6295 while (dst > target) { |
6296 dst[3] = SDL_SwapFloatLE(sample3); | 6296 dst[3] = SDL_SwapFloatLE(sample3); |
6297 dst[2] = SDL_SwapFloatLE(sample2); | 6297 dst[2] = SDL_SwapFloatLE(sample2); |
6298 dst[1] = SDL_SwapFloatLE(sample1); | 6298 dst[1] = SDL_SwapFloatLE(sample1); |
6299 dst[0] = SDL_SwapFloatLE(sample0); | 6299 dst[0] = SDL_SwapFloatLE(sample0); |
6300 dst -= 4; | 6300 dst -= 4; |
6337 float sample3 = SDL_SwapFloatLE(src[3]); | 6337 float sample3 = SDL_SwapFloatLE(src[3]); |
6338 float last_sample0 = sample0; | 6338 float last_sample0 = sample0; |
6339 float last_sample1 = sample1; | 6339 float last_sample1 = sample1; |
6340 float last_sample2 = sample2; | 6340 float last_sample2 = sample2; |
6341 float last_sample3 = sample3; | 6341 float last_sample3 = sample3; |
6342 while (dst != target) { | 6342 while (dst < target) { |
6343 src += 4; | 6343 src += 4; |
6344 eps += dstsize; | 6344 eps += dstsize; |
6345 if ((eps << 1) >= srcsize) { | 6345 if ((eps << 1) >= srcsize) { |
6346 dst[0] = SDL_SwapFloatLE(sample0); | 6346 dst[0] = SDL_SwapFloatLE(sample0); |
6347 dst[1] = SDL_SwapFloatLE(sample1); | 6347 dst[1] = SDL_SwapFloatLE(sample1); |
6388 float last_sample4 = sample4; | 6388 float last_sample4 = sample4; |
6389 float last_sample3 = sample3; | 6389 float last_sample3 = sample3; |
6390 float last_sample2 = sample2; | 6390 float last_sample2 = sample2; |
6391 float last_sample1 = sample1; | 6391 float last_sample1 = sample1; |
6392 float last_sample0 = sample0; | 6392 float last_sample0 = sample0; |
6393 while (dst != target) { | 6393 while (dst > target) { |
6394 dst[5] = SDL_SwapFloatLE(sample5); | 6394 dst[5] = SDL_SwapFloatLE(sample5); |
6395 dst[4] = SDL_SwapFloatLE(sample4); | 6395 dst[4] = SDL_SwapFloatLE(sample4); |
6396 dst[3] = SDL_SwapFloatLE(sample3); | 6396 dst[3] = SDL_SwapFloatLE(sample3); |
6397 dst[2] = SDL_SwapFloatLE(sample2); | 6397 dst[2] = SDL_SwapFloatLE(sample2); |
6398 dst[1] = SDL_SwapFloatLE(sample1); | 6398 dst[1] = SDL_SwapFloatLE(sample1); |
6445 float last_sample1 = sample1; | 6445 float last_sample1 = sample1; |
6446 float last_sample2 = sample2; | 6446 float last_sample2 = sample2; |
6447 float last_sample3 = sample3; | 6447 float last_sample3 = sample3; |
6448 float last_sample4 = sample4; | 6448 float last_sample4 = sample4; |
6449 float last_sample5 = sample5; | 6449 float last_sample5 = sample5; |
6450 while (dst != target) { | 6450 while (dst < target) { |
6451 src += 6; | 6451 src += 6; |
6452 eps += dstsize; | 6452 eps += dstsize; |
6453 if ((eps << 1) >= srcsize) { | 6453 if ((eps << 1) >= srcsize) { |
6454 dst[0] = SDL_SwapFloatLE(sample0); | 6454 dst[0] = SDL_SwapFloatLE(sample0); |
6455 dst[1] = SDL_SwapFloatLE(sample1); | 6455 dst[1] = SDL_SwapFloatLE(sample1); |
6506 float last_sample4 = sample4; | 6506 float last_sample4 = sample4; |
6507 float last_sample3 = sample3; | 6507 float last_sample3 = sample3; |
6508 float last_sample2 = sample2; | 6508 float last_sample2 = sample2; |
6509 float last_sample1 = sample1; | 6509 float last_sample1 = sample1; |
6510 float last_sample0 = sample0; | 6510 float last_sample0 = sample0; |
6511 while (dst != target) { | 6511 while (dst > target) { |
6512 dst[7] = SDL_SwapFloatLE(sample7); | 6512 dst[7] = SDL_SwapFloatLE(sample7); |
6513 dst[6] = SDL_SwapFloatLE(sample6); | 6513 dst[6] = SDL_SwapFloatLE(sample6); |
6514 dst[5] = SDL_SwapFloatLE(sample5); | 6514 dst[5] = SDL_SwapFloatLE(sample5); |
6515 dst[4] = SDL_SwapFloatLE(sample4); | 6515 dst[4] = SDL_SwapFloatLE(sample4); |
6516 dst[3] = SDL_SwapFloatLE(sample3); | 6516 dst[3] = SDL_SwapFloatLE(sample3); |
6573 float last_sample3 = sample3; | 6573 float last_sample3 = sample3; |
6574 float last_sample4 = sample4; | 6574 float last_sample4 = sample4; |
6575 float last_sample5 = sample5; | 6575 float last_sample5 = sample5; |
6576 float last_sample6 = sample6; | 6576 float last_sample6 = sample6; |
6577 float last_sample7 = sample7; | 6577 float last_sample7 = sample7; |
6578 while (dst != target) { | 6578 while (dst < target) { |
6579 src += 8; | 6579 src += 8; |
6580 eps += dstsize; | 6580 eps += dstsize; |
6581 if ((eps << 1) >= srcsize) { | 6581 if ((eps << 1) >= srcsize) { |
6582 dst[0] = SDL_SwapFloatLE(sample0); | 6582 dst[0] = SDL_SwapFloatLE(sample0); |
6583 dst[1] = SDL_SwapFloatLE(sample1); | 6583 dst[1] = SDL_SwapFloatLE(sample1); |
6626 float *dst = ((float *) (cvt->buf + dstsize)) - 1; | 6626 float *dst = ((float *) (cvt->buf + dstsize)) - 1; |
6627 const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1; | 6627 const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1; |
6628 const float *target = ((const float *) cvt->buf) - 1; | 6628 const float *target = ((const float *) cvt->buf) - 1; |
6629 float sample0 = SDL_SwapFloatBE(src[0]); | 6629 float sample0 = SDL_SwapFloatBE(src[0]); |
6630 float last_sample0 = sample0; | 6630 float last_sample0 = sample0; |
6631 while (dst != target) { | 6631 while (dst > target) { |
6632 dst[0] = SDL_SwapFloatBE(sample0); | 6632 dst[0] = SDL_SwapFloatBE(sample0); |
6633 dst--; | 6633 dst--; |
6634 eps += srcsize; | 6634 eps += srcsize; |
6635 if ((eps << 1) >= dstsize) { | 6635 if ((eps << 1) >= dstsize) { |
6636 src--; | 6636 src--; |
6658 float *dst = (float *) cvt->buf; | 6658 float *dst = (float *) cvt->buf; |
6659 const float *src = (float *) cvt->buf; | 6659 const float *src = (float *) cvt->buf; |
6660 const float *target = (const float *) (cvt->buf + dstsize); | 6660 const float *target = (const float *) (cvt->buf + dstsize); |
6661 float sample0 = SDL_SwapFloatBE(src[0]); | 6661 float sample0 = SDL_SwapFloatBE(src[0]); |
6662 float last_sample0 = sample0; | 6662 float last_sample0 = sample0; |
6663 while (dst != target) { | 6663 while (dst < target) { |
6664 src++; | 6664 src++; |
6665 eps += dstsize; | 6665 eps += dstsize; |
6666 if ((eps << 1) >= srcsize) { | 6666 if ((eps << 1) >= srcsize) { |
6667 dst[0] = SDL_SwapFloatBE(sample0); | 6667 dst[0] = SDL_SwapFloatBE(sample0); |
6668 dst++; | 6668 dst++; |
6692 const float *target = ((const float *) cvt->buf) - 2; | 6692 const float *target = ((const float *) cvt->buf) - 2; |
6693 float sample1 = SDL_SwapFloatBE(src[1]); | 6693 float sample1 = SDL_SwapFloatBE(src[1]); |
6694 float sample0 = SDL_SwapFloatBE(src[0]); | 6694 float sample0 = SDL_SwapFloatBE(src[0]); |
6695 float last_sample1 = sample1; | 6695 float last_sample1 = sample1; |
6696 float last_sample0 = sample0; | 6696 float last_sample0 = sample0; |
6697 while (dst != target) { | 6697 while (dst > target) { |
6698 dst[1] = SDL_SwapFloatBE(sample1); | 6698 dst[1] = SDL_SwapFloatBE(sample1); |
6699 dst[0] = SDL_SwapFloatBE(sample0); | 6699 dst[0] = SDL_SwapFloatBE(sample0); |
6700 dst -= 2; | 6700 dst -= 2; |
6701 eps += srcsize; | 6701 eps += srcsize; |
6702 if ((eps << 1) >= dstsize) { | 6702 if ((eps << 1) >= dstsize) { |
6729 const float *target = (const float *) (cvt->buf + dstsize); | 6729 const float *target = (const float *) (cvt->buf + dstsize); |
6730 float sample0 = SDL_SwapFloatBE(src[0]); | 6730 float sample0 = SDL_SwapFloatBE(src[0]); |
6731 float sample1 = SDL_SwapFloatBE(src[1]); | 6731 float sample1 = SDL_SwapFloatBE(src[1]); |
6732 float last_sample0 = sample0; | 6732 float last_sample0 = sample0; |
6733 float last_sample1 = sample1; | 6733 float last_sample1 = sample1; |
6734 while (dst != target) { | 6734 while (dst < target) { |
6735 src += 2; | 6735 src += 2; |
6736 eps += dstsize; | 6736 eps += dstsize; |
6737 if ((eps << 1) >= srcsize) { | 6737 if ((eps << 1) >= srcsize) { |
6738 dst[0] = SDL_SwapFloatBE(sample0); | 6738 dst[0] = SDL_SwapFloatBE(sample0); |
6739 dst[1] = SDL_SwapFloatBE(sample1); | 6739 dst[1] = SDL_SwapFloatBE(sample1); |
6770 float sample0 = SDL_SwapFloatBE(src[0]); | 6770 float sample0 = SDL_SwapFloatBE(src[0]); |
6771 float last_sample3 = sample3; | 6771 float last_sample3 = sample3; |
6772 float last_sample2 = sample2; | 6772 float last_sample2 = sample2; |
6773 float last_sample1 = sample1; | 6773 float last_sample1 = sample1; |
6774 float last_sample0 = sample0; | 6774 float last_sample0 = sample0; |
6775 while (dst != target) { | 6775 while (dst > target) { |
6776 dst[3] = SDL_SwapFloatBE(sample3); | 6776 dst[3] = SDL_SwapFloatBE(sample3); |
6777 dst[2] = SDL_SwapFloatBE(sample2); | 6777 dst[2] = SDL_SwapFloatBE(sample2); |
6778 dst[1] = SDL_SwapFloatBE(sample1); | 6778 dst[1] = SDL_SwapFloatBE(sample1); |
6779 dst[0] = SDL_SwapFloatBE(sample0); | 6779 dst[0] = SDL_SwapFloatBE(sample0); |
6780 dst -= 4; | 6780 dst -= 4; |
6817 float sample3 = SDL_SwapFloatBE(src[3]); | 6817 float sample3 = SDL_SwapFloatBE(src[3]); |
6818 float last_sample0 = sample0; | 6818 float last_sample0 = sample0; |
6819 float last_sample1 = sample1; | 6819 float last_sample1 = sample1; |
6820 float last_sample2 = sample2; | 6820 float last_sample2 = sample2; |
6821 float last_sample3 = sample3; | 6821 float last_sample3 = sample3; |
6822 while (dst != target) { | 6822 while (dst < target) { |
6823 src += 4; | 6823 src += 4; |
6824 eps += dstsize; | 6824 eps += dstsize; |
6825 if ((eps << 1) >= srcsize) { | 6825 if ((eps << 1) >= srcsize) { |
6826 dst[0] = SDL_SwapFloatBE(sample0); | 6826 dst[0] = SDL_SwapFloatBE(sample0); |
6827 dst[1] = SDL_SwapFloatBE(sample1); | 6827 dst[1] = SDL_SwapFloatBE(sample1); |
6868 float last_sample4 = sample4; | 6868 float last_sample4 = sample4; |
6869 float last_sample3 = sample3; | 6869 float last_sample3 = sample3; |
6870 float last_sample2 = sample2; | 6870 float last_sample2 = sample2; |
6871 float last_sample1 = sample1; | 6871 float last_sample1 = sample1; |
6872 float last_sample0 = sample0; | 6872 float last_sample0 = sample0; |
6873 while (dst != target) { | 6873 while (dst > target) { |
6874 dst[5] = SDL_SwapFloatBE(sample5); | 6874 dst[5] = SDL_SwapFloatBE(sample5); |
6875 dst[4] = SDL_SwapFloatBE(sample4); | 6875 dst[4] = SDL_SwapFloatBE(sample4); |
6876 dst[3] = SDL_SwapFloatBE(sample3); | 6876 dst[3] = SDL_SwapFloatBE(sample3); |
6877 dst[2] = SDL_SwapFloatBE(sample2); | 6877 dst[2] = SDL_SwapFloatBE(sample2); |
6878 dst[1] = SDL_SwapFloatBE(sample1); | 6878 dst[1] = SDL_SwapFloatBE(sample1); |
6925 float last_sample1 = sample1; | 6925 float last_sample1 = sample1; |
6926 float last_sample2 = sample2; | 6926 float last_sample2 = sample2; |
6927 float last_sample3 = sample3; | 6927 float last_sample3 = sample3; |
6928 float last_sample4 = sample4; | 6928 float last_sample4 = sample4; |
6929 float last_sample5 = sample5; | 6929 float last_sample5 = sample5; |
6930 while (dst != target) { | 6930 while (dst < target) { |
6931 src += 6; | 6931 src += 6; |
6932 eps += dstsize; | 6932 eps += dstsize; |
6933 if ((eps << 1) >= srcsize) { | 6933 if ((eps << 1) >= srcsize) { |
6934 dst[0] = SDL_SwapFloatBE(sample0); | 6934 dst[0] = SDL_SwapFloatBE(sample0); |
6935 dst[1] = SDL_SwapFloatBE(sample1); | 6935 dst[1] = SDL_SwapFloatBE(sample1); |
6986 float last_sample4 = sample4; | 6986 float last_sample4 = sample4; |
6987 float last_sample3 = sample3; | 6987 float last_sample3 = sample3; |
6988 float last_sample2 = sample2; | 6988 float last_sample2 = sample2; |
6989 float last_sample1 = sample1; | 6989 float last_sample1 = sample1; |
6990 float last_sample0 = sample0; | 6990 float last_sample0 = sample0; |
6991 while (dst != target) { | 6991 while (dst > target) { |
6992 dst[7] = SDL_SwapFloatBE(sample7); | 6992 dst[7] = SDL_SwapFloatBE(sample7); |
6993 dst[6] = SDL_SwapFloatBE(sample6); | 6993 dst[6] = SDL_SwapFloatBE(sample6); |
6994 dst[5] = SDL_SwapFloatBE(sample5); | 6994 dst[5] = SDL_SwapFloatBE(sample5); |
6995 dst[4] = SDL_SwapFloatBE(sample4); | 6995 dst[4] = SDL_SwapFloatBE(sample4); |
6996 dst[3] = SDL_SwapFloatBE(sample3); | 6996 dst[3] = SDL_SwapFloatBE(sample3); |
7053 float last_sample3 = sample3; | 7053 float last_sample3 = sample3; |
7054 float last_sample4 = sample4; | 7054 float last_sample4 = sample4; |
7055 float last_sample5 = sample5; | 7055 float last_sample5 = sample5; |
7056 float last_sample6 = sample6; | 7056 float last_sample6 = sample6; |
7057 float last_sample7 = sample7; | 7057 float last_sample7 = sample7; |
7058 while (dst != target) { | 7058 while (dst < target) { |
7059 src += 8; | 7059 src += 8; |
7060 eps += dstsize; | 7060 eps += dstsize; |
7061 if ((eps << 1) >= srcsize) { | 7061 if ((eps << 1) >= srcsize) { |
7062 dst[0] = SDL_SwapFloatBE(sample0); | 7062 dst[0] = SDL_SwapFloatBE(sample0); |
7063 dst[1] = SDL_SwapFloatBE(sample1); | 7063 dst[1] = SDL_SwapFloatBE(sample1); |