mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
video-scaler: avoid memcpy when not needed
This commit is contained in:
parent
0980dfcb99
commit
cf970376df
1 changed files with 4 additions and 2 deletions
|
@ -488,14 +488,16 @@ static void
|
|||
video_scale_v_near_u32 (GstVideoScaler * scale,
|
||||
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
|
||||
video_scale_v_near_u64 (GstVideoScaler * scale,
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue