Table of Contents

Method YGroup3ToGroup4

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YGroup3ToGroup4<T>(Vector<T>, Vector<T>, Vector<T>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
public static (Vector<T> Result0, Vector<T> Result1, Vector<T> Result2, Vector<T> Result3) YGroup3ToGroup4<T>(Vector<T> data0, Vector<T> data1, Vector<T> data2) where T : struct

Parameters

data0 Vector<T>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<T>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<T>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<T> Result0, Vector<T> Result1, Vector<T> Result2, Vector<T> Result3)

Returns the converted data. (返回转换后数据).

Type Parameters

T

The element type of the input parameter (输入参数的元素类型).

See Also

YGroup3ToGroup4(Vector<float>, Vector<float>, Vector<float>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector<float> Result0, Vector<float> Result1, Vector<float> Result2, Vector<float> Result3) YGroup3ToGroup4(Vector<float> data0, Vector<float> data1, Vector<float> data2)

Parameters

data0 Vector<float>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<float>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<float>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<float> Result0, Vector<float> Result1, Vector<float> Result2, Vector<float> Result3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<double>, Vector<double>, Vector<double>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector<double> Result0, Vector<double> Result1, Vector<double> Result2, Vector<double> Result3) YGroup3ToGroup4(Vector<double> data0, Vector<double> data1, Vector<double> data2)

Parameters

data0 Vector<double>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<double>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<double>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<double> Result0, Vector<double> Result1, Vector<double> Result2, Vector<double> Result3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<sbyte>, Vector<sbyte>, Vector<sbyte>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static (Vector<sbyte> Result0, Vector<sbyte> Result1, Vector<sbyte> Result2, Vector<sbyte> Result3) YGroup3ToGroup4(Vector<sbyte> data0, Vector<sbyte> data1, Vector<sbyte> data2)

Parameters

data0 Vector<sbyte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<sbyte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<sbyte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2, Vector<sbyte> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<byte>, Vector<byte>, Vector<byte>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector<byte> Result0, Vector<byte> Result1, Vector<byte> Result2, Vector<byte> Result3) YGroup3ToGroup4(Vector<byte> data0, Vector<byte> data1, Vector<byte> data2)

Parameters

data0 Vector<byte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<byte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<byte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<byte> args0, Vector<byte> args1, Vector<byte> args2, Vector<byte> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<short>, Vector<short>, Vector<short>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector<short> Result0, Vector<short> Result1, Vector<short> Result2, Vector<short> Result3) YGroup3ToGroup4(Vector<short> data0, Vector<short> data1, Vector<short> data2)

Parameters

data0 Vector<short>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<short>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<short>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<short> args0, Vector<short> args1, Vector<short> args2, Vector<short> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<ushort>, Vector<ushort>, Vector<ushort>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static (Vector<ushort> Result0, Vector<ushort> Result1, Vector<ushort> Result2, Vector<ushort> Result3) YGroup3ToGroup4(Vector<ushort> data0, Vector<ushort> data1, Vector<ushort> data2)

Parameters

data0 Vector<ushort>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<ushort>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<ushort>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2, Vector<ushort> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<int>, Vector<int>, Vector<int>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector<int> Result0, Vector<int> Result1, Vector<int> Result2, Vector<int> Result3) YGroup3ToGroup4(Vector<int> data0, Vector<int> data1, Vector<int> data2)

Parameters

data0 Vector<int>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<int>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<int>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<int> args0, Vector<int> args1, Vector<int> args2, Vector<int> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<uint>, Vector<uint>, Vector<uint>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static (Vector<uint> Result0, Vector<uint> Result1, Vector<uint> Result2, Vector<uint> Result3) YGroup3ToGroup4(Vector<uint> data0, Vector<uint> data1, Vector<uint> data2)

Parameters

data0 Vector<uint>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<uint>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<uint>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<uint> args0, Vector<uint> args1, Vector<uint> args2, Vector<uint> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<long>, Vector<long>, Vector<long>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static (Vector<long> Result0, Vector<long> Result1, Vector<long> Result2, Vector<long> Result3) YGroup3ToGroup4(Vector<long> data0, Vector<long> data1, Vector<long> data2)

Parameters

data0 Vector<long>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<long>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<long>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<long> args0, Vector<long> args1, Vector<long> args2, Vector<long> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<ulong>, Vector<ulong>, Vector<ulong>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static (Vector<ulong> Result0, Vector<ulong> Result1, Vector<ulong> Result2, Vector<ulong> Result3) YGroup3ToGroup4(Vector<ulong> data0, Vector<ulong> data1, Vector<ulong> data2)

Parameters

data0 Vector<ulong>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<ulong>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<ulong>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

Returns

(Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2, Vector<ulong> args3)

Returns the converted data. (返回转换后数据).

See Also

YGroup3ToGroup4(Vector<float>, Vector<float>, Vector<float>, out Vector<float>, out Vector<float>, out Vector<float>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector<float> YGroup3ToGroup4(Vector<float> data0, Vector<float> data1, Vector<float> data2, out Vector<float> result1, out Vector<float> result2, out Vector<float> result3)

Parameters

data0 Vector<float>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<float>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<float>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<float>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<float>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<float>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<float>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<double>, Vector<double>, Vector<double>, out Vector<double>, out Vector<double>, out Vector<double>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector<double> YGroup3ToGroup4(Vector<double> data0, Vector<double> data1, Vector<double> data2, out Vector<double> result1, out Vector<double> result2, out Vector<double> result3)

Parameters

data0 Vector<double>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<double>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<double>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<double>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<double>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<double>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<double>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<sbyte>, Vector<sbyte>, Vector<sbyte>, out Vector<sbyte>, out Vector<sbyte>, out Vector<sbyte>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static Vector<sbyte> YGroup3ToGroup4(Vector<sbyte> data0, Vector<sbyte> data1, Vector<sbyte> data2, out Vector<sbyte> result1, out Vector<sbyte> result2, out Vector<sbyte> result3)

Parameters

data0 Vector<sbyte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<sbyte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<sbyte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<sbyte>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<sbyte>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<sbyte>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<sbyte>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<byte>, Vector<byte>, Vector<byte>, out Vector<byte>, out Vector<byte>, out Vector<byte>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector<byte> YGroup3ToGroup4(Vector<byte> data0, Vector<byte> data1, Vector<byte> data2, out Vector<byte> result1, out Vector<byte> result2, out Vector<byte> result3)

Parameters

data0 Vector<byte>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<byte>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<byte>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<byte>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<byte>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<byte>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<byte>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<short>, Vector<short>, Vector<short>, out Vector<short>, out Vector<short>, out Vector<short>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector<short> YGroup3ToGroup4(Vector<short> data0, Vector<short> data1, Vector<short> data2, out Vector<short> result1, out Vector<short> result2, out Vector<short> result3)

Parameters

data0 Vector<short>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<short>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<short>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<short>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<short>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<short>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<short>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<ushort>, Vector<ushort>, Vector<ushort>, out Vector<ushort>, out Vector<ushort>, out Vector<ushort>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static Vector<ushort> YGroup3ToGroup4(Vector<ushort> data0, Vector<ushort> data1, Vector<ushort> data2, out Vector<ushort> result1, out Vector<ushort> result2, out Vector<ushort> result3)

Parameters

data0 Vector<ushort>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<ushort>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<ushort>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<ushort>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<ushort>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<ushort>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<ushort>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<int>, Vector<int>, Vector<int>, out Vector<int>, out Vector<int>, out Vector<int>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector<int> YGroup3ToGroup4(Vector<int> data0, Vector<int> data1, Vector<int> data2, out Vector<int> result1, out Vector<int> result2, out Vector<int> result3)

Parameters

data0 Vector<int>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<int>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<int>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<int>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<int>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<int>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<int>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<uint>, Vector<uint>, Vector<uint>, out Vector<uint>, out Vector<uint>, out Vector<uint>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static Vector<uint> YGroup3ToGroup4(Vector<uint> data0, Vector<uint> data1, Vector<uint> data2, out Vector<uint> result1, out Vector<uint> result2, out Vector<uint> result3)

Parameters

data0 Vector<uint>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<uint>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<uint>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<uint>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<uint>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<uint>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<uint>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<long>, Vector<long>, Vector<long>, out Vector<long>, out Vector<long>, out Vector<long>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

public static Vector<long> YGroup3ToGroup4(Vector<long> data0, Vector<long> data1, Vector<long> data2, out Vector<long> result1, out Vector<long> result2, out Vector<long> result3)

Parameters

data0 Vector<long>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<long>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<long>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<long>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<long>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<long>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<long>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also

YGroup3ToGroup4(Vector<ulong>, Vector<ulong>, Vector<ulong>, out Vector<ulong>, out Vector<ulong>, out Vector<ulong>)

Convert a 3-element group, to a 4-element group. It also converts packed RGB pixel data to packed RGBA pixel data (将3-元素组, 转为4-元素组. 它还能将 已打包的RGB像素数据, 转换为 已打包的RGBA像素数据). Mnemonic: View for group: (result0, result1, result2, result3) = YGroup4Zip(YGroup3Unzip(data0, data1, data2), Vector.Zero)). View for element: element_ref(i, result0, result1, result2, result3) := (3!=(i%4))?element_ref((i/4)*3+(i%4), data0, data1, data2):0.

[CLSCompliant(false)]
public static Vector<ulong> YGroup3ToGroup4(Vector<ulong> data0, Vector<ulong> data1, Vector<ulong> data2, out Vector<ulong> result1, out Vector<ulong> result2, out Vector<ulong> result3)

Parameters

data0 Vector<ulong>

A vector made of 4-element groups - Part 0 (由4元素组所组成的向量 - 第0部分).

data1 Vector<ulong>

A vector made of 4-element groups - Part 1 (由4元素组所组成的向量 - 第1部分).

data2 Vector<ulong>

A vector made of 4-element groups - Part 2 (由4元素组所组成的向量 - 第2部分).

result1 Vector<ulong>

Returns part 1 of the converted data (返回转换后数据的第1部分).

result2 Vector<ulong>

Returns part 2 of the converted data (返回转换后数据的第2部分).

result3 Vector<ulong>

Returns part 3 of the converted data (返回转换后数据的第3部分).

Returns

Vector<ulong>

Returns part 0 of the converted data (返回转换后数据的第0部分).

See Also