File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,22 @@ class CommonHelix {
167167 }
168168 }
169169
170+ // / Provides the maximum frame size - this is allocated on the heap and you can reduce the heap size my minimizing this value
171+ virtual size_t maxFrameSize () = 0;
172+
173+ // / Define your optimized maximum frame size
174+ void setMaxFrameSize (size_t len){
175+ max_frame_size = len;
176+ }
177+
178+ // / Provides the maximum pwm buffer size - this is allocated on the heap and you can reduce the heap size my minimizing this value
179+ virtual size_t maxPWMSize () = 0 ;
180+
181+ // / Define your optimized maximum pwm buffer size
182+ void setMaxPWMSize (size_t len) {
183+ max_pwm_size = len;
184+ }
185+
170186 protected:
171187 bool active = false ;
172188 uint32_t buffer_size = 0 ; // actually filled sized
@@ -185,21 +201,6 @@ class CommonHelix {
185201
186202 virtual void allocateDecoder () = 0;
187203
188- // / Provides the maximum frame size - this is allocated on the heap and you can reduce the heap size my minimizing this value
189- virtual size_t maxFrameSize () = 0;
190-
191- // / Define your optimized maximum frame size
192- void setMaxFrameSize (size_t len){
193- max_frame_size = len;
194- }
195-
196- // / Provides the maximum pwm buffer size - this is allocated on the heap and you can reduce the heap size my minimizing this value
197- virtual size_t maxPWMSize () = 0 ;
198-
199- // / Define your optimized maximum pwm buffer size
200- void setMaxPWMSize (size_t len) {
201- max_pwm_size = len;
202- }
203204
204205 // / Finds the synchronization word in the frame buffer (starting from the indicated offset)
205206 virtual int findSynchWord (int offset=0 ) = 0;
You can’t perform that action at this time.
0 commit comments