2010-09-13 19:48:50 +00:00
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_memcpy_2d
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 1 d1 guint8
|
|
|
|
.source 1 s1 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
|
|
|
|
copyb d1, s1
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_I420_UYVY
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 d1 guint8
|
|
|
|
.dest 4 d2 guint8
|
|
|
|
.source 2 y1 guint8
|
|
|
|
.source 2 y2 guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
mergebw uv, u, v
|
|
|
|
x2 mergebw d1, uv, y1
|
|
|
|
x2 mergebw d2, uv, y2
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_I420_YUY2
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 d1 guint8
|
|
|
|
.dest 4 d2 guint8
|
|
|
|
.source 2 y1 guint8
|
|
|
|
.source 2 y2 guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
mergebw uv, u, v
|
|
|
|
x2 mergebw d1, y1, uv
|
|
|
|
x2 mergebw d2, y2, uv
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_I420_AYUV
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 d1 guint8
|
|
|
|
.dest 4 d2 guint8
|
|
|
|
.source 1 y1 guint8
|
|
|
|
.source 1 y2 guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.const 1 c255 255
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 2 ay
|
|
|
|
.temp 1 tu
|
|
|
|
.temp 1 tv
|
|
|
|
|
|
|
|
loadupdb tu, u
|
|
|
|
loadupdb tv, v
|
|
|
|
mergebw uv, tu, tv
|
|
|
|
mergebw ay, c255, y1
|
|
|
|
mergewl d1, ay, uv
|
|
|
|
mergebw ay, c255, y2
|
|
|
|
mergewl d2, ay, uv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_YUY2_I420
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y1 guint8
|
|
|
|
.dest 2 y2 guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 4 yuv1 guint8
|
|
|
|
.source 4 yuv2 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t1
|
|
|
|
.temp 2 t2
|
|
|
|
.temp 2 ty
|
|
|
|
|
|
|
|
x2 splitwb t1, ty, yuv1
|
|
|
|
storew y1, ty
|
|
|
|
x2 splitwb t2, ty, yuv2
|
|
|
|
storew y2, ty
|
|
|
|
x2 avgub t1, t1, t2
|
|
|
|
splitwb v, u, t1
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_UYVY_YUY2
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 yuy2 guint8
|
|
|
|
.source 4 uyvy guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
|
|
|
|
x2 swapw yuy2, uyvy
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_planar_chroma_420_422
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 1 d1 guint8
|
|
|
|
.dest 1 d2 guint8
|
|
|
|
.source 1 s guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
|
|
|
|
copyb d1, s
|
|
|
|
copyb d2, s
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_planar_chroma_420_444
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 d1 guint8
|
|
|
|
.dest 2 d2 guint8
|
|
|
|
.source 1 s guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t
|
|
|
|
|
|
|
|
splatbw t, s
|
|
|
|
storew d1, t
|
|
|
|
storew d2, t
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_planar_chroma_422_444
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 d1 guint8
|
|
|
|
.source 1 s guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t
|
|
|
|
|
|
|
|
splatbw t, s
|
|
|
|
storew d1, t
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_planar_chroma_444_422
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 1 d guint8
|
|
|
|
.source 2 s guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 1 t1
|
|
|
|
.temp 1 t2
|
|
|
|
|
|
|
|
splitwb t1, t2, s
|
|
|
|
avgub d, t1, t2
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_planar_chroma_444_420
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 1 d guint8
|
|
|
|
.source 2 s1 guint8
|
|
|
|
.source 2 s2 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t
|
|
|
|
.temp 1 t1
|
|
|
|
.temp 1 t2
|
|
|
|
|
|
|
|
x2 avgub t, s1, s2
|
|
|
|
splitwb t1, t2, t
|
|
|
|
avgub d, t1, t2
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_planar_chroma_422_420
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 1 d guint8
|
|
|
|
.source 1 s1 guint8
|
|
|
|
.source 1 s2 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
|
|
|
|
avgub d, s1, s2
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_YUY2_AYUV
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 ayuv guint8
|
|
|
|
.source 4 yuy2 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.const 2 c255 0xff
|
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitwb uv, yy, yuy2
|
|
|
|
x2 mergebw ayay, c255, yy
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergewl ayuv, ayay, uvuv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_UYVY_AYUV
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 ayuv guint8
|
|
|
|
.source 4 uyvy guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.const 2 c255 0xff
|
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitwb yy, uv, uyvy
|
|
|
|
x2 mergebw ayay, c255, yy
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergewl ayuv, ayay, uvuv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_YUY2_Y42B
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 4 yuy2 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
x2 splitwb uv, y, yuy2
|
|
|
|
splitwb v, u, uv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_UYVY_Y42B
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 4 uyvy guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
x2 splitwb y, uv, uyvy
|
|
|
|
splitwb v, u, uv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_YUY2_Y444
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 2 uu guint8
|
|
|
|
.dest 2 vv guint8
|
|
|
|
.source 4 yuy2 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
.temp 1 u
|
|
|
|
.temp 1 v
|
|
|
|
|
|
|
|
x2 splitwb uv, y, yuy2
|
|
|
|
splitwb v, u, uv
|
|
|
|
splatbw uu, u
|
|
|
|
splatbw vv, v
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_UYVY_Y444
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 2 uu guint8
|
|
|
|
.dest 2 vv guint8
|
|
|
|
.source 4 uyvy guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
.temp 1 u
|
|
|
|
.temp 1 v
|
|
|
|
|
|
|
|
x2 splitwb y, uv, uyvy
|
|
|
|
splitwb v, u, uv
|
|
|
|
splatbw uu, u
|
|
|
|
splatbw vv, v
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_UYVY_I420
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y1 guint8
|
|
|
|
.dest 2 y2 guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 4 yuv1 guint8
|
|
|
|
.source 4 yuv2 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t1
|
|
|
|
.temp 2 t2
|
|
|
|
.temp 2 ty
|
|
|
|
|
|
|
|
x2 splitwb ty, t1, yuv1
|
|
|
|
storew y1, ty
|
|
|
|
x2 splitwb ty, t2, yuv2
|
|
|
|
storew y2, ty
|
|
|
|
x2 avgub t1, t1, t2
|
|
|
|
splitwb v, u, t1
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_I420
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y1 guint8
|
|
|
|
.dest 2 y2 guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 8 ayuv1 guint8
|
|
|
|
.source 8 ayuv2 guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 4 ay
|
|
|
|
.temp 4 uv1
|
|
|
|
.temp 4 uv2
|
|
|
|
.temp 4 uv
|
|
|
|
.temp 2 uu
|
|
|
|
.temp 2 vv
|
|
|
|
.temp 1 t1
|
|
|
|
.temp 1 t2
|
|
|
|
|
|
|
|
x2 splitlw uv1, ay, ayuv1
|
|
|
|
x2 select1wb y1, ay
|
|
|
|
x2 splitlw uv2, ay, ayuv2
|
|
|
|
x2 select1wb y2, ay
|
|
|
|
x4 avgub uv, uv1, uv2
|
|
|
|
x2 splitwb vv, uu, uv
|
|
|
|
splitwb t1, t2, uu
|
|
|
|
avgub u, t1, t2
|
|
|
|
splitwb t1, t2, vv
|
|
|
|
avgub v, t1, t2
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_YUY2
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 yuy2 guint8
|
|
|
|
.source 8 ayuv guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ayay, ayuv
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv1, uv1, uv2
|
|
|
|
x2 select1wb yy, ayay
|
|
|
|
x2 mergebw yuy2, yy, uv1
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_UYVY
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 yuy2 guint8
|
|
|
|
.source 8 ayuv guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ayay, ayuv
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv1, uv1, uv2
|
|
|
|
x2 select1wb yy, ayay
|
|
|
|
x2 mergebw yuy2, uv1, yy
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_Y42B
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 8 ayuv guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ayay, ayuv
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv1, uv1, uv2
|
|
|
|
splitwb v, u, uv1
|
|
|
|
x2 select1wb y, ayay
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_Y444
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 1 y guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 4 ayuv guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 ay
|
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
splitlw uv, ay, ayuv
|
|
|
|
splitwb v, u, uv
|
|
|
|
select1wb y, ay
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_Y42B_YUY2
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 yuy2 guint8
|
|
|
|
.source 2 y guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
mergebw uv, u, v
|
|
|
|
x2 mergebw yuy2, y, uv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_Y42B_UYVY
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 uyvy guint8
|
|
|
|
.source 2 y guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
mergebw uv, u, v
|
|
|
|
x2 mergebw uyvy, uv, y
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_Y42B_AYUV
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 ayuv guint8
|
|
|
|
.source 2 yy guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.const 1 c255 255
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 2 ay
|
|
|
|
.temp 4 uvuv
|
|
|
|
.temp 4 ayay
|
|
|
|
|
|
|
|
mergebw uv, u, v
|
|
|
|
x2 mergebw ayay, c255, yy
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergewl ayuv, ayay, uvuv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_Y444_YUY2
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 yuy2 guint8
|
|
|
|
.source 2 y guint8
|
|
|
|
.source 2 u guint8
|
|
|
|
.source 2 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
.temp 4 uvuv
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
|
|
|
|
x2 mergebw uvuv, u, v
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv, uv1, uv2
|
|
|
|
x2 mergebw yuy2, y, uv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_Y444_UYVY
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 uyvy guint8
|
|
|
|
.source 2 y guint8
|
|
|
|
.source 2 u guint8
|
|
|
|
.source 2 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 uv
|
|
|
|
.temp 4 uvuv
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
|
|
|
|
x2 mergebw uvuv, u, v
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv, uv1, uv2
|
|
|
|
x2 mergebw uyvy, uv, y
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_Y444_AYUV
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 ayuv guint8
|
|
|
|
.source 1 yy guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.const 1 c255 255
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 2 ay
|
|
|
|
|
|
|
|
mergebw uv, u, v
|
|
|
|
mergebw ay, c255, yy
|
|
|
|
mergewl ayuv, ay, uv
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_ARGB
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 argb guint8
|
|
|
|
.source 4 ayuv guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t1
|
|
|
|
.temp 2 t2
|
|
|
|
.temp 1 a
|
|
|
|
.temp 1 y
|
|
|
|
.temp 1 u
|
|
|
|
.temp 1 v
|
|
|
|
.temp 2 wy
|
|
|
|
.temp 2 wu
|
|
|
|
.temp 2 wv
|
|
|
|
.temp 2 wr
|
|
|
|
.temp 2 wg
|
|
|
|
.temp 2 wb
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.temp 4 x
|
|
|
|
.const 1 c8 8
|
|
|
|
|
|
|
|
x4 subb x, ayuv, 128
|
|
|
|
splitlw t1, t2, x
|
|
|
|
splitwb y, a, t2
|
|
|
|
splitwb v, u, t1
|
|
|
|
convsbw wy, y
|
|
|
|
convsbw wu, u
|
|
|
|
convsbw wv, v
|
|
|
|
|
|
|
|
mullw t1, wy, 42
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wy, wy, t1
|
|
|
|
|
|
|
|
addssw wr, wy, wv
|
|
|
|
mullw t1, wv, 103
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wr, wr, t1
|
|
|
|
addssw wr, wr, wv
|
|
|
|
|
|
|
|
addssw wb, wy, wu
|
|
|
|
addssw wb, wb, wu
|
|
|
|
mullw t1, wu, 4
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wb, wb, t1
|
|
|
|
|
|
|
|
mullw t1, wu, 100
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wy, t1
|
|
|
|
mullw t1, wv, 104
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wg, t1
|
|
|
|
subssw wg, wg, t1
|
|
|
|
|
|
|
|
convssswb r, wr
|
|
|
|
convssswb g, wg
|
|
|
|
convssswb b, wb
|
|
|
|
|
|
|
|
mergebw t1, a, r
|
|
|
|
mergebw t2, g, b
|
|
|
|
mergewl x, t1, t2
|
|
|
|
x4 addb argb, x, 128
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_BGRA
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 argb guint8
|
|
|
|
.source 4 ayuv guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t1
|
|
|
|
.temp 2 t2
|
|
|
|
.temp 1 a
|
|
|
|
.temp 1 y
|
|
|
|
.temp 1 u
|
|
|
|
.temp 1 v
|
|
|
|
.temp 2 wy
|
|
|
|
.temp 2 wu
|
|
|
|
.temp 2 wv
|
|
|
|
.temp 2 wr
|
|
|
|
.temp 2 wg
|
|
|
|
.temp 2 wb
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.temp 4 x
|
|
|
|
.const 1 c8 8
|
|
|
|
|
|
|
|
x4 subb x, ayuv, 128
|
|
|
|
splitlw t1, t2, x
|
|
|
|
splitwb y, a, t2
|
|
|
|
splitwb v, u, t1
|
|
|
|
convsbw wy, y
|
|
|
|
convsbw wu, u
|
|
|
|
convsbw wv, v
|
|
|
|
|
|
|
|
mullw t1, wy, 42
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wy, wy, t1
|
|
|
|
|
|
|
|
addssw wr, wy, wv
|
|
|
|
mullw t1, wv, 103
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wr, wr, t1
|
|
|
|
addssw wr, wr, wv
|
|
|
|
|
|
|
|
addssw wb, wy, wu
|
|
|
|
addssw wb, wb, wu
|
|
|
|
mullw t1, wu, 4
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wb, wb, t1
|
|
|
|
|
|
|
|
mullw t1, wu, 100
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wy, t1
|
|
|
|
mullw t1, wv, 104
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wg, t1
|
|
|
|
subssw wg, wg, t1
|
|
|
|
|
|
|
|
convssswb r, wr
|
|
|
|
convssswb g, wg
|
|
|
|
convssswb b, wb
|
|
|
|
|
|
|
|
mergebw t1, b, g
|
|
|
|
mergebw t2, r, a
|
|
|
|
mergewl x, t1, t2
|
|
|
|
x4 addb argb, x, 128
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_ABGR
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 argb guint8
|
|
|
|
.source 4 ayuv guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t1
|
|
|
|
.temp 2 t2
|
|
|
|
.temp 1 a
|
|
|
|
.temp 1 y
|
|
|
|
.temp 1 u
|
|
|
|
.temp 1 v
|
|
|
|
.temp 2 wy
|
|
|
|
.temp 2 wu
|
|
|
|
.temp 2 wv
|
|
|
|
.temp 2 wr
|
|
|
|
.temp 2 wg
|
|
|
|
.temp 2 wb
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.temp 4 x
|
|
|
|
.const 1 c8 8
|
|
|
|
|
|
|
|
x4 subb x, ayuv, 128
|
|
|
|
splitlw t1, t2, x
|
|
|
|
splitwb y, a, t2
|
|
|
|
splitwb v, u, t1
|
|
|
|
convsbw wy, y
|
|
|
|
convsbw wu, u
|
|
|
|
convsbw wv, v
|
|
|
|
|
|
|
|
mullw t1, wy, 42
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wy, wy, t1
|
|
|
|
|
|
|
|
addssw wr, wy, wv
|
|
|
|
mullw t1, wv, 103
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wr, wr, t1
|
|
|
|
addssw wr, wr, wv
|
|
|
|
|
|
|
|
addssw wb, wy, wu
|
|
|
|
addssw wb, wb, wu
|
|
|
|
mullw t1, wu, 4
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wb, wb, t1
|
|
|
|
|
|
|
|
mullw t1, wu, 100
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wy, t1
|
|
|
|
mullw t1, wv, 104
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wg, t1
|
|
|
|
subssw wg, wg, t1
|
|
|
|
|
|
|
|
convssswb r, wr
|
|
|
|
convssswb g, wg
|
|
|
|
convssswb b, wb
|
|
|
|
|
|
|
|
mergebw t1, a, b
|
|
|
|
mergebw t2, g, r
|
|
|
|
mergewl x, t1, t2
|
|
|
|
x4 addb argb, x, 128
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_AYUV_RGBA
|
2010-09-13 19:48:50 +00:00
|
|
|
.flags 2d
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 argb guint8
|
|
|
|
.source 4 ayuv guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t1
|
|
|
|
.temp 2 t2
|
|
|
|
.temp 1 a
|
|
|
|
.temp 1 y
|
|
|
|
.temp 1 u
|
|
|
|
.temp 1 v
|
|
|
|
.temp 2 wy
|
|
|
|
.temp 2 wu
|
|
|
|
.temp 2 wv
|
|
|
|
.temp 2 wr
|
|
|
|
.temp 2 wg
|
|
|
|
.temp 2 wb
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.temp 4 x
|
|
|
|
.const 1 c8 8
|
|
|
|
|
|
|
|
x4 subb x, ayuv, 128
|
|
|
|
splitlw t1, t2, x
|
|
|
|
splitwb y, a, t2
|
|
|
|
splitwb v, u, t1
|
|
|
|
convsbw wy, y
|
|
|
|
convsbw wu, u
|
|
|
|
convsbw wv, v
|
|
|
|
|
|
|
|
mullw t1, wy, 42
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wy, wy, t1
|
|
|
|
|
|
|
|
addssw wr, wy, wv
|
|
|
|
mullw t1, wv, 103
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wr, wr, t1
|
|
|
|
addssw wr, wr, wv
|
|
|
|
|
|
|
|
addssw wb, wy, wu
|
|
|
|
addssw wb, wb, wu
|
|
|
|
mullw t1, wu, 4
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wb, wb, t1
|
|
|
|
|
|
|
|
mullw t1, wu, 100
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wy, t1
|
|
|
|
mullw t1, wv, 104
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wg, t1
|
|
|
|
subssw wg, wg, t1
|
|
|
|
|
|
|
|
convssswb r, wr
|
|
|
|
convssswb g, wg
|
|
|
|
convssswb b, wb
|
|
|
|
|
|
|
|
mergebw t1, r, g
|
|
|
|
mergebw t2, b, a
|
|
|
|
mergewl x, t1, t2
|
|
|
|
x4 addb argb, x, 128
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_convert_I420_BGRA
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 argb guint8
|
|
|
|
.source 1 y guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
2010-09-13 19:48:50 +00:00
|
|
|
.temp 2 t1
|
|
|
|
.temp 2 t2
|
|
|
|
.temp 1 t3
|
|
|
|
.temp 2 wy
|
|
|
|
.temp 2 wu
|
|
|
|
.temp 2 wv
|
|
|
|
.temp 2 wr
|
|
|
|
.temp 2 wg
|
|
|
|
.temp 2 wb
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.const 1 c8 8
|
|
|
|
.const 1 c128 128
|
|
|
|
|
|
|
|
subb t3, y, c128
|
|
|
|
convsbw wy, t3
|
|
|
|
loadupib t3, u
|
|
|
|
subb t3, t3, c128
|
|
|
|
convsbw wu, t3
|
|
|
|
loadupib t3, v
|
|
|
|
subb t3, t3, c128
|
|
|
|
convsbw wv, t3
|
|
|
|
|
|
|
|
mullw t1, wy, 42
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wy, wy, t1
|
|
|
|
|
|
|
|
addssw wr, wy, wv
|
|
|
|
mullw t1, wv, 103
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wr, wr, t1
|
|
|
|
addssw wr, wr, wv
|
|
|
|
|
|
|
|
addssw wb, wy, wu
|
|
|
|
addssw wb, wb, wu
|
|
|
|
mullw t1, wu, 4
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
addssw wb, wb, t1
|
|
|
|
|
|
|
|
mullw t1, wu, 100
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wy, t1
|
|
|
|
mullw t1, wv, 104
|
|
|
|
shrsw t1, t1, c8
|
|
|
|
subssw wg, wg, t1
|
|
|
|
subssw wg, wg, t1
|
|
|
|
|
|
|
|
convssswb r, wr
|
|
|
|
convssswb g, wg
|
|
|
|
convssswb b, wb
|
|
|
|
|
|
|
|
mergebw t1, b, g
|
2013-12-23 13:54:02 +00:00
|
|
|
x2 subb t1, t1, c128
|
|
|
|
subb r, r, c128
|
2010-09-13 19:48:50 +00:00
|
|
|
mergebw t2, r, 255
|
2013-12-23 13:54:02 +00:00
|
|
|
mergewl argb, t1, t2
|
2010-09-13 19:48:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_I420
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 d guint8
|
|
|
|
.source 1 y guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
|
|
|
.const 1 c255 255
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 2 ay
|
|
|
|
.temp 1 tu
|
|
|
|
.temp 1 tv
|
|
|
|
|
|
|
|
loadupdb tu, u
|
|
|
|
loadupdb tv, v
|
|
|
|
mergebw uv, tu, tv
|
|
|
|
mergebw ay, c255, y
|
|
|
|
mergewl d, ay, uv
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_YUV9
|
2010-11-03 14:12:42 +00:00
|
|
|
.dest 8 d guint8
|
|
|
|
.source 2 y guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
|
|
|
.const 1 c255 255
|
|
|
|
.temp 2 tuv
|
|
|
|
.temp 4 ay
|
|
|
|
.temp 4 uv
|
|
|
|
.temp 1 tu
|
|
|
|
.temp 1 tv
|
|
|
|
|
|
|
|
loadupdb tu, u
|
|
|
|
loadupdb tv, v
|
|
|
|
mergebw tuv, tu, tv
|
|
|
|
mergewl uv, tuv, tuv
|
|
|
|
x2 mergebw ay, c255, y
|
|
|
|
x2 mergewl d, ay, uv
|
2010-09-14 01:49:43 +00:00
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_YUY2
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 ayuv guint8
|
|
|
|
.source 4 yuy2 guint8
|
|
|
|
.const 2 c255 0xff
|
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitwb uv, yy, yuy2
|
|
|
|
x2 mergebw ayay, c255, yy
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergewl ayuv, ayay, uvuv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_UYVY
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 ayuv guint8
|
|
|
|
.source 4 uyvy guint8
|
|
|
|
.const 2 c255 0xff
|
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitwb yy, uv, uyvy
|
|
|
|
x2 mergebw ayay, c255, yy
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergewl ayuv, ayay, uvuv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_YVYU
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 ayuv guint8
|
|
|
|
.source 4 uyvy guint8
|
|
|
|
.const 2 c255 0xff
|
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
2011-02-20 22:14:27 +00:00
|
|
|
x2 splitwb uv, yy, uyvy
|
|
|
|
swapw uv, uv
|
2010-09-14 01:49:43 +00:00
|
|
|
x2 mergebw ayay, c255, yy
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergewl ayuv, ayay, uvuv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_Y42B
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 ayuv guint8
|
|
|
|
.source 2 yy guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
|
|
|
.const 1 c255 255
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 2 ay
|
|
|
|
.temp 4 uvuv
|
|
|
|
.temp 4 ayay
|
|
|
|
|
|
|
|
mergebw uv, u, v
|
|
|
|
x2 mergebw ayay, c255, yy
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergewl ayuv, ayay, uvuv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_Y444
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 ayuv guint8
|
|
|
|
.source 1 y guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
|
|
|
.const 1 c255 255
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 2 ay
|
|
|
|
|
|
|
|
mergebw uv, u, v
|
|
|
|
mergebw ay, c255, y
|
|
|
|
mergewl ayuv, ay, uv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_Y800
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 ayuv guint8
|
|
|
|
.source 1 y guint8
|
|
|
|
.const 1 c255 255
|
2010-10-31 22:25:40 +00:00
|
|
|
.const 2 c0x8080 0x8080
|
2010-09-14 01:49:43 +00:00
|
|
|
.temp 2 ay
|
|
|
|
|
|
|
|
mergebw ay, c255, y
|
2010-10-31 22:25:40 +00:00
|
|
|
mergewl ayuv, ay, c0x8080
|
2010-09-14 01:49:43 +00:00
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_Y16
|
2010-10-31 22:25:57 +00:00
|
|
|
.dest 4 ayuv guint8
|
|
|
|
.source 2 y guint8
|
|
|
|
.const 1 c255 255
|
|
|
|
.const 2 c0x8080 0x8080
|
|
|
|
.temp 2 ay
|
|
|
|
.temp 1 yb
|
|
|
|
|
|
|
|
convhwb yb, y
|
|
|
|
mergebw ay, c255, yb
|
|
|
|
mergewl ayuv, ay, c0x8080
|
2010-09-14 01:49:43 +00:00
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_BGRA
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 argb guint8
|
|
|
|
.source 4 bgra guint8
|
|
|
|
|
|
|
|
swapl argb, bgra
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_ABGR
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 argb guint8
|
|
|
|
.source 4 abgr guint8
|
|
|
|
.temp 1 a
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.temp 2 gr
|
|
|
|
.temp 2 ab
|
|
|
|
.temp 2 ar
|
|
|
|
.temp 2 gb
|
|
|
|
|
|
|
|
splitlw gr, ab, abgr
|
|
|
|
splitwb r, g, gr
|
|
|
|
splitwb b, a, ab
|
|
|
|
mergebw ar, a, r
|
|
|
|
mergebw gb, g, b
|
|
|
|
mergewl argb, ar, gb
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_RGBA
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 argb guint8
|
|
|
|
.source 4 rgba guint8
|
|
|
|
.temp 1 a
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.temp 2 rg
|
|
|
|
.temp 2 ba
|
|
|
|
.temp 2 ar
|
|
|
|
.temp 2 gb
|
|
|
|
|
|
|
|
splitlw ba, rg, rgba
|
|
|
|
splitwb g, r, rg
|
|
|
|
splitwb a, b, ba
|
|
|
|
mergebw ar, a, r
|
|
|
|
mergebw gb, g, b
|
|
|
|
mergewl argb, ar, gb
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_NV12
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 d guint8
|
|
|
|
.source 2 y guint8
|
|
|
|
.source 2 uv guint8
|
|
|
|
.const 1 c255 255
|
|
|
|
.temp 4 ay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergebw ay, c255, y
|
|
|
|
x2 mergewl d, ay, uvuv
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_NV21
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 8 d guint8
|
|
|
|
.source 2 y guint8
|
|
|
|
.source 2 vu guint8
|
|
|
|
.const 1 c255 255
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 4 ay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
swapw uv, vu
|
|
|
|
mergewl uvuv, uv, uv
|
|
|
|
x2 mergebw ay, c255, y
|
|
|
|
x2 mergewl d, ay, uvuv
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_getline_A420
|
2010-10-31 22:07:43 +00:00
|
|
|
.dest 4 d guint8
|
|
|
|
.source 1 y guint8
|
|
|
|
.source 1 u guint8
|
|
|
|
.source 1 v guint8
|
|
|
|
.source 1 a guint8
|
|
|
|
.temp 2 uv
|
|
|
|
.temp 2 ay
|
|
|
|
.temp 1 tu
|
|
|
|
.temp 1 tv
|
|
|
|
|
|
|
|
loadupdb tu, u
|
|
|
|
loadupdb tv, v
|
|
|
|
mergebw uv, tu, tv
|
|
|
|
mergebw ay, a, y
|
|
|
|
mergewl d, ay, uv
|
2010-09-14 01:49:43 +00:00
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_I420
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 8 ayuv guint8
|
|
|
|
.temp 4 ay
|
|
|
|
.temp 4 uv
|
|
|
|
.temp 2 uu
|
|
|
|
.temp 2 vv
|
|
|
|
.temp 1 t1
|
|
|
|
.temp 1 t2
|
|
|
|
|
|
|
|
x2 splitlw uv, ay, ayuv
|
|
|
|
x2 select1wb y, ay
|
|
|
|
x2 splitwb vv, uu, uv
|
|
|
|
splitwb t1, t2, uu
|
|
|
|
avgub u, t1, t2
|
|
|
|
splitwb t1, t2, vv
|
|
|
|
avgub v, t1, t2
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_YUY2
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 yuy2 guint8
|
|
|
|
.source 8 ayuv guint8
|
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ayay, ayuv
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv1, uv1, uv2
|
|
|
|
x2 select1wb yy, ayay
|
|
|
|
x2 mergebw yuy2, yy, uv1
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_YVYU
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 yuy2 guint8
|
|
|
|
.source 8 ayuv guint8
|
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ayay, ayuv
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv1, uv1, uv2
|
|
|
|
x2 select1wb yy, ayay
|
|
|
|
swapw uv1, uv1
|
|
|
|
x2 mergebw yuy2, yy, uv1
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_UYVY
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 yuy2 guint8
|
|
|
|
.source 8 ayuv guint8
|
|
|
|
.temp 2 yy
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ayay, ayuv
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv1, uv1, uv2
|
|
|
|
x2 select1wb yy, ayay
|
|
|
|
x2 mergebw yuy2, uv1, yy
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_Y42B
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 8 ayuv guint8
|
|
|
|
.temp 4 ayay
|
|
|
|
.temp 4 uvuv
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ayay, ayuv
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv1, uv1, uv2
|
|
|
|
splitwb v, u, uv1
|
|
|
|
x2 select1wb y, ayay
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_Y444
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 1 y guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.source 4 ayuv guint8
|
|
|
|
.temp 2 ay
|
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
splitlw uv, ay, ayuv
|
|
|
|
splitwb v, u, uv
|
|
|
|
select1wb y, ay
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_Y800
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 1 y guint8
|
|
|
|
.source 4 ayuv guint8
|
|
|
|
.temp 2 ay
|
|
|
|
|
|
|
|
select0lw ay, ayuv
|
|
|
|
select1wb y, ay
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_Y16
|
2010-10-31 22:25:57 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.source 4 ayuv guint8
|
|
|
|
.temp 2 ay
|
|
|
|
.temp 1 yb
|
|
|
|
|
|
|
|
select0lw ay, ayuv
|
|
|
|
select1wb yb, ay
|
|
|
|
convubw ay, yb
|
|
|
|
shlw y, ay, 8
|
2010-09-14 01:49:43 +00:00
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_BGRA
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 bgra guint8
|
|
|
|
.source 4 argb guint8
|
|
|
|
|
|
|
|
swapl bgra, argb
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_ABGR
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 abgr guint8
|
|
|
|
.source 4 argb guint8
|
|
|
|
.temp 1 a
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.temp 2 gr
|
|
|
|
.temp 2 ab
|
|
|
|
.temp 2 ar
|
|
|
|
.temp 2 gb
|
|
|
|
|
|
|
|
splitlw gb, ar, argb
|
|
|
|
splitwb b, g, gb
|
|
|
|
splitwb r, a, ar
|
|
|
|
mergebw ab, a, b
|
|
|
|
mergebw gr, g, r
|
|
|
|
mergewl abgr, ab, gr
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_RGBA
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 4 rgba guint8
|
|
|
|
.source 4 argb guint8
|
|
|
|
.temp 1 a
|
|
|
|
.temp 1 r
|
|
|
|
.temp 1 g
|
|
|
|
.temp 1 b
|
|
|
|
.temp 2 rg
|
|
|
|
.temp 2 ba
|
|
|
|
.temp 2 ar
|
|
|
|
.temp 2 gb
|
|
|
|
|
|
|
|
splitlw gb, ar, argb
|
|
|
|
splitwb b, g, gb
|
|
|
|
splitwb r, a, ar
|
|
|
|
mergebw ba, b, a
|
|
|
|
mergebw rg, r, g
|
|
|
|
mergewl rgba, rg, ba
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_NV12
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 2 uv guint8
|
|
|
|
.source 8 ayuv guint8
|
|
|
|
.temp 4 ay
|
|
|
|
.temp 4 uvuv
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ay, ayuv
|
|
|
|
x2 select1wb y, ay
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv, uv1, uv2
|
|
|
|
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_NV21
|
2010-09-14 01:49:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 2 vu guint8
|
|
|
|
.source 8 ayuv guint8
|
|
|
|
.temp 4 ay
|
|
|
|
.temp 4 uvuv
|
|
|
|
.temp 2 uv1
|
|
|
|
.temp 2 uv2
|
|
|
|
.temp 2 uv
|
|
|
|
|
|
|
|
x2 splitlw uvuv, ay, ayuv
|
|
|
|
x2 select1wb y, ay
|
|
|
|
splitlw uv1, uv2, uvuv
|
|
|
|
x2 avgub uv, uv1, uv2
|
|
|
|
swapw vu, uv
|
|
|
|
|
2012-07-23 15:19:56 +00:00
|
|
|
.function video_convert_orc_putline_A420
|
2010-10-31 22:07:43 +00:00
|
|
|
.dest 2 y guint8
|
|
|
|
.dest 1 u guint8
|
|
|
|
.dest 1 v guint8
|
|
|
|
.dest 2 a guint8
|
|
|
|
.source 8 ayuv guint8
|
|
|
|
.temp 4 ay
|
|
|
|
.temp 4 uv
|
|
|
|
.temp 2 uu
|
|
|
|
.temp 2 vv
|
|
|
|
.temp 1 t1
|
|
|
|
.temp 1 t2
|
2010-09-14 01:49:43 +00:00
|
|
|
|
2010-10-31 22:07:43 +00:00
|
|
|
x2 splitlw uv, ay, ayuv
|
|
|
|
x2 select1wb y, ay
|
|
|
|
x2 select0wb a, ay
|
|
|
|
x2 splitwb vv, uu, uv
|
|
|
|
splitwb t1, t2, uu
|
|
|
|
avgub u, t1, t2
|
|
|
|
splitwb t1, t2, vv
|
|
|
|
avgub v, t1, t2
|