summaryrefslogtreecommitdiff
path: root/apps/codecs.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs.h')
-rw-r--r--apps/codecs.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index 29ed2d351b..ad6b831b61 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -80,12 +80,12 @@
80#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */ 80#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */
81 81
82/* increase this every time the api struct changes */ 82/* increase this every time the api struct changes */
83#define CODEC_API_VERSION 21 83#define CODEC_API_VERSION 22
84 84
85/* update this to latest version if a change to the api struct breaks 85/* update this to latest version if a change to the api struct breaks
86 backwards compatibility (and please take the opportunity to sort in any 86 backwards compatibility (and please take the opportunity to sort in any
87 new function which are "waiting" at the end of the function table) */ 87 new function which are "waiting" at the end of the function table) */
88#define CODEC_MIN_API_VERSION 18 88#define CODEC_MIN_API_VERSION 22
89 89
90/* codec return codes */ 90/* codec return codes */
91enum codec_status { 91enum codec_status {
@@ -200,7 +200,6 @@ struct codec_api {
200 void (*enc_set_parameters)(struct enc_parameters *params); 200 void (*enc_set_parameters)(struct enc_parameters *params);
201 struct enc_chunk_hdr * (*enc_get_chunk)(void); 201 struct enc_chunk_hdr * (*enc_get_chunk)(void);
202 void (*enc_finish_chunk)(void); 202 void (*enc_finish_chunk)(void);
203 int (*enc_pcm_buf_near_empty)(void);
204 unsigned char * (*enc_get_pcm_data)(size_t size); 203 unsigned char * (*enc_get_pcm_data)(size_t size);
205 size_t (*enc_unget_pcm_data)(size_t size); 204 size_t (*enc_unget_pcm_data)(size_t size);
206 205
@@ -210,21 +209,10 @@ struct codec_api {
210 ssize_t (*read)(int fd, void* buf, size_t count); 209 ssize_t (*read)(int fd, void* buf, size_t count);
211 off_t (*PREFIX(lseek))(int fd, off_t offset, int whence); 210 off_t (*PREFIX(lseek))(int fd, off_t offset, int whence);
212 ssize_t (*write)(int fd, const void* buf, size_t count); 211 ssize_t (*write)(int fd, const void* buf, size_t count);
213
214 /* Encoder codecs adjust CPU boost themselves */
215#ifdef HAVE_ADJUSTABLE_CPU_FREQ
216#ifdef CPU_BOOST_LOGGING
217 void (*cpu_boost_)(bool on_off,char*location,int line);
218#else
219 void (*cpu_boost)(bool on_off);
220#endif
221#endif
222
223 int (*round_value_to_list32)(unsigned long value, 212 int (*round_value_to_list32)(unsigned long value,
224 const unsigned long list[], 213 const unsigned long list[],
225 int count, 214 int count,
226 bool signd); 215 bool signd);
227
228#endif 216#endif
229 217
230 /* new stuff at the end, sort into place next time 218 /* new stuff at the end, sort into place next time