summaryrefslogtreecommitdiff
path: root/apps/codecs/libm4a/m4a.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libm4a/m4a.h')
-rw-r--r--apps/codecs/libm4a/m4a.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/apps/codecs/libm4a/m4a.h b/apps/codecs/libm4a/m4a.h
index 2b361e8784..e49d14b832 100644
--- a/apps/codecs/libm4a/m4a.h
+++ b/apps/codecs/libm4a/m4a.h
@@ -59,6 +59,12 @@ typedef struct
59 59
60typedef struct 60typedef struct
61{ 61{
62 uint32_t sample;
63 uint32_t offset;
64} sample_offset_t;
65
66typedef struct
67{
62 uint16_t num_channels; 68 uint16_t num_channels;
63 uint16_t sound_sample_size; 69 uint16_t sound_sample_size;
64 uint32_t sound_sample_rate; 70 uint32_t sound_sample_rate;
@@ -68,13 +74,12 @@ typedef struct
68 sample_to_chunk_t *sample_to_chunk; 74 sample_to_chunk_t *sample_to_chunk;
69 uint32_t num_sample_to_chunks; 75 uint32_t num_sample_to_chunks;
70 76
71 uint32_t *chunk_offset; 77 sample_offset_t *lookup_table;
72 uint32_t num_chunk_offsets; 78 uint32_t num_lookup_table;
73 79
74 time_to_sample_t *time_to_sample; 80 time_to_sample_t *time_to_sample;
75 uint32_t num_time_to_samples; 81 uint32_t num_time_to_samples;
76 82
77 uint16_t *sample_byte_size;
78 uint32_t num_sample_byte_sizes; 83 uint32_t num_sample_byte_sizes;
79 84
80 uint32_t codecdata_len; 85 uint32_t codecdata_len;
@@ -127,10 +132,11 @@ void stream_create(stream_t *stream,struct codec_api* ci);
127int get_sample_info(demux_res_t *demux_res, uint32_t sample, 132int get_sample_info(demux_res_t *demux_res, uint32_t sample,
128 uint32_t *sample_duration, uint32_t *sample_byte_size); 133 uint32_t *sample_duration, uint32_t *sample_byte_size);
129unsigned int get_sample_offset(demux_res_t *demux_res, uint32_t sample); 134unsigned int get_sample_offset(demux_res_t *demux_res, uint32_t sample);
130unsigned int alac_seek (demux_res_t* demux_res, stream_t* stream, 135unsigned int m4a_seek (demux_res_t* demux_res, stream_t* stream,
131 uint32_t sound_sample_loc, uint32_t* sound_samples_done, 136 uint32_t sound_sample_loc, uint32_t* sound_samples_done,
132 int* current_sample); 137 int* current_sample);
133unsigned int alac_seek_raw (demux_res_t* demux_res, stream_t* stream, 138unsigned int m4a_seek_raw (demux_res_t* demux_res, stream_t* stream,
134 uint32_t file_loc, uint32_t* sound_samples_done, int* current_sample); 139 uint32_t file_loc, uint32_t* sound_samples_done, int* current_sample);
140int m4a_check_sample_offset(demux_res_t *demux_res, uint32_t frame);
135 141
136#endif /* STREAM_H */ 142#endif /* STREAM_H */