← Back to C-Kernel-Engine Docs Doxygen Source Documentation
 
Loading...
Searching...
No Matches
ckernel_audio_reflect_pad.h
Go to the documentation of this file.
1#ifndef CKERNEL_AUDIO_REFLECT_PAD_H
2#define CKERNEL_AUDIO_REFLECT_PAD_H
3
4#include <stddef.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
17
18/* Reflect-pad the left edge of each channel-major FP32 row without repeating
19 * the edge sample. For one pad element, [a,b,c] becomes [b,a,b,c].
20 * Valid output frames must equal input_frames + left_padding. Physical row
21 * strides and buffer capacities are independent of those valid extents.
22 * Output is unchanged for every rejected call; padding remains untouched.
23 */
25 const float *input, size_t input_elements, size_t input_stride,
26 float *output, size_t output_elements, size_t output_stride,
27 size_t channels, size_t input_frames, size_t left_padding,
28 size_t output_frames);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif
int audio_reflect_pad1d_left_channel_major_f32_checked(const float *input, size_t input_elements, size_t input_stride, float *output, size_t output_elements, size_t output_stride, size_t channels, size_t input_frames, size_t left_padding, size_t output_frames)
@ CK_AUDIO_REFLECT_PAD_OVERFLOW
@ CK_AUDIO_REFLECT_PAD_OK
@ CK_AUDIO_REFLECT_PAD_CAPACITY
@ CK_AUDIO_REFLECT_PAD_INVALID
@ CK_AUDIO_REFLECT_PAD_NONFINITE