Browse Source

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.
tags/n4.4
Lynne 4 years ago
parent
commit
10341743d2
No known key found for this signature in database GPG Key ID: A2FEA5F03F034464
2 changed files with 2 additions and 3 deletions
  1. +2
    -2
      libavutil/tx.h
  2. +0
    -1
      libavutil/tx_template.c

+ 2
- 2
libavutil/tx.h View File

@@ -103,8 +103,8 @@ typedef void (*av_tx_fn)(AVTXContext *s, void *out, void *in, ptrdiff_t stride);
*/
enum AVTXFlags {
/**
* Performs an in-place transformation on the input. The output parameter
* to av_tn_fn() will be ignored. May be unsupported or slower for some
* Performs an in-place transformation on the input. The output argument
* of av_tn_fn() MUST match the input. May be unsupported or slower for some
* transform types.
*/
AV_TX_INPLACE = 1ULL << 0,


+ 0
- 1
libavutil/tx_template.c View File

@@ -397,7 +397,6 @@ static void monolithic_fft(AVTXContext *s, void *_out, void *_in,
FFTComplex tmp;
int src, dst, *inplace_idx = s->inplace_idx;

out = in;
src = *inplace_idx++;

do {


Loading…
Cancel
Save