Lines Matching refs:mapper
3 // mapper-multiple.c - a muxer/demuxer for multiple containers.
9 #include "mapper.h"
74 static int multiple_pre_process(struct mapper_context *mapper,
78 struct multiple_state *state = mapper->private_data;
86 if (mapper->bytes_per_sample != cntr->bytes_per_sample)
92 if (mapper->type == MAPPER_TYPE_DEMUXER) {
93 if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED ||
94 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED)
96 else if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED ||
97 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED)
102 if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED ||
103 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED)
105 else if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED ||
106 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED)
115 if (mapper->type == MAPPER_TYPE_DEMUXER) {
134 bytes_per_buffer = mapper->bytes_per_sample *
136 mapper->frames_per_buffer;
170 static int multiple_muxer_process_frames(struct mapper_context *mapper,
176 struct multiple_state *state = mapper->private_data;
195 mapper->bytes_per_sample, cntrs,
202 static int multiple_demuxer_process_frames(struct mapper_context *mapper,
208 struct multiple_state *state = mapper->private_data;
219 mapper->bytes_per_sample, cntrs,
226 static void multiple_post_process(struct mapper_context *mapper)
228 struct multiple_state *state = mapper->private_data;