mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-03 23:05:58 +08:00
simple_idct: remove code for DCTELEM != int16
DCTELEM can never be changed to anything else, too much code depends on it. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
@ -59,9 +59,7 @@ static inline void idctRowCondDC (DCTELEM * row)
|
||||
#else
|
||||
#define ROW0_MASK 0xffffLL
|
||||
#endif
|
||||
if(sizeof(DCTELEM)==2){
|
||||
if ( ((((uint64_t *)row)[0] & ~ROW0_MASK) |
|
||||
((uint64_t *)row)[1]) == 0) {
|
||||
if (((((uint64_t *)row)[0] & ~ROW0_MASK) | ((uint64_t *)row)[1]) == 0) {
|
||||
temp = (row[0] << 3) & 0xffff;
|
||||
temp += temp << 16;
|
||||
temp += temp << 32;
|
||||
@ -69,14 +67,7 @@ static inline void idctRowCondDC (DCTELEM * row)
|
||||
((uint64_t *)row)[1] = temp;
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
if (!(row[1]|row[2]|row[3]|row[4]|row[5]|row[6]|row[7])) {
|
||||
row[0]=row[1]=row[2]=row[3]=row[4]=row[5]=row[6]=row[7]= row[0] << 3;
|
||||
return;
|
||||
}
|
||||
}
|
||||
#else
|
||||
if(sizeof(DCTELEM)==2){
|
||||
if (!(((uint32_t*)row)[1] |
|
||||
((uint32_t*)row)[2] |
|
||||
((uint32_t*)row)[3] |
|
||||
@ -87,12 +78,6 @@ static inline void idctRowCondDC (DCTELEM * row)
|
||||
((uint32_t*)row)[2]=((uint32_t*)row)[3] = temp;
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
if (!(row[1]|row[2]|row[3]|row[4]|row[5]|row[6]|row[7])) {
|
||||
row[0]=row[1]=row[2]=row[3]=row[4]=row[5]=row[6]=row[7]= row[0] << 3;
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
a0 = (W4 * row[0]) + (1 << (ROW_SHIFT - 1));
|
||||
|
Reference in New Issue
Block a user