Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/nsmkv/Lacing.h

20 lines
475 B
C
Raw Permalink Normal View History

2024-09-24 12:54:57 +00:00
#pragma once
#include <bfc/platform/types.h>
namespace nsmkv
{
struct LacingState
{
uint16_t laces;
int64_t sizes[256]; // max 256 laces (stored as 8bit number and 1 added)
uint64_t positions[256];
};
namespace Lacing
{
bool GetState(uint8_t flags, const uint8_t *data, size_t data_len, LacingState *state);
bool GetFrame(uint16_t frame_number, const uint8_t *data, size_t data_len, const uint8_t **frame, size_t *frame_len, const LacingState *state);
}
}