ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
render_file.c File Reference

Go to the source code of this file.

Functions

asciichat_error_t render_file_create (const char *, int, int, int, int, render_file_ctx_t **out)
asciichat_error_t render_file_write_frame (render_file_ctx_t *, const char *, uint64_t)
asciichat_error_t render_file_destroy (render_file_ctx_t *)
void render_file_set_snapshot_actual_duration (render_file_ctx_t *, double)

Function Documentation

◆ render_file_create()

asciichat_error_t render_file_create ( const char * output_path,
int cols,
int rows,
int fps,
int theme,
render_file_ctx_t ** out )

Definition at line 3 of file render_file.c.

3 {
4 if (!out) {
5 return SET_ERRNO(ERROR_INVALID_PARAM, "File renderer creation requires an output context");
6 }
7 *out = NULL;
8 return SET_ERRNO(ERROR_NOT_SUPPORTED, "Native file rendering unavailable in the browser");
9}
#define SET_ERRNO(code,...)
@ ERROR_INVALID_PARAM
@ ERROR_NOT_SUPPORTED
Definition error_codes.h:74
static bool size_t gotel_query_t * out
Definition queries.h:10

References ERROR_INVALID_PARAM, ERROR_NOT_SUPPORTED, out, and SET_ERRNO.

◆ render_file_destroy()

asciichat_error_t render_file_destroy ( render_file_ctx_t * ctx)

Definition at line 15 of file render_file.c.

15 {
16 return ASCIICHAT_OK;
17}
@ ASCIICHAT_OK
Definition error_codes.h:50

References ASCIICHAT_OK.

◆ render_file_set_snapshot_actual_duration()

void render_file_set_snapshot_actual_duration ( render_file_ctx_t * ctx,
double actual_duration_sec )

Definition at line 19 of file render_file.c.

19{}

◆ render_file_write_frame()

asciichat_error_t render_file_write_frame ( render_file_ctx_t * ctx,
const char * ansi_frame,
uint64_t captured_ns )

Definition at line 11 of file render_file.c.

11 {
12 return SET_ERRNO(ERROR_NOT_SUPPORTED, "Native file rendering unavailable in the browser");
13}

References ERROR_NOT_SUPPORTED, and SET_ERRNO.