A 2-dimensional Discrete Cosine Transform function that receives
and returns 1-dimensional packed data.
The function will be provided the pre-hash data as a 1D-packed vector,
which should be interpreted as a 2D matrix with a given rowstride:
Pre-hash data:
[ 1.0 2.0 3.0 ]
[ 4.0 5.0 6.0 ]
[ 7.0 8.0 9.0 ]
Packed: [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0] (rowstride 3)
The function should then return a new 1D vector of the DCT values packed in the same manner.
Function pointers implement Copy
but not Clone
, so this simply returns a copy of self
.
Performs copy-assignment from source
. Read more
Naive equality comparison just looking at the numerical values of the function pointers.
This method tests for !=
.
Formats the value using the given formatter. Read more
Adds the contained function pointer as usize
.
Feeds a slice of this type into the given [Hasher
]. Read more