mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-26 06:42:47 +02:00
hwopus: Document second member of HwopusHeader
This second member indicates the Opus encoder's entropy coder's final range. While nothing in the service actually does anything with the final range as far as I can tell, this is specified within RFC 6716 (https://tools.ietf.org/html/rfc6716, see section "6. Conformance") as a means of ensuring decoder conformance. States as follows: "In addition, a compliant decoder implementation MUST have the same final range decoder state as that of the reference decoder." So what is likely done when performing compliance testing is the data is encoded, and then the final range of the encoder is sent via this header, then during decoding, the final range would be checked against to ensure that it's valid.
This commit is contained in:
parent
ef370fd33a
commit
03143cbadc
@ -19,7 +19,7 @@ typedef struct {
|
||||
/// These fields are big-endian.
|
||||
typedef struct {
|
||||
u32 size; ///< Size of the packet following this header.
|
||||
u32 unk; ///< Unknown, can be left at zero.
|
||||
u32 final_range; ///< Indicates the final range of the codec encoder's entropy coder. This can be left at zero.
|
||||
} HwopusHeader;
|
||||
|
||||
/// Used internally.
|
||||
|
Loading…
Reference in New Issue
Block a user