Lines Matching refs:mapper
3 // mapper-single.c - a muxer/demuxer for single containers.
9 #include "mapper.h"
63 static int single_pre_process(struct mapper_context *mapper,
67 struct single_state *state = mapper->private_data;
70 if (cntrs->bytes_per_sample != mapper->bytes_per_sample ||
71 cntrs->samples_per_frame != mapper->samples_per_frame)
75 if (mapper->type == MAPPER_TYPE_DEMUXER) {
76 if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED ||
77 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED)
79 else if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED ||
80 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED)
85 if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED ||
86 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED)
88 else if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED ||
89 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED)
97 bytes_per_buffer = mapper->bytes_per_sample *
98 mapper->samples_per_frame *
99 mapper->frames_per_buffer;
109 static int single_muxer_process_frames(struct mapper_context *mapper,
115 struct single_state *state = mapper->private_data;
134 mapper->bytes_per_sample,
135 mapper->samples_per_frame);
140 static int single_demuxer_process_frames(struct mapper_context *mapper,
146 struct single_state *state = mapper->private_data;
156 mapper->bytes_per_sample,
157 mapper->samples_per_frame);
164 static void single_post_process(struct mapper_context *mapper)
166 struct single_state *state = mapper->private_data;