History

swscale: fix types of assembly arguments.

This prevents the following compiler warnings: "warning: initialization from incompatible pointer type". Since the variables are only ever used in inline assembly, their type is actually irrelevant (so the part where it was wrong did not invoke any buggy behaviour).

Ronald S. Bultje committed 15 years ago

Commit 9bcbb251 parent 496d95c1 file · +4 −4Browse files

Unified · Split

libswscale/x86/swscale_template.c+4−4
@@ -178,7 +178,7 @@ static inline void RENAME(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc, · 177 unmodified lines
178178 uint8_t *aDest, int dstW, int chrDstW)
179179 {
180180 int p= 4;
181− const uint8_t *src[4]= { alpSrc + dstW, lumSrc + dstW, chrUSrc + chrDstW, chrVSrc + chrDstW };
181+ const int16_t *src[4]= { alpSrc + dstW, lumSrc + dstW, chrUSrc + chrDstW, chrVSrc + chrDstW };
182182 uint8_t *dst[4]= { aDest, dest, uDest, vDest };
183183 x86_reg counter[4]= { dstW, dstW, chrDstW, chrDstW };
184184
@@ -211,7 +211,7 @@ static inline void RENAME(yuv2yuv1_ar)(SwsContext *c, const int16_t *lumSrc, · 26 unmodified lines
211211 uint8_t *aDest, int dstW, int chrDstW)
212212 {
213213 int p= 4;
214− const uint8_t *src[4]= { alpSrc + dstW, lumSrc + dstW, chrUSrc + chrDstW, chrVSrc + chrDstW };
214+ const int16_t *src[4]= { alpSrc + dstW, lumSrc + dstW, chrUSrc + chrDstW, chrVSrc + chrDstW };
215215 uint8_t *dst[4]= { aDest, dest, uDest, vDest };
216216 x86_reg counter[4]= { dstW, dstW, chrDstW, chrDstW };
217217
@@ -2046,7 +2046,7 @@ static inline void RENAME(hyscale_fast)(SwsContext *c, int16_t *dst, · 1828 unmodified lines
20462046 int dstWidth, const uint8_t *src, int srcW,
20472047 int xInc)
20482048 {
2049− int32_t *filterPos = c->hLumFilterPos;
2049+ int16_t *filterPos = c->hLumFilterPos;
20502050 int16_t *filter = c->hLumFilter;
20512051 void *mmx2FilterCode= c->lumMmx2FilterCode;
20522052 int i;
@@ -2118,7 +2118,7 @@ static inline void RENAME(hcscale_fast)(SwsContext *c, int16_t *dst1, int16_t *d · 65 unmodified lines
21182118 int dstWidth, const uint8_t *src1,
21192119 const uint8_t *src2, int srcW, int xInc)
21202120 {
2121− int32_t *filterPos = c->hChrFilterPos;
2121+ int16_t *filterPos = c->hChrFilterPos;
21222122 int16_t *filter = c->hChrFilter;
21232123 void *mmx2FilterCode= c->chrMmx2FilterCode;
21242124 int i;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t