Merge remote-tracking branch 'qatar/master'
* qatar/master: build: remove empty $(OBJS) target build: make rule for linking ff* apply only to these targets build: rearrange some lines in a more logical way s302m: fix resampling for 16 and 24bits. ARM: remove MUL64 and MAC64 inline asm build: clean up .PHONY lists build: move all (un)install* target aliases to toplevel Makefile flvenc: propagate error properly build: remove stale dependency build: do not add CFLAGS-yes to CFLAGS utils.c: fix crash with threading enabled. configure: simplify source_path setup configure: remove --source-path option lavf: deprecate AVFormatParameters.time_base. img2: add framerate private option. img2: add video_size private option. img2: add pixel_format private option. tty: add framerate private option. Conflicts: Makefile configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -28,45 +28,16 @@
|
||||
|
||||
#if HAVE_INLINE_ASM
|
||||
|
||||
#define MULH MULH
|
||||
#define MUL64 MUL64
|
||||
|
||||
#if HAVE_ARMV6
|
||||
#define MULH MULH
|
||||
static inline av_const int MULH(int a, int b)
|
||||
{
|
||||
int r;
|
||||
__asm__ ("smmul %0, %1, %2" : "=r"(r) : "r"(a), "r"(b));
|
||||
return r;
|
||||
}
|
||||
|
||||
static inline av_const int64_t MUL64(int a, int b)
|
||||
{
|
||||
int64_t x;
|
||||
__asm__ ("smull %Q0, %R0, %1, %2" : "=r"(x) : "r"(a), "r"(b));
|
||||
return x;
|
||||
}
|
||||
#else
|
||||
static inline av_const int MULH(int a, int b)
|
||||
{
|
||||
int lo, hi;
|
||||
__asm__ ("smull %0, %1, %2, %3" : "=&r"(lo), "=&r"(hi) : "r"(b), "r"(a));
|
||||
return hi;
|
||||
}
|
||||
|
||||
static inline av_const int64_t MUL64(int a, int b)
|
||||
{
|
||||
int64_t x;
|
||||
__asm__ ("smull %Q0, %R0, %1, %2" : "=&r"(x) : "r"(a), "r"(b));
|
||||
return x;
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline av_const int64_t MAC64(int64_t d, int a, int b)
|
||||
{
|
||||
__asm__ ("smlal %Q0, %R0, %1, %2" : "+r"(d) : "r"(a), "r"(b));
|
||||
return d;
|
||||
}
|
||||
#define MAC64(d, a, b) ((d) = MAC64(d, a, b))
|
||||
#define MLS64(d, a, b) MAC64(d, -(a), b)
|
||||
|
||||
#if HAVE_ARMV5TE
|
||||
|
||||
@@ -107,7 +107,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
|
||||
*o++ = (av_reverse[buf[6] & 0xf0] << 28) |
|
||||
(av_reverse[buf[5]] << 20) |
|
||||
(av_reverse[buf[4]] << 12) |
|
||||
(av_reverse[buf[3] & 0x0f] << 8);
|
||||
(av_reverse[buf[3] & 0x0f] << 4);
|
||||
buf += 7;
|
||||
}
|
||||
*data_size = (uint8_t*) o - (uint8_t*) data;
|
||||
@@ -130,7 +130,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
|
||||
av_reverse[buf[0]];
|
||||
*o++ = (av_reverse[buf[4] & 0xf0] << 12) |
|
||||
(av_reverse[buf[3]] << 4) |
|
||||
av_reverse[buf[2] & 0x0f];
|
||||
(av_reverse[buf[2]] >> 4);
|
||||
buf += 5;
|
||||
}
|
||||
*data_size = (uint8_t*) o - (uint8_t*) data;
|
||||
|
||||
Reference in New Issue
Block a user