← Back to C-Kernel-Engine Docs Doxygen Source Documentation
Loading...
Searching...
No Matches
ckernel_checked_frame_codec.h
Go to the documentation of this file.
1#ifndef CKERNEL_CHECKED_FRAME_CODEC_H
2#define CKERNEL_CHECKED_FRAME_CODEC_H
3
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10enum {
14};
15
16/* Execute a declared codec segment after a checked generation loop reaches
17 * EOS. Code frames are copied into a frame-major circuit input; the circuit
18 * owns every codebook layout edge and all codec arithmetic. Both generated
19 * entries use the same compiler-planned arena. Published PCM is unchanged on
20 * rejection and valid_samples remains zero. */
34
36
37/* Run a codec compiled for expected_code_frames of storage while publishing
38 * only the prefix produced before EOS. The codec must be prefix causal for
39 * the selected provider and geometry; callers must certify that property.
40 * Unused frame-major code slots are filled with code zero. expected_samples
41 * remains the full compiled waveform capacity. */
46
48 const ck_checked_frame_codec_prefix *request);
49
50/* Apply the generic cancellation contract to generation and check again
51 * before and after the codec entry. The codec entry itself is not interrupted.
52 * A cancelled call leaves output_samples unchanged and valid_samples zero. */
58
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif
int ck_run_checked_frame_codec_prefix_control(const ck_checked_frame_codec_prefix_control *request)
int ck_run_checked_frame_codec(const ck_checked_frame_codec *request)
int ck_run_checked_frame_codec_prefix(const ck_checked_frame_codec_prefix *request)
@ CK_FRAME_CODEC_LENGTH_MISMATCH
@ CK_FRAME_CODEC_INVALID_OUTPUT
@ CK_FRAME_CODEC_ENTRY_FAILED
int(* ck_checked_frame_cancel)(void *context)
int(* ck_checked_frame_entry)(uint8_t *arena, size_t arena_bytes)
ck_checked_frame_loop * generation