mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 10:15:22 +00:00
Prev ver could work only on x86
Originally committed as revision 2509 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
parent
b238eb2e77
commit
fde33ab52e
@ -7,16 +7,16 @@
|
||||
|
||||
void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
|
||||
{
|
||||
uint32_t *dest = (uint32_t *)dst;
|
||||
uint8_t *dest = dst;
|
||||
uint8_t *s = src;
|
||||
uint8_t *end;
|
||||
end = s + src_size;
|
||||
while(s < end)
|
||||
{
|
||||
uint32_t rgb0;
|
||||
rgb0 = *(uint32_t *)s;
|
||||
*dest++ = rgb0 & 0xFFFFFFUL;
|
||||
s += 3;
|
||||
*dest++ = *s++;
|
||||
*dest++ = *s++;
|
||||
*dest++ = *s++;
|
||||
*dest++ = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7,16 +7,16 @@
|
||||
|
||||
void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
|
||||
{
|
||||
uint32_t *dest = (uint32_t *)dst;
|
||||
uint8_t *dest = dst;
|
||||
uint8_t *s = src;
|
||||
uint8_t *end;
|
||||
end = s + src_size;
|
||||
while(s < end)
|
||||
{
|
||||
uint32_t rgb0;
|
||||
rgb0 = *(uint32_t *)s;
|
||||
*dest++ = rgb0 & 0xFFFFFFUL;
|
||||
s += 3;
|
||||
*dest++ = *s++;
|
||||
*dest++ = *s++;
|
||||
*dest++ = *s++;
|
||||
*dest++ = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user