aboutsummaryrefslogtreecommitdiff
path: root/remuxer/src/format.rs
blob: 22527f711b704fc7dab7a71dd7bc6d0d3e5d1126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
    This file is part of jellything (https://codeberg.org/metamuffin/jellything)
    which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
    Copyright (C) 2023 metamuffin <metamuffin.org>
*/
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TrackIndex {
    pub clusters: Vec<ClusterIndex>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ClusterIndex {
    pub timestamp: usize,
    pub blocks: BlockIndex,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct BlockIndex {
    pub timestamp_off: usize,
    pub offset: usize,
}

pub struct FBlock {}