[MOVED FROM BAD 21/56] gst/deinterlace2/tvtime/greedyh.c: Only build the assembly optimized implementations on x86.
Original commit message from CVS: * gst/deinterlace2/tvtime/greedyh.c: (deinterlace_frame_di_greedyh): Only build the assembly optimized implementations on x86.
This commit is contained in:
parent
edf1f9b4a3
commit
fe02b1242c
@ -182,6 +182,8 @@ greedyDScaler_C (uint8_t * L1, uint8_t * L2, uint8_t * L3, uint8_t * L2P,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_CPU_I386
|
||||||
|
|
||||||
#define IS_MMXEXT
|
#define IS_MMXEXT
|
||||||
#define SIMD_TYPE MMXEXT
|
#define SIMD_TYPE MMXEXT
|
||||||
#define FUNCT_NAME greedyDScaler_MMXEXT
|
#define FUNCT_NAME greedyDScaler_MMXEXT
|
||||||
@ -206,6 +208,8 @@ greedyDScaler_C (uint8_t * L1, uint8_t * L2, uint8_t * L3, uint8_t * L2P,
|
|||||||
#undef IS_MMX
|
#undef IS_MMX
|
||||||
#undef FUNCT_NAME
|
#undef FUNCT_NAME
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
deinterlace_frame_di_greedyh (GstDeinterlace2 * object)
|
deinterlace_frame_di_greedyh (GstDeinterlace2 * object)
|
||||||
{
|
{
|
||||||
@ -223,6 +227,7 @@ deinterlace_frame_di_greedyh (GstDeinterlace2 * object)
|
|||||||
unsigned char *L2P; // ptr to prev Line2
|
unsigned char *L2P; // ptr to prev Line2
|
||||||
unsigned char *Dest = GST_BUFFER_DATA (object->out_buf);
|
unsigned char *Dest = GST_BUFFER_DATA (object->out_buf);
|
||||||
|
|
||||||
|
#ifdef HAVE_CPU_I386
|
||||||
if (object->cpu_feature_flags & OIL_IMPL_FLAG_MMXEXT) {
|
if (object->cpu_feature_flags & OIL_IMPL_FLAG_MMXEXT) {
|
||||||
func = greedyDScaler_MMXEXT;
|
func = greedyDScaler_MMXEXT;
|
||||||
} else if (object->cpu_feature_flags & OIL_IMPL_FLAG_3DNOW) {
|
} else if (object->cpu_feature_flags & OIL_IMPL_FLAG_3DNOW) {
|
||||||
@ -232,6 +237,9 @@ deinterlace_frame_di_greedyh (GstDeinterlace2 * object)
|
|||||||
} else {
|
} else {
|
||||||
func = greedyDScaler_C;
|
func = greedyDScaler_C;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
func = greedyDScaler_C;
|
||||||
|
#endif
|
||||||
|
|
||||||
// copy first even line no matter what, and the first odd line if we're
|
// copy first even line no matter what, and the first odd line if we're
|
||||||
// processing an EVEN field. (note diff from other deint rtns.)
|
// processing an EVEN field. (note diff from other deint rtns.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user