[gegl/video-rejuvenation] gegl-audio: change size defines to support 6 channel 48000hz audio on 20fps



commit f1b4870859ab15ceb73c819d6bd221320ed5b7c2
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Nov 18 19:13:07 2015 +0100

    gegl-audio: change size defines to support 6 channel 48000hz audio on 20fps
    
    A GObject instance has a limited size, the actual data should move to internal
    and the public data pointers be pointers to the internals, this would make
    stereo and low channel count instances take up less memory as well.

 gegl/property-types/gegl-audio.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gegl/property-types/gegl-audio.h b/gegl/property-types/gegl-audio.h
index 41b3b58..b58a6f5 100644
--- a/gegl/property-types/gegl-audio.h
+++ b/gegl/property-types/gegl-audio.h
@@ -34,13 +34,14 @@ typedef struct _GeglAudioClass   GeglAudioClass;
 typedef struct _GeglAudioPrivate GeglAudioPrivate;
 
 #define GEGL_MAX_AUDIO_CHANNELS 6
-#define GEGL_MAX_AUDIO_SAMPLES  4800
+#define GEGL_MAX_AUDIO_SAMPLES  2400   // this limits us to 20fps and higher for regular sample rates
 
 struct _GeglAudio
 {
   GObject parent_instance;
   int   sample_rate;
   int   samples;
+  int   pos;
   int   channels;
   int   channel_layout;/* unused - assumed channels = 1 is mono 2 stereo */
   float data[GEGL_MAX_AUDIO_CHANNELS][GEGL_MAX_AUDIO_SAMPLES]; 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]