video-scaler: avoid memcpy when not needed
This commit is contained in:
parent
0980dfcb99
commit
cf970376df
@ -488,14 +488,16 @@ static void
|
|||||||
video_scale_v_near_u32 (GstVideoScaler * scale,
|
video_scale_v_near_u32 (GstVideoScaler * scale,
|
||||||
gpointer srcs[], gpointer dest, guint dest_offset, guint width)
|
gpointer srcs[], gpointer dest, guint dest_offset, guint width)
|
||||||
{
|
{
|
||||||
orc_memcpy (dest, srcs[0], 4 * width);
|
if (dest != srcs[0])
|
||||||
|
orc_memcpy (dest, srcs[0], 4 * width);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
video_scale_v_near_u64 (GstVideoScaler * scale,
|
video_scale_v_near_u64 (GstVideoScaler * scale,
|
||||||
gpointer srcs[], gpointer dest, guint dest_offset, guint width)
|
gpointer srcs[], gpointer dest, guint dest_offset, guint width)
|
||||||
{
|
{
|
||||||
orc_memcpy (dest, srcs[0], 8 * width);
|
if (dest != srcs[0])
|
||||||
|
orc_memcpy (dest, srcs[0], 8 * width);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user