mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
remove unused/unmaintained code
RIP Symbian.. mz80 is unused
This commit is contained in:
parent
1b85bf1c23
commit
fb7a7fea87
112 changed files with 0 additions and 45924 deletions
|
@ -225,13 +225,6 @@ extern short *PsndOut;
|
|||
extern void (*PsndMix_32_to_16l)(short *dest, int *src, int count);
|
||||
void PsndRerate(int preserve_state);
|
||||
|
||||
// Utils.c
|
||||
extern int PicuAnd;
|
||||
int PicuQuick(unsigned short *dest,unsigned short *src);
|
||||
int PicuShrink(unsigned short *dest,int destLen,unsigned short *src,int srcLen);
|
||||
int PicuShrinkReverse(unsigned short *dest,int destLen,unsigned short *src,int srcLen);
|
||||
int PicuMerge(unsigned short *dest,int destLen,unsigned short *src,int srcLen);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // End of extern "C"
|
||||
#endif
|
||||
|
|
108
pico/utils.c
108
pico/utils.c
|
@ -1,108 +0,0 @@
|
|||
// This is part of Pico Library
|
||||
|
||||
// (c) Copyright 2004 Dave, All rights reserved.
|
||||
// (c) Copyright 2006 notaz, All rights reserved.
|
||||
// Free for non-commercial use.
|
||||
|
||||
// For commercial use, separate licencing terms must be obtained.
|
||||
|
||||
|
||||
#include "pico_int.h"
|
||||
|
||||
int PicuAnd=0xf7de;
|
||||
|
||||
// Quick low-quality conversion of 320 to 176:
|
||||
int PicuQuick(unsigned short *dest,unsigned short *src)
|
||||
{
|
||||
unsigned short *end=NULL;
|
||||
|
||||
src+=13; end=src+290;
|
||||
dest++;
|
||||
|
||||
do
|
||||
{
|
||||
*dest++=*src++;
|
||||
*dest++=*src; src+=2;
|
||||
*dest++=*src; src+=2;
|
||||
*dest++=*src++;
|
||||
*dest++=*src; src+=2;
|
||||
*dest++=*src; src+=2;
|
||||
}
|
||||
while (src<end);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Shrink the pixels in src/srcLen, to the screen line pointed to by dest/destLen
|
||||
int PicuShrink(unsigned short *dest,int destLen,unsigned short *src,int srcLen)
|
||||
{
|
||||
unsigned short *end=NULL;
|
||||
int bias=0,pa=0,sub=0;
|
||||
|
||||
end=dest+destLen;
|
||||
sub=srcLen-destLen;
|
||||
|
||||
do
|
||||
{
|
||||
pa=*src++; bias-=sub;
|
||||
if (bias<0) { pa+=*src++; pa>>=1; bias+=destLen; }
|
||||
*dest++=(unsigned short)pa;
|
||||
|
||||
pa=*src++; bias-=sub;
|
||||
if (bias<0) { pa+=*src++; pa>>=1; bias+=destLen; }
|
||||
*dest++=(unsigned short)pa;
|
||||
}
|
||||
while (dest<end);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// same thing, only reversed (dest is in pre-decremental mode)
|
||||
int PicuShrinkReverse(unsigned short *dest,int destLen,unsigned short *src,int srcLen)
|
||||
{
|
||||
unsigned short *end=NULL;
|
||||
int bias=0,pa=0,sub=0;
|
||||
|
||||
end=dest-destLen;
|
||||
sub=srcLen-destLen;
|
||||
|
||||
do
|
||||
{
|
||||
pa=*src++; bias-=sub;
|
||||
if (bias<0) { pa+=*src++; pa>>=1; bias+=destLen; }
|
||||
*(--dest)=(unsigned short)pa;
|
||||
|
||||
pa=*src++; bias-=sub;
|
||||
if (bias<0) { pa+=*src++; pa>>=1; bias+=destLen; }
|
||||
*(--dest)=(unsigned short)pa;
|
||||
}
|
||||
while (dest>end);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int PicuMerge(unsigned short *dest,int destLen,unsigned short *src,int srcLen)
|
||||
{
|
||||
unsigned short *end=NULL;
|
||||
int bias=0,pa=0,mask=PicuAnd,sub=0;
|
||||
|
||||
end=dest+destLen;
|
||||
sub=srcLen-destLen;
|
||||
|
||||
do
|
||||
{
|
||||
pa=*src++; bias-=sub;
|
||||
if (bias<0) { pa+=*src++; pa>>=1; bias+=destLen; }
|
||||
pa&=mask; pa+=(*dest)&mask; pa>>=1;
|
||||
*dest++=(unsigned short)pa;
|
||||
|
||||
pa=*src++; bias-=sub;
|
||||
if (bias<0) { pa+=*src++; pa>>=1; bias+=destLen; }
|
||||
pa&=mask; pa+=(*dest)&mask; pa>>=1;
|
||||
*dest++=(unsigned short)pa;
|
||||
}
|
||||
while (dest<end);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue