mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
orc: prefix orc functions with gst_video_orc_
See https://bugzilla.gnome.org/show_bug.cgi?id=680025
This commit is contained in:
parent
b392b28179
commit
e98c8538c5
5 changed files with 409 additions and 373 deletions
|
@ -197,7 +197,8 @@ gst_video_blend_scale_linear_RGBA (GstVideoInfo * src, GstBuffer * src_buffer,
|
|||
src_pixels = GST_VIDEO_FRAME_PLANE_DATA (&src_frame, 0);
|
||||
|
||||
acc = 0;
|
||||
orc_resample_bilinear_u32 (LINE (0), src_pixels, 0, x_increment, dest_width);
|
||||
gst_video_orc_resample_bilinear_u32 (LINE (0), src_pixels, 0, x_increment,
|
||||
dest_width);
|
||||
y1 = 0;
|
||||
for (i = 0; i < dest_height; i++) {
|
||||
j = acc >> 16;
|
||||
|
@ -207,16 +208,16 @@ gst_video_blend_scale_linear_RGBA (GstVideoInfo * src, GstBuffer * src_buffer,
|
|||
memcpy (dest_pixels + i * dest_stride, LINE (j), dest_size);
|
||||
} else {
|
||||
if (j > y1) {
|
||||
orc_resample_bilinear_u32 (LINE (j),
|
||||
gst_video_orc_resample_bilinear_u32 (LINE (j),
|
||||
src_pixels + j * src_stride, 0, x_increment, dest_width);
|
||||
y1++;
|
||||
}
|
||||
if (j >= y1) {
|
||||
orc_resample_bilinear_u32 (LINE (j + 1),
|
||||
gst_video_orc_resample_bilinear_u32 (LINE (j + 1),
|
||||
src_pixels + (j + 1) * src_stride, 0, x_increment, dest_width);
|
||||
y1++;
|
||||
}
|
||||
orc_merge_linear_u8 (dest_pixels + i * dest_stride,
|
||||
gst_video_orc_merge_linear_u8 (dest_pixels + i * dest_stride,
|
||||
LINE (j), LINE (j + 1), (x >> 8), dest_width * 4);
|
||||
}
|
||||
|
||||
|
@ -372,9 +373,9 @@ gst_video_blend (GstVideoFrame * dest,
|
|||
|
||||
/* FIXME
|
||||
* #if G_BYTE_ORDER == LITTLE_ENDIAN
|
||||
* orc_blend_little (tmpdestline, tmpsrcline, dest->width);
|
||||
* gst_video_orc_blend_little (tmpdestline, tmpsrcline, dest->width);
|
||||
* #else
|
||||
* orc_blend_big (tmpdestline, tmpsrcline, src->width);
|
||||
* gst_video_orc_blend_big (tmpdestline, tmpsrcline, src->width);
|
||||
* #endif
|
||||
*/
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ unpack_planar_420 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_I420 (dest,
|
||||
gst_video_orc_unpack_I420 (dest,
|
||||
GET_Y_LINE (y), GET_U_LINE (y >> 1), GET_V_LINE (y >> 1), width);
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ pack_planar_420 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_I420 (GET_Y_LINE (y),
|
||||
gst_video_orc_pack_I420 (GET_Y_LINE (y),
|
||||
GET_U_LINE (y >> 1), GET_V_LINE (y >> 1), src, width / 2);
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ unpack_YUY2 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_YUY2 (dest, GET_LINE (y), width / 2);
|
||||
gst_video_orc_unpack_YUY2 (dest, GET_LINE (y), width / 2);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -105,7 +105,7 @@ pack_YUY2 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_YUY2 (GET_LINE (y), src, width / 2);
|
||||
gst_video_orc_pack_YUY2 (GET_LINE (y), src, width / 2);
|
||||
}
|
||||
|
||||
#define PACK_UYVY GST_VIDEO_FORMAT_AYUV, unpack_UYVY, 1, pack_UYVY
|
||||
|
@ -114,7 +114,7 @@ unpack_UYVY (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_UYVY (dest, GET_LINE (y), width / 2);
|
||||
gst_video_orc_unpack_UYVY (dest, GET_LINE (y), width / 2);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -123,7 +123,7 @@ pack_UYVY (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_UYVY (GET_LINE (y), src, width / 2);
|
||||
gst_video_orc_pack_UYVY (GET_LINE (y), src, width / 2);
|
||||
}
|
||||
|
||||
#define PACK_YVYU GST_VIDEO_FORMAT_AYUV, unpack_YVYU, 1, pack_YVYU
|
||||
|
@ -132,7 +132,7 @@ unpack_YVYU (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_YVYU (dest, GET_LINE (y), width / 2);
|
||||
gst_video_orc_unpack_YVYU (dest, GET_LINE (y), width / 2);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -141,7 +141,7 @@ pack_YVYU (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_YVYU (GET_LINE (y), src, width / 2);
|
||||
gst_video_orc_pack_YVYU (GET_LINE (y), src, width / 2);
|
||||
}
|
||||
|
||||
#define PACK_v308 GST_VIDEO_FORMAT_AYUV, unpack_v308, 1, pack_v308
|
||||
|
@ -368,7 +368,7 @@ unpack_Y41B (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_YUV9 (dest,
|
||||
gst_video_orc_unpack_YUV9 (dest,
|
||||
GET_Y_LINE (y), GET_U_LINE (y), GET_V_LINE (y), width / 2);
|
||||
}
|
||||
|
||||
|
@ -423,7 +423,7 @@ unpack_Y42B (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_Y42B (dest,
|
||||
gst_video_orc_unpack_Y42B (dest,
|
||||
GET_Y_LINE (y), GET_U_LINE (y), GET_V_LINE (y), width / 2);
|
||||
}
|
||||
|
||||
|
@ -433,7 +433,7 @@ pack_Y42B (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_Y42B (GET_Y_LINE (y),
|
||||
gst_video_orc_pack_Y42B (GET_Y_LINE (y),
|
||||
GET_U_LINE (y), GET_V_LINE (y), src, width / 2);
|
||||
}
|
||||
|
||||
|
@ -443,7 +443,8 @@ unpack_Y444 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_Y444 (dest, GET_Y_LINE (y), GET_U_LINE (y), GET_V_LINE (y), width);
|
||||
gst_video_orc_unpack_Y444 (dest, GET_Y_LINE (y), GET_U_LINE (y),
|
||||
GET_V_LINE (y), width);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -452,7 +453,8 @@ pack_Y444 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_Y444 (GET_Y_LINE (y), GET_U_LINE (y), GET_V_LINE (y), src, width);
|
||||
gst_video_orc_pack_Y444 (GET_Y_LINE (y), GET_U_LINE (y), GET_V_LINE (y), src,
|
||||
width);
|
||||
}
|
||||
|
||||
#define PACK_GRAY8 GST_VIDEO_FORMAT_AYUV, unpack_GRAY8, 1, pack_GRAY8
|
||||
|
@ -461,7 +463,7 @@ unpack_GRAY8 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_GRAY8 (dest, GET_LINE (y), width);
|
||||
gst_video_orc_unpack_GRAY8 (dest, GET_LINE (y), width);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -470,7 +472,7 @@ pack_GRAY8 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_GRAY8 (GET_LINE (y), src, width);
|
||||
gst_video_orc_pack_GRAY8 (GET_LINE (y), src, width);
|
||||
}
|
||||
|
||||
#define PACK_GRAY16_BE GST_VIDEO_FORMAT_AYUV64, unpack_GRAY16_BE, 1, pack_GRAY16_BE
|
||||
|
@ -721,7 +723,7 @@ unpack_BGRA (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_BGRA (dest, GET_LINE (y), width);
|
||||
gst_video_orc_unpack_BGRA (dest, GET_LINE (y), width);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -730,7 +732,7 @@ pack_BGRA (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_BGRA (GET_LINE (y), src, width);
|
||||
gst_video_orc_pack_BGRA (GET_LINE (y), src, width);
|
||||
}
|
||||
|
||||
#define PACK_ABGR GST_VIDEO_FORMAT_ARGB, unpack_ABGR, 1, pack_ABGR
|
||||
|
@ -739,7 +741,7 @@ unpack_ABGR (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_ABGR (dest, GET_LINE (y), width);
|
||||
gst_video_orc_unpack_ABGR (dest, GET_LINE (y), width);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -748,7 +750,7 @@ pack_ABGR (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_ABGR (GET_LINE (y), src, width);
|
||||
gst_video_orc_pack_ABGR (GET_LINE (y), src, width);
|
||||
}
|
||||
|
||||
#define PACK_RGBA GST_VIDEO_FORMAT_ARGB, unpack_RGBA, 1, pack_RGBA
|
||||
|
@ -757,7 +759,7 @@ unpack_RGBA (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_RGBA (dest, GET_LINE (y), width);
|
||||
gst_video_orc_unpack_RGBA (dest, GET_LINE (y), width);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -766,7 +768,7 @@ pack_RGBA (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_RGBA (GET_LINE (y), src, width);
|
||||
gst_video_orc_pack_RGBA (GET_LINE (y), src, width);
|
||||
}
|
||||
|
||||
#define PACK_RGB GST_VIDEO_FORMAT_ARGB, unpack_RGB, 1, pack_RGB
|
||||
|
@ -845,7 +847,7 @@ unpack_NV12 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_NV12 (dest,
|
||||
gst_video_orc_unpack_NV12 (dest,
|
||||
GET_PLANE_LINE (0, y), GET_PLANE_LINE (1, y >> 1), width / 2);
|
||||
}
|
||||
|
||||
|
@ -855,7 +857,7 @@ pack_NV12 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_NV12 (GET_PLANE_LINE (0, y),
|
||||
gst_video_orc_pack_NV12 (GET_PLANE_LINE (0, y),
|
||||
GET_PLANE_LINE (1, y >> 1), src, width / 2);
|
||||
}
|
||||
|
||||
|
@ -865,7 +867,7 @@ unpack_NV21 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_NV21 (dest,
|
||||
gst_video_orc_unpack_NV21 (dest,
|
||||
GET_PLANE_LINE (0, y), GET_PLANE_LINE (1, y >> 1), width / 2);
|
||||
}
|
||||
|
||||
|
@ -875,7 +877,7 @@ pack_NV21 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_NV21 (GET_PLANE_LINE (0, y),
|
||||
gst_video_orc_pack_NV21 (GET_PLANE_LINE (0, y),
|
||||
GET_PLANE_LINE (1, y >> 1), src, width / 2);
|
||||
}
|
||||
|
||||
|
@ -952,7 +954,7 @@ unpack_A420 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_A420 (dest,
|
||||
gst_video_orc_unpack_A420 (dest,
|
||||
GET_Y_LINE (y), GET_U_LINE (y >> 1), GET_V_LINE (y >> 1), GET_A_LINE (y),
|
||||
width);
|
||||
}
|
||||
|
@ -963,7 +965,7 @@ pack_A420 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
const gint stride[GST_VIDEO_MAX_PLANES], GstVideoChromaSite chroma_site,
|
||||
gint y, gint width)
|
||||
{
|
||||
orc_pack_A420 (GET_Y_LINE (y),
|
||||
gst_video_orc_pack_A420 (GET_Y_LINE (y),
|
||||
GET_U_LINE (y >> 1), GET_V_LINE (y >> 1), GET_A_LINE (y), src, width / 2);
|
||||
}
|
||||
|
||||
|
@ -1015,7 +1017,7 @@ unpack_410 (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
|
|||
gpointer dest, const gpointer data[GST_VIDEO_MAX_PLANES],
|
||||
const gint stride[GST_VIDEO_MAX_PLANES], gint x, gint y, gint width)
|
||||
{
|
||||
orc_unpack_YUV9 (dest,
|
||||
gst_video_orc_unpack_YUV9 (dest,
|
||||
GET_Y_LINE (y), GET_U_LINE (y >> 2), GET_V_LINE (y >> 2), width / 2);
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -67,37 +67,37 @@ typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16
|
|||
#define ORC_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
void orc_blend_little (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_blend_big (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_I420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n);
|
||||
void orc_pack_I420 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, guint8 * ORC_RESTRICT d3, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_YUY2 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_YUY2 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_UYVY (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_UYVY (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_YVYU (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_YVYU (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_YUV9 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n);
|
||||
void orc_unpack_Y42B (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n);
|
||||
void orc_pack_Y42B (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, guint8 * ORC_RESTRICT d3, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_Y444 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n);
|
||||
void orc_pack_Y444 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, guint8 * ORC_RESTRICT d3, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_GRAY8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_GRAY8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_BGRA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_BGRA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_RGBA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_RGBA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_ABGR (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_pack_ABGR (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_NV12 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int n);
|
||||
void orc_pack_NV12 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_NV21 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int n);
|
||||
void orc_pack_NV21 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_unpack_A420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int n);
|
||||
void orc_pack_A420 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, guint8 * ORC_RESTRICT d3, guint8 * ORC_RESTRICT d4, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p1, int n);
|
||||
void gst_video_orc_blend_little (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_blend_big (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_I420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n);
|
||||
void gst_video_orc_pack_I420 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, guint8 * ORC_RESTRICT d3, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_YUY2 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_pack_YUY2 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_pack_UYVY (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_UYVY (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_YVYU (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_pack_YVYU (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_YUV9 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n);
|
||||
void gst_video_orc_unpack_Y42B (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n);
|
||||
void gst_video_orc_pack_Y42B (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, guint8 * ORC_RESTRICT d3, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_Y444 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, int n);
|
||||
void gst_video_orc_pack_Y444 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, guint8 * ORC_RESTRICT d3, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_GRAY8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_pack_GRAY8 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_BGRA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_pack_BGRA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_pack_RGBA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_RGBA (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_ABGR (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_pack_ABGR (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_NV12 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int n);
|
||||
void gst_video_orc_pack_NV12 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_NV21 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, int n);
|
||||
void gst_video_orc_pack_NV21 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_unpack_A420 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, const guint8 * ORC_RESTRICT s2, const guint8 * ORC_RESTRICT s3, const guint8 * ORC_RESTRICT s4, int n);
|
||||
void gst_video_orc_pack_A420 (guint8 * ORC_RESTRICT d1, guint8 * ORC_RESTRICT d2, guint8 * ORC_RESTRICT d3, guint8 * ORC_RESTRICT d4, const guint8 * ORC_RESTRICT s1, int n);
|
||||
void gst_video_orc_resample_bilinear_u32 (guint8 * ORC_RESTRICT d1, const guint8 * ORC_RESTRICT s1, int p1, int p2, int n);
|
||||
void gst_video_orc_merge_linear_u8 (orc_uint8 * ORC_RESTRICT d1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int p1, int n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.function orc_blend_little
|
||||
.function gst_video_orc_blend_little
|
||||
.flags 1d
|
||||
.dest 4 d guint8
|
||||
.source 4 s guint8
|
||||
|
@ -28,7 +28,7 @@ x4 convwb t, d_wide
|
|||
orl t, t, a_alpha
|
||||
storel d, t
|
||||
|
||||
.function orc_blend_big
|
||||
.function gst_video_orc_blend_big
|
||||
.flags 1d
|
||||
.dest 4 d guint8
|
||||
.source 4 s guint8
|
||||
|
@ -60,7 +60,7 @@ x4 convwb t, d_wide
|
|||
orl t, t, a_alpha
|
||||
storel d, t
|
||||
|
||||
.function orc_unpack_I420
|
||||
.function gst_video_orc_unpack_I420
|
||||
.dest 4 d guint8
|
||||
.source 1 y guint8
|
||||
.source 1 u guint8
|
||||
|
@ -78,7 +78,7 @@ mergebw ay, c255, y
|
|||
mergewl d, ay, uv
|
||||
|
||||
|
||||
.function orc_pack_I420
|
||||
.function gst_video_orc_pack_I420
|
||||
.dest 2 y guint8
|
||||
.dest 1 u guint8
|
||||
.dest 1 v guint8
|
||||
|
@ -98,7 +98,7 @@ avgub u, t1, t2
|
|||
splitwb t1, t2, vv
|
||||
avgub v, t1, t2
|
||||
|
||||
.function orc_unpack_YUY2
|
||||
.function gst_video_orc_unpack_YUY2
|
||||
.dest 8 ayuv guint8
|
||||
.source 4 yuy2 guint8
|
||||
.const 2 c255 0xff
|
||||
|
@ -113,7 +113,7 @@ mergewl uvuv, uv, uv
|
|||
x2 mergewl ayuv, ayay, uvuv
|
||||
|
||||
|
||||
.function orc_pack_YUY2
|
||||
.function gst_video_orc_pack_YUY2
|
||||
.dest 4 yuy2 guint8
|
||||
.source 8 ayuv guint8
|
||||
.temp 2 yy
|
||||
|
@ -129,7 +129,7 @@ x2 select1wb yy, ayay
|
|||
x2 mergebw yuy2, yy, uv1
|
||||
|
||||
|
||||
.function orc_pack_UYVY
|
||||
.function gst_video_orc_pack_UYVY
|
||||
.dest 4 yuy2 guint8
|
||||
.source 8 ayuv guint8
|
||||
.temp 2 yy
|
||||
|
@ -145,7 +145,7 @@ x2 select1wb yy, ayay
|
|||
x2 mergebw yuy2, uv1, yy
|
||||
|
||||
|
||||
.function orc_unpack_UYVY
|
||||
.function gst_video_orc_unpack_UYVY
|
||||
.dest 8 ayuv guint8
|
||||
.source 4 uyvy guint8
|
||||
.const 2 c255 0xff
|
||||
|
@ -160,7 +160,7 @@ mergewl uvuv, uv, uv
|
|||
x2 mergewl ayuv, ayay, uvuv
|
||||
|
||||
|
||||
.function orc_unpack_YVYU
|
||||
.function gst_video_orc_unpack_YVYU
|
||||
.dest 8 ayuv guint8
|
||||
.source 4 uyvy guint8
|
||||
.const 2 c255 0xff
|
||||
|
@ -176,7 +176,7 @@ mergewl uvuv, uv, uv
|
|||
x2 mergewl ayuv, ayay, uvuv
|
||||
|
||||
|
||||
.function orc_pack_YVYU
|
||||
.function gst_video_orc_pack_YVYU
|
||||
.dest 4 yuy2 guint8
|
||||
.source 8 ayuv guint8
|
||||
.temp 2 yy
|
||||
|
@ -193,7 +193,7 @@ swapw uv1, uv1
|
|||
x2 mergebw yuy2, yy, uv1
|
||||
|
||||
|
||||
.function orc_unpack_YUV9
|
||||
.function gst_video_orc_unpack_YUV9
|
||||
.dest 8 d guint8
|
||||
.source 2 y guint8
|
||||
.source 1 u guint8
|
||||
|
@ -213,7 +213,7 @@ x2 mergebw ay, c255, y
|
|||
x2 mergewl d, ay, uv
|
||||
|
||||
|
||||
.function orc_unpack_Y42B
|
||||
.function gst_video_orc_unpack_Y42B
|
||||
.dest 8 ayuv guint8
|
||||
.source 2 yy guint8
|
||||
.source 1 u guint8
|
||||
|
@ -229,7 +229,7 @@ x2 mergebw ayay, c255, yy
|
|||
mergewl uvuv, uv, uv
|
||||
x2 mergewl ayuv, ayay, uvuv
|
||||
|
||||
.function orc_pack_Y42B
|
||||
.function gst_video_orc_pack_Y42B
|
||||
.dest 2 y guint8
|
||||
.dest 1 u guint8
|
||||
.dest 1 v guint8
|
||||
|
@ -246,7 +246,7 @@ splitwb v, u, uv1
|
|||
x2 select1wb y, ayay
|
||||
|
||||
|
||||
.function orc_unpack_Y444
|
||||
.function gst_video_orc_unpack_Y444
|
||||
.dest 4 ayuv guint8
|
||||
.source 1 y guint8
|
||||
.source 1 u guint8
|
||||
|
@ -260,7 +260,7 @@ mergebw ay, c255, y
|
|||
mergewl ayuv, ay, uv
|
||||
|
||||
|
||||
.function orc_pack_Y444
|
||||
.function gst_video_orc_pack_Y444
|
||||
.dest 1 y guint8
|
||||
.dest 1 u guint8
|
||||
.dest 1 v guint8
|
||||
|
@ -272,7 +272,7 @@ splitlw uv, ay, ayuv
|
|||
splitwb v, u, uv
|
||||
select1wb y, ay
|
||||
|
||||
.function orc_unpack_GRAY8
|
||||
.function gst_video_orc_unpack_GRAY8
|
||||
.dest 4 ayuv guint8
|
||||
.source 1 y guint8
|
||||
.const 1 c255 255
|
||||
|
@ -283,7 +283,7 @@ mergebw ay, c255, y
|
|||
mergewl ayuv, ay, c0x8080
|
||||
|
||||
|
||||
.function orc_pack_GRAY8
|
||||
.function gst_video_orc_pack_GRAY8
|
||||
.dest 1 y guint8
|
||||
.source 4 ayuv guint8
|
||||
.temp 2 ay
|
||||
|
@ -292,19 +292,19 @@ select0lw ay, ayuv
|
|||
select1wb y, ay
|
||||
|
||||
|
||||
.function orc_unpack_BGRA
|
||||
.function gst_video_orc_unpack_BGRA
|
||||
.dest 4 argb guint8
|
||||
.source 4 bgra guint8
|
||||
|
||||
swapl argb, bgra
|
||||
|
||||
.function orc_pack_BGRA
|
||||
.function gst_video_orc_pack_BGRA
|
||||
.dest 4 bgra guint8
|
||||
.source 4 argb guint8
|
||||
|
||||
swapl bgra, argb
|
||||
|
||||
.function orc_pack_RGBA
|
||||
.function gst_video_orc_pack_RGBA
|
||||
.dest 4 rgba guint8
|
||||
.source 4 argb guint8
|
||||
.temp 1 a
|
||||
|
@ -323,7 +323,7 @@ mergebw ba, b, a
|
|||
mergebw rg, r, g
|
||||
mergewl rgba, rg, ba
|
||||
|
||||
.function orc_unpack_RGBA
|
||||
.function gst_video_orc_unpack_RGBA
|
||||
.dest 4 argb guint8
|
||||
.source 4 rgba guint8
|
||||
.temp 1 a
|
||||
|
@ -343,7 +343,7 @@ mergebw gb, g, b
|
|||
mergewl argb, ar, gb
|
||||
|
||||
|
||||
.function orc_unpack_ABGR
|
||||
.function gst_video_orc_unpack_ABGR
|
||||
.dest 4 argb guint8
|
||||
.source 4 abgr guint8
|
||||
.temp 1 a
|
||||
|
@ -363,7 +363,7 @@ mergebw gb, g, b
|
|||
mergewl argb, ar, gb
|
||||
|
||||
|
||||
.function orc_pack_ABGR
|
||||
.function gst_video_orc_pack_ABGR
|
||||
.dest 4 abgr guint8
|
||||
.source 4 argb guint8
|
||||
.temp 1 a
|
||||
|
@ -382,7 +382,7 @@ mergebw ab, a, b
|
|||
mergebw gr, g, r
|
||||
mergewl abgr, ab, gr
|
||||
|
||||
.function orc_unpack_NV12
|
||||
.function gst_video_orc_unpack_NV12
|
||||
.dest 8 d guint8
|
||||
.source 2 y guint8
|
||||
.source 2 uv guint8
|
||||
|
@ -394,7 +394,7 @@ mergewl uvuv, uv, uv
|
|||
x2 mergebw ay, c255, y
|
||||
x2 mergewl d, ay, uvuv
|
||||
|
||||
.function orc_pack_NV12
|
||||
.function gst_video_orc_pack_NV12
|
||||
.dest 2 y guint8
|
||||
.dest 2 uv guint8
|
||||
.source 8 ayuv guint8
|
||||
|
@ -408,7 +408,7 @@ x2 select1wb y, ay
|
|||
splitlw uv1, uv2, uvuv
|
||||
x2 avgub uv, uv1, uv2
|
||||
|
||||
.function orc_unpack_NV21
|
||||
.function gst_video_orc_unpack_NV21
|
||||
.dest 8 d guint8
|
||||
.source 2 y guint8
|
||||
.source 2 vu guint8
|
||||
|
@ -423,7 +423,7 @@ x2 mergebw ay, c255, y
|
|||
x2 mergewl d, ay, uvuv
|
||||
|
||||
|
||||
.function orc_pack_NV21
|
||||
.function gst_video_orc_pack_NV21
|
||||
.dest 2 y guint8
|
||||
.dest 2 vu guint8
|
||||
.source 8 ayuv guint8
|
||||
|
@ -440,7 +440,7 @@ x2 avgub uv, uv1, uv2
|
|||
swapw vu, uv
|
||||
|
||||
|
||||
.function orc_unpack_A420
|
||||
.function gst_video_orc_unpack_A420
|
||||
.dest 4 d guint8
|
||||
.source 1 y guint8
|
||||
.source 1 u guint8
|
||||
|
@ -457,7 +457,7 @@ mergebw uv, tu, tv
|
|||
mergebw ay, a, y
|
||||
mergewl d, ay, uv
|
||||
|
||||
.function orc_pack_A420
|
||||
.function gst_video_orc_pack_A420
|
||||
.dest 2 y guint8
|
||||
.dest 1 u guint8
|
||||
.dest 1 v guint8
|
||||
|
@ -479,7 +479,7 @@ avgub u, t1, t2
|
|||
splitwb t1, t2, vv
|
||||
avgub v, t1, t2
|
||||
|
||||
.function orc_resample_bilinear_u32
|
||||
.function gst_video_orc_resample_bilinear_u32
|
||||
.dest 4 d1 guint8
|
||||
.source 4 s1 guint8
|
||||
.param 4 p1
|
||||
|
@ -487,7 +487,7 @@ avgub v, t1, t2
|
|||
|
||||
ldreslinl d1, s1, p1, p2
|
||||
|
||||
.function orc_merge_linear_u8
|
||||
.function gst_video_orc_merge_linear_u8
|
||||
.dest 1 d1
|
||||
.source 1 s1
|
||||
.source 1 s2
|
||||
|
|
Loading…
Reference in a new issue