]> git.sesse.net Git - ffmpeg/blobdiff - libswresample/swresample_internal.h
swr: fix #endif comment ref.
[ffmpeg] / libswresample / swresample_internal.h
index 3137be62da2f3c3322c7956abac1b808bd3e5f44..4764ddfd6f653c06185c178144e49dd9f782aa75 100644 (file)
@@ -44,7 +44,9 @@ typedef struct SwrContext {          //FIXME find unused fields
     int      in_sample_rate;
     int     out_sample_rate;
     int flags;
-    float slev, clev;
+    float slev, clev, rematrix_volume;
+    const int *channel_map;             ///< channel index (or -1 if muted channel) map
+    int used_ch_count;                  ///< number of used channels (mapped channel count if channel_map, otherwise in.ch_count)
 
     //below are private
     int int_bps;
@@ -62,7 +64,7 @@ typedef struct SwrContext {          //FIXME find unused fields
     struct AVResampleContext *resample;
 
     float matrix[SWR_CH_MAX][SWR_CH_MAX];
-    int16_t matrix16[SWR_CH_MAX][SWR_CH_MAX];
+    int32_t matrix32[SWR_CH_MAX][SWR_CH_MAX];
     uint8_t matrix_ch[SWR_CH_MAX][SWR_CH_MAX+1];
 
     //TODO callbacks for asm optims