Go to the source code of this file.
Functions | |
| static int | checked_add (size_t a, size_t b, size_t *out) |
| static int | checked_mul (size_t a, size_t b, size_t *out) |
| int | ck_kokoro_plan_shape_v8 (const int32_t *durations, size_t phoneme_count, const CKKokoroShapeLimitsV8 *limits, CKKokoroShapeV8 *shape) |
|
static |
Definition at line 6 of file kokoro_shape_bounds.c.
Referenced by ck_kokoro_plan_shape_v8().
|
static |
Definition at line 12 of file kokoro_shape_bounds.c.
Referenced by ck_kokoro_plan_shape_v8().
| int ck_kokoro_plan_shape_v8 | ( | const int32_t * | durations, |
| size_t | phoneme_count, | ||
| const CKKokoroShapeLimitsV8 * | limits, | ||
| CKKokoroShapeV8 * | shape | ||
| ) |
Definition at line 18 of file kokoro_shape_bounds.c.
References CKKokoroShapeLimitsV8::alignment_channels, CKKokoroShapeV8::alignment_elements, checked_add(), checked_mul(), CK_AUDIO_EXTENT_INVALID, CK_AUDIO_EXTENT_LIMIT, CK_AUDIO_EXTENT_OK, CK_AUDIO_EXTENT_OVERFLOW, CKKokoroShapeV8::decoder_frames, CKKokoroShapeLimitsV8::decoder_upsample_factor, CKKokoroShapeV8::expanded_frames, CKKokoroShapeV8::generator_samples, CKKokoroShapeLimitsV8::generator_upsample_rate_0, CKKokoroShapeLimitsV8::generator_upsample_rate_1, CKKokoroShapeLimitsV8::istft_fft_size, CKKokoroShapeV8::istft_frames, CKKokoroShapeLimitsV8::istft_hop_size, CKKokoroShapeV8::istft_padded_samples, CKKokoroShapeLimitsV8::max_alignment_elements, CKKokoroShapeLimitsV8::max_duration_per_phoneme, CKKokoroShapeLimitsV8::max_expanded_frames, CKKokoroShapeLimitsV8::max_generator_samples, CKKokoroShapeLimitsV8::max_output_samples, CKKokoroShapeLimitsV8::max_phonemes, CKKokoroShapeV8::output_samples_upper_bound, and CKKokoroShapeV8::phonemes.