diff options
Diffstat (limited to 'apps/codecs/libm4a/m4a.h')
-rw-r--r-- | apps/codecs/libm4a/m4a.h | 16 |
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 | ||
60 | typedef struct | 60 | typedef struct |
61 | { | 61 | { |
62 | uint32_t sample; | ||
63 | uint32_t offset; | ||
64 | } sample_offset_t; | ||
65 | |||
66 | typedef 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); | |||
127 | int get_sample_info(demux_res_t *demux_res, uint32_t sample, | 132 | int 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); |
129 | unsigned int get_sample_offset(demux_res_t *demux_res, uint32_t sample); | 134 | unsigned int get_sample_offset(demux_res_t *demux_res, uint32_t sample); |
130 | unsigned int alac_seek (demux_res_t* demux_res, stream_t* stream, | 135 | unsigned 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); |
133 | unsigned int alac_seek_raw (demux_res_t* demux_res, stream_t* stream, | 138 | unsigned 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); |
140 | int m4a_check_sample_offset(demux_res_t *demux_res, uint32_t frame); | ||
135 | 141 | ||
136 | #endif /* STREAM_H */ | 142 | #endif /* STREAM_H */ |