This patent claims the benefit of U.S. patent application Ser. No. 15/793,543, which was filed on Oct. 25, 2017; and U.S. patent application Ser. No. 15/899,220, which was filed on Feb. 19, 2018. U.S. patent application Ser. No. 15/793,543 and U.S. patent application Ser. No. 15/899,220 are hereby incorporated by reference in their entirety.
This disclosure relates generally to transforms, and, more particularly, to methods and apparatus to perform windowed sliding transforms.
The sliding discrete Fourier transform (DFT) is a method for efficiently computing the N-point DFT of a signal starting at sample m using the N-point DFT of the same signal starting at the previous sample m−1. The sliding DFT obviates the conventional need to compute a whole DFT for each starting sample.
In general, the same reference numbers will be used throughout the drawing(s) and accompanying written description to refer to the same or like parts. Connecting lines and/or connections shown in the various figures presented are intended to represent example functional relationships, physical couplings and/or logical couplings between the various elements.
Sliding transforms are useful in applications that require the computation of multiple DFTs for different portions, blocks, etc. of an input signal. For example, sliding transforms can be used to reduce the computations needed to compute transforms for different combinations of starting samples and window functions. For example, different combinations of starting samples and window functions can be used to identify the compression scheme applied to an audio signal as, for example, disclosed in U.S. patent application Ser. No. 15/793,543, filed on Oct. 25, 2017. The entirety of U.S. patent application Ser. No. 15/793,543 is incorporated herein by reference. Conventional solutions require that an entire DFT be computed after each portion of the input signal has had a window function applied. Such solutions are computationally inefficient and/or burdensome. In stark contrast, windowed sliding transformers are disclosed herein that can obtain the computational benefit of sliding transforms even when a window function is to be applied.
Reference will now be made in detail to non-limiting examples, some of which are illustrated in the accompanying drawings.
where the coefficients
are fixed values. An example operation of the example transformer 102 of
Conventionally, the DFT Z(i) of a portion of an input signal x after the portion has been windowed with a window function w is computed using the following mathematical expression:
Accordingly, an entire DFT must be computed for each portion of the input signal in known systems.
In some examples, the input signal 106 is held (e.g., buffered, queued, temporarily held, temporarily stored, etc.) for any period of time in an example buffer 110.
When EQN (2) is rewritten according to teachings of this disclosure using Parseval's theorem, as shown in the mathematical expression of EQN (3), the window function w is expressed as a kernel Kk,k′112, which can be applied to the transformed representation X(i) 108 of the portion 104.
In EQN (3), the transformed representation X(i) 108 of the portion 104 can be implemented using the example sliding DFT of EQN (1), as shown in EQN (4).
where the coefficients
and the kernel Kk,k′112 are fixed values. In stark contrast to conventional solutions, using EQN (4) obviates the requirement for a high-complexity transform to be computed for each portion of the input. In stark contrast, using EQN (4), a low-complexity sliding transform together with a low-complexity application of the kernel Kk,k′112 is provided.
To window the transformed representation 108, the example windowed sliding transformer 100 of
To window the transformed representation 108, the example windowed sliding transformer 100 of
where the coefficients
and Kk,k′ are fixed values.
To compute the kernel 112, the example windowed sliding transformer 100 includes an example kernel generator 122. The example kernel generator 122 of
where ( ) is a Fourier transform. The kernel Kk,k′112 is a frequency-domain representation of the window function w 120. The example windower 114 applies the frequency-domain representation Kk,k′112 to the frequency-domain representation X(i) 108. The kernel Kk,k′112 needs to be computed only once and, in some examples is sparse. Accordingly, not all of the computations of multiplying the transformed representation X(i) and the kernel Kk,k′112 in EQN (3) and EQN (4) need to be performed. In some examples, the sparseness of the kernel Kk,k′112 is increased by only keeping values that satisfy (e.g., are greater than) a threshold. Example windows 120 include, but are not limited to, the sine, slope and Kaiser-Bessel-derived (KBD) windows.
References have been made above to sliding windowed DFT transforms. Other forms of sliding windowed transforms can be implemented. For example, the sliding N-point MDCT Y(i) 108 of an input signal x 106 starting from sample i from the N-point DFT X(i−1) of the input signal x 106 starting from sample i−1 can be expressed mathematically as:
where the kernel Kk,k′112 is computed using the following mathematical expression:
In another example, the sliding N-point complex MDCT Z(i) 108 of an input signal x 106 starting from sample i from the N-point DFT X(i−1) of the input signal x 106 starting from sample i−1 can be expressed mathematically as:
where the kernel Kk,k′112 is computed using the following mathematical expression:
While an example manner of implementing the example windowed sliding transformer 100 is illustrated in
A flowchart representative of example hardware logic or machine-readable instructions for implementing the windowed sliding transformer 100 is shown in
As mentioned above, the example processes of
“Including” and “comprising” (and all forms and tenses thereof) are used herein to be open ended terms. Thus, whenever a claim employs any form of “include” or “comprise” (e.g., comprises, includes, comprising, including, having, etc.) as a preamble or within a claim recitation of any kind, it is to be understood that additional elements, terms, etc. may be present without falling outside the scope of the corresponding claim or recitation. As used herein, when the phrase “at least” is used as the transition term in, for example, a preamble of a claim, it is open-ended in the same manner as the term “comprising” and “including” are open ended. The term “and/or” when used, for example, in a form such as A, B, and/or C refers to any combination or subset of A, B, C such as (1) A alone, (2) B alone, (3) C alone, (4) A with B, (5) A with C, and (6) B with C.
The program of
The transformer 102 computes a DFT 108 of a first block 104 of samples of an input signal 106 (block 404). In some examples, the DFT 108 of the first block 104 is a conventional DFT. For all blocks 104 of the input signal 106 (block 406), the transformer 102 computes a DFT 108 of each block 104 based on the DFT 108 of a previous block 106 (block 408) by implementing, for example, the example mathematical expression of EQN (4).
For all kernels Kk,k′112 computed at block 402 (block 410), the example windower 114 applies the kernel Kk,k′112 to the current DFT 108 (block 412). For example, the example multiplier 116 implements the multiplication of the kernel Kk,k′112 and the DFT 108 shown in the example mathematical expression of EQN (3).
When all kernels Kk,k′112 and blocks 104 have been processed (blocks 414 and 416), control exits from the example program of
In U.S. patent application Ser. No. 15/793,543 it was disclosed that it was advantageously discovered that, in some instances, different sources of streaming media (e.g., NETFLIX®, HULU®, YOUTUBE®, AMAZON PRIME®, APPLE TV®, etc.) use different audio compression configurations to store and stream the media they host. In some examples, an audio compression configuration is a set of one or more parameters that define, among possibly other things, an audio coding format (e.g., MP1, MP2, MP3, AAC, AC-3, Vorbis, WMA, DTS, etc.), compression parameters, framing parameters, etc. Because different sources use different audio compression, the sources can be distinguished (e.g., identified, detected, determined, etc.) based on the audio compression applied to the media. The media is de-compressed during playback. In some examples, the de-compressed audio signal is compressed using different trial audio compression configurations for compression artifacts. Because compression artifacts become detectable (e.g., perceptible, identifiable, distinct, etc.) when a particular audio compression configuration matches the compression used during the original encoding, the presence of compression artifacts can be used to identify one of the trial audio compression configurations as the audio compression configuration used originally. After the compression configuration is identified, the AME can infer the original source of the audio. Example compression artifacts are discontinuities between points in a spectrogram, a plurality of points in a spectrogram that are small (e.g., below a threshold, relative to other points in the spectrogram), one or more values in a spectrogram having probabilities of occurrence that are disproportionate compared to other values (e.g., a large number of small values), etc. In instances where two or more sources use the same audio compression configuration and are associated with compression artifacts, the audio compression configuration may be used to reduce the number of sources to consider. Other methods may then be used to distinguish between the sources. However, for simplicity of explanation the examples disclosed herein assume that sources are associated with different audio compression configurations.
In U.S. patent application Ser. No. 15/793,543, for each starting location, a time-frequency analyzer applies a time-domain window function, and then computes a full time-to-frequency transform. Such solutions may be computationally infeasible, complex, costly, etc. In stark contrast, applying teachings of this disclosure to implement the example time-frequency analyzer U.S. patent application Ser. No. 15/793,543 with the windowed sliding transform 100, as shown in
For example, computation of the sliding DFT of EQN (1) requires 2N additions and N multiplications (where N is the number of samples being processed). Therefore, the sliding DFT has a linear complexity of the order of N. By applying a time-domain window as the kernel Kk,k′112 after a sliding DFT as shown in EQN (4), the computational efficiency of the windowed sliding DFT is maintained. The complexity of the kernel Kk,k′112 is KN additions and SN multiplications, where S is the number of non-zero values in the kernel Kk,k′112. When S<<N (e.g., 3 or 5), the windowed sliding DFT remains of linear complexity of the order of N. In stark contrast, the conventional methods of computing a DFT and an FFT are of the order of N2 and Nlog(N), respectively. Applying a conventional time-domain window function (i.e., applying the window on the signal before computing a DFT) will be at best of the order of Nlog(N) (plus some extra additions and multiplications) as the DFT needs to be computed for each sample. By way of comparison, complexity of the order of N is considered to be low complexity, complexity of the order of Nlog(N) is considered to be moderate complexity, and complexity of the order of N2 is considered to be high complexity.
A flowchart representative of example hardware logic or machine-readable instructions for computing a plurality of compression artifacts for combinations of parameters using the windowed sliding transformer 100 is shown in
In comparison to
The processor platform 700 of the illustrated example includes a processor 710. The processor 710 of the illustrated example is hardware. For example, the processor 710 can be implemented by one or more integrated circuits, logic circuits, microprocessors, GPUs, DSPs, or controllers from any desired family or manufacturer. The hardware processor may be a semiconductor based (e.g., silicon based) device. In this example, the processor implements the example transformer 102, the example windower 114, the example multiplier 116, the example kernel generator 122, and the example artifact computer 504.
The processor 710 of the illustrated example includes a local memory 712 (e.g., a cache). The processor 710 of the illustrated example is in communication with a main memory including a volatile memory 714 and a non-volatile memory 716 via a bus 718. The volatile memory 714 may be implemented by Synchronous Dynamic Random-Access Memory (SDRAM), Dynamic Random-Access Memory (DRAM), RAMBUS® Dynamic Random-Access Memory (RDRAM®) and/or any other type of random access memory device. The non-volatile memory 716 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 714, 716 is controlled by a memory controller. In the illustrated example, the volatile memory 714 implements the buffer 110.
The processor platform 700 of the illustrated example also includes an interface circuit 720. The interface circuit 720 may be implemented by any type of interface standard, such as an Ethernet interface, a universal serial bus (USB), a Bluetooth® interface, a near field communication (NFC) interface, and/or a peripheral component interconnect (PCI) express interface.
In the illustrated example, one or more input devices 722 are connected to the interface circuit 720. The input device(s) 722 permit(s) a user to enter data and/or commands into the processor 710. The input device(s) can be implemented by, for example, an audio sensor, a microphone, a camera (still or video), a keyboard, a button, a mouse, a touchscreen, a track-pad, a trackball, isopoint and/or a voice recognition system. In some examples, an input device 722 is used to receive the input signal 106.
One or more output devices 724 are also connected to the interface circuit 720 of the illustrated example. The output devices 724 can be implemented, for example, by display devices (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display (LCD), a cathode ray tube display (CRT), an in-place switching (IPS) display, a touchscreen, etc.), a tactile output device, a printer and/or speaker. The interface circuit 720 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip and/or a graphics driver processor.
The interface circuit 720 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem, a residential gateway, a wireless access point, and/or a network interface to facilitate exchange of data with external machines (e.g., computing devices of any kind) via a network 726. The communication can be via, for example, an Ethernet connection, a digital subscriber line (DSL) connection, a telephone line connection, a coaxial cable system, a satellite system, a line-of-site wireless system, a cellular telephone system, etc. In some examples, input signals are received via a communication device and the network 726.
The processor platform 700 of the illustrated example also includes one or more mass storage devices 728 for storing software and/or data. Examples of such mass storage devices 728 include floppy disk drives, hard drive disks, CD drives, Blu-ray disk drives, redundant array of independent disks (RAID) systems, and DVD drives.
Coded instructions 732 including the coded instructions of
From the foregoing, it will be appreciated that example methods, apparatus and articles of manufacture have been disclosed that lower the complexity and increase the efficiency of sliding windowed transforms. Using teachings of this disclosure, sliding windowed transforms can be computed using the computational benefits of sliding transforms even when a window function is to be implemented. From the foregoing, it will be appreciated that methods, apparatus and articles of manufacture have been disclosed which enhance the operations of a computer by improving the possibility to perform sliding transforms that include the application of window functions. In some examples, computer operations can be made more efficient based on the above equations and techniques for performing sliding windowed transforms. That is, through the use of these processes, computers can operate more efficiently by relatively quickly performing sliding windowed transforms. Furthermore, example methods, apparatus, and/or articles of manufacture disclosed herein identify and overcome inability in the prior art to perform sliding windowed transforms.
Example methods, apparatus, and articles of manufacture to sliding windowed transforms are disclosed herein. Further examples and combinations thereof include at least the following.
Example 1 is an apparatus, comprising a transformer to transform a first block of time-domain samples of an input signal into a first frequency-domain representation based on a second frequency-domain representation of a second block of time-domain samples of the input signal, and a windower to apply a third frequency-domain representation of a time-domain window function to the first frequency-domain representation.
Example 2 is the apparatus of example 1, wherein the windower includes a multiplier to multiply a vector including the first frequency-domain representation and a matrix including the third frequency-domain representation.
Example 3 is the apparatus of example 2, further including a kernel generator to compute the matrix by computing a transform of the time-domain window function.
Example 4 is the apparatus of example 3, wherein the kernel generator is to set a value of a cell of the matrix to zero based on a comparison of the value and a threshold.
Example 5 is the apparatus of any of examples 1 to 4, wherein the transformer computes the first frequency-domain representation based on the second frequency-domain representation using a sliding transform.
Example 6 is the apparatus of any of examples 1 to 5, further including a kernel generator to compute the third frequency-domain representation using a discrete Fourier transform, wherein the transformer computes the first frequency-domain representation based on the second frequency-domain representation using a sliding discrete Fourier transform, and wherein the windower includes a multiplier to multiply a vector including the first frequency-domain representation and a matrix including the third frequency-domain representation.
Example 7 is the apparatus of example 6, wherein the multiplication of the vector and the matrix by the multiplier implements an equivalent of a multiplication of the time-domain window function and the first block of time-domain samples.
Example 8 is the apparatus of any of examples 1 to 7, wherein the time-domain window function includes at least one of a sine window function, a slope window function, or a Kaiser-Bessel-derived window function.
Example 9 a method, comprising transforming a first block of time-domain samples of an input signal into a first frequency-domain representation based on a second frequency-domain representation of a second block of time-domain samples of the input signal, and applying a third frequency-domain representation of a time-domain window function to the first frequency-domain representation.
Example 10 is the method of example 9, wherein the applying the third frequency-domain representation of a time-domain window function to the first frequency-domain representation includes multiplying a vector including the first frequency-domain representation and a matrix including the third frequency-domain representation.
Example 11 is the method of example 10, further including transforming the time-domain window function to the third frequency-domain representation.
Example 12 is the method of example 11, further including setting a value of a cell of the matrix to zero based on a comparison of the value and a threshold.
Example 13 is the method of any of examples 9 to 12, wherein transforming the first block of time-domain into the first frequency-domain representation includes computing a sliding discrete Fourier transform.
Example 14 is the method of any of examples 9 to 13, wherein the time-domain window function includes at least one of a sine window function, a slope window function, or a Kaiser-Bessel-derived window function.
Example 15 is a non-transitory computer-readable storage medium comprising instructions that, when executed, cause a machine to transform a first block of time-domain samples of an input signal into a first frequency-domain representation based on a second frequency-domain representation of a second block of time-domain samples of the input signal, and apply a third frequency-domain representation of a time-domain window function to the first frequency-domain representation.
Example 16 is the non-transitory computer-readable storage medium of example 15, wherein the instructions, when executed, cause the machine to apply the third frequency-domain representation of the time-domain window function to the first frequency-domain representation by multiplying a vector including the first frequency-domain representation and a matrix including the third frequency-domain representation.
Example 17 is the non-transitory computer-readable storage medium of example 16, wherein the instructions, when executed, cause the machine to transform the time-domain window function to the third frequency-domain representation.
Example 18 is the non-transitory computer-readable storage medium of example 17, wherein the instructions, when executed, cause the machine to set a value of a cell of the matrix to zero based on a comparison of the value and a threshold.
Example 19 is the non-transitory computer-readable storage medium of any of examples 15 to 18, wherein the instructions, when executed, cause the machine to transform the first block of time-domain into the first frequency-domain representation by computing a sliding discrete Fourier transform.
Example 20 is the non-transitory computer-readable storage medium of any of examples 15 to 19, wherein the time-domain window function includes at least one of a sine window function, a slope window function, or a Kaiser-Bessel-derived window function.
Although certain example methods, apparatus and articles of manufacture have been disclosed herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all methods, apparatus and articles of manufacture fairly falling within the scope of the claims of this patent.
Number | Date | Country | |
---|---|---|---|
Parent | 15899220 | Feb 2018 | US |
Child | 15942369 | US | |
Parent | 15793543 | Oct 2017 | US |
Child | 15899220 | US |