ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
video/h265/decoder.h
Go to the documentation of this file.
1#pragma once
2
17
18#include <stddef.h>
19#include <stdint.h>
20#include <stdbool.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27typedef struct h265_decoder h265_decoder_t;
28
32#define H265_DECODER_FLAG_KEYFRAME 0x01
33#define H265_DECODER_FLAG_SIZE_CHANGE 0x02
34
41
48
74asciichat_error_t h265_decode(h265_decoder_t *decoder, const uint8_t *encoded_packet, size_t packet_size, uint16_t *output_width, uint16_t *output_height, uint8_t *output_buf, size_t *output_size);
75
86
87#ifdef __cplusplus
88}
89#endif
Synchronized per-thread pending error stacks and value snapshots. SET_ERRNO pushes,...
unsigned short uint16_t
unsigned long long uint64_t
unsigned char uint8_t
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
struct h265_decoder h265_decoder_t
void h265_decoder_destroy(h265_decoder_t *decoder)
h265_decoder_t * h265_decoder_create(void)
asciichat_error_t h265_decode(h265_decoder_t *decoder, const uint8_t *encoded_packet, size_t packet_size, uint16_t *output_width, uint16_t *output_height, uint8_t *output_buf, size_t *output_size)
void h265_decoder_get_stats(h265_decoder_t *decoder, uint64_t *total_frames, uint64_t *keyframes, uint16_t *last_width, uint16_t *last_height)