mirror of https://git.ffmpeg.org/ffmpeg.git
lavu/tx: require output argument to match input for inplace transforms
This simplifies some assembly code by a lot, by either saving a branch or saving an entire duplicated function.
This commit is contained in:
parent
e937457b7b
commit
10341743d2
|
@ -103,8 +103,8 @@ typedef void (*av_tx_fn)(AVTXContext *s, void *out, void *in, ptrdiff_t stride);
|
||||||
*/
|
*/
|
||||||
enum AVTXFlags {
|
enum AVTXFlags {
|
||||||
/**
|
/**
|
||||||
* Performs an in-place transformation on the input. The output parameter
|
* Performs an in-place transformation on the input. The output argument
|
||||||
* to av_tn_fn() will be ignored. May be unsupported or slower for some
|
* of av_tn_fn() MUST match the input. May be unsupported or slower for some
|
||||||
* transform types.
|
* transform types.
|
||||||
*/
|
*/
|
||||||
AV_TX_INPLACE = 1ULL << 0,
|
AV_TX_INPLACE = 1ULL << 0,
|
||||||
|
|
|
@ -397,7 +397,6 @@ static void monolithic_fft(AVTXContext *s, void *_out, void *_in,
|
||||||
FFTComplex tmp;
|
FFTComplex tmp;
|
||||||
int src, dst, *inplace_idx = s->inplace_idx;
|
int src, dst, *inplace_idx = s->inplace_idx;
|
||||||
|
|
||||||
out = in;
|
|
||||||
src = *inplace_idx++;
|
src = *inplace_idx++;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in New Issue