mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
videomixer[2]: Use orc_memset() instead of memset()
This commit is contained in:
parent
ef5ac986f1
commit
ce66aea7b0
2 changed files with 14 additions and 2 deletions
|
@ -89,6 +89,12 @@
|
|||
#include "videomixer.h"
|
||||
#include "videomixer2.h"
|
||||
|
||||
#ifdef DISABLE_ORC
|
||||
#define orc_memset memset
|
||||
#else
|
||||
#include <orc/orcfunctions.h>
|
||||
#endif
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_videomixer_debug);
|
||||
#define GST_CAT_DEFAULT gst_videomixer_debug
|
||||
|
||||
|
@ -1610,7 +1616,7 @@ gst_videomixer_collected (GstCollectPads * pads, GstVideoMixer * mix)
|
|||
mix->out_height, 240, 128, 128);
|
||||
break;
|
||||
case VIDEO_MIXER_BACKGROUND_TRANSPARENT:
|
||||
memset (GST_BUFFER_DATA (outbuf), 0,
|
||||
orc_memset (GST_BUFFER_DATA (outbuf), 0,
|
||||
gst_video_format_get_row_stride (mix->fmt, 0,
|
||||
mix->out_width) * mix->out_height);
|
||||
break;
|
||||
|
|
|
@ -93,6 +93,12 @@
|
|||
|
||||
#include <gst/controller/gstcontroller.h>
|
||||
|
||||
#ifdef DISABLE_ORC
|
||||
#define orc_memset memset
|
||||
#else
|
||||
#include <orc/orcfunctions.h>
|
||||
#endif
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_videomixer2_debug);
|
||||
#define GST_CAT_DEFAULT gst_videomixer2_debug
|
||||
|
||||
|
@ -838,7 +844,7 @@ gst_videomixer2_blend_buffers (GstVideoMixer2 * mix,
|
|||
mix->height, 240, 128, 128);
|
||||
break;
|
||||
case VIDEO_MIXER2_BACKGROUND_TRANSPARENT:
|
||||
memset (GST_BUFFER_DATA (*outbuf), 0,
|
||||
orc_memset (GST_BUFFER_DATA (*outbuf), 0,
|
||||
gst_video_format_get_row_stride (mix->format, 0,
|
||||
mix->width) * mix->height);
|
||||
/* use overlay to keep background transparent */
|
||||
|
|
Loading…
Reference in a new issue