opus_types.h(3)
πΈ NAME πΈ
opus_types.h β bestie, this is the Opus reference implementation types header π it's literally just the little squad of integer types that the whole Opus codebase rolls with, and it's in the opus_types.h(3) page of the Opus manual, so. yeah. that's the vibe check π
β¨ SYNOPSIS β¨
okay so here's the whole cast, no notes π
π Macros
#define opus_int int /* used for counters etc; at
least 16 bits */
#define opus_int64 long long
#define opus_int8 signed char
#define opus_uint unsigned int /* used for counters etc; at
least 16 bits */
#define opus_uint64 unsigned long long
#define opus_uint8 unsigned char
π¦ Typedefs
typedef short opus_int16
typedef unsigned short opus_uint16
typedef int opus_int32
typedef unsigned int opus_uint32
π«Ά Detailed Description π«Ά
Opus reference implementation types. that's it, that's the whole description, she's short but she's iconic π every int in the Opus source is basically cosplaying as one of these. periodt.
π Macro Definition Documentation π
π #define opus_int int /* used for counters etc; at least 16 bits */
the everyday counter type bestie π it's just int, and it's at least 16 bits, so use it for counters and stuff like that. nothing fancy, just reliable β¨
π #define opus_int64 long long
the big-girl signed integer π
that's long long, for when 32 bits simply cannot contain your feelings π
π #define opus_int64 long long ... wait no πΈ
okay actual next one: #define opus_int8 signed char β the tiniest signed baby π literally just signed char, one little byte of drama.
π #define opus_uint unsigned int /* used for counters etc; at least 16 bits */
the unsigned twin of opus_int π¦ it's unsigned int, again at least 16 bits, and again used for counters etc. same energy, no negativity allowed π
π #define opus_uint64 unsigned long long
unsigned, sixty-four bits, unsigned long long β the big one that never goes negative π§ slay.
π #define opus_uint8 unsigned char
unsigned char β¨ the lil one-byte unsigned cutie. no sign, no problems, just vibes π
β Typedef Documentation β
these are the actual typedefs, bestie, the named ones you'll see all over the Opus code π
typedef short opus_int16β 16-bit signed, lowkey justshortπtypedef int opus_int32β 32-bit signed, which is literallyintπ iconictypedef unsigned short opus_uint16β 16-bit unsigned, akaunsigned shortπ¦typedef unsigned int opus_uint32β 32-bit unsigned, akaunsigned int, the moment π
ngl there's no opus_int16-style magic going on under the hood β these typedefs are exactly the C types they say they are, so don't go expecting any surprises π
π Author π
Generated automatically by Doxygen for Opus from the source code. yeah bestie, a robot wrote this one, she ate and left no crumbs π€π
so like, this whole page is from Opus, version 1.6.1, dated Thu Jan 29 2026 14:35:32, and it lives at opus_types.h(3) in the manual β mwah, stan, bye bestie πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- ubuntu resolute: libopus-doc 1.6.1-1 Β· BSD-3-Clause
- ubuntu stonking: libopus-doc 1.6.1-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms