aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-16 14:53:58 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-16 14:53:58 +0200
commitedfd710c055621d7ef0c8d0e9c6668b4aa2283d7 (patch)
tree1efec517324f8bda72a2b365e82c23081b4f5898 /common
parenta9c897c7d7df5509a195055e95dfa821fe7aa274 (diff)
downloadjellything-edfd710c055621d7ef0c8d0e9c6668b4aa2283d7.tar
jellything-edfd710c055621d7ef0c8d0e9c6668b4aa2283d7.tar.bz2
jellything-edfd710c055621d7ef0c8d0e9c6668b4aa2283d7.tar.zst
move seek index types to remuxer
Diffstat (limited to 'common')
-rw-r--r--common/src/lib.rs1
-rw-r--r--common/src/seek_index.rs33
2 files changed, 0 insertions, 34 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 00f07b6..4480db5 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -9,7 +9,6 @@ pub mod config;
pub mod helpers;
pub mod r#impl;
pub mod jhls;
-pub mod seek_index;
pub mod stream;
pub mod user;
diff --git a/common/src/seek_index.rs b/common/src/seek_index.rs
deleted file mode 100644
index 20cf394..0000000
--- a/common/src/seek_index.rs
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- 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) 2025 metamuffin <metamuffin.org>
-*/
-use bincode::{Decode, Encode};
-
-pub const SEEK_INDEX_VERSION: u32 = 0x5eef1de4;
-
-#[derive(Debug, Clone, Decode, Encode)]
-pub struct SeekIndex {
- pub version: u32,
- pub blocks: Vec<BlockIndex>,
- pub keyframes: Vec<usize>,
-}
-
-#[derive(Debug, Clone, Decode, Encode)]
-pub struct BlockIndex {
- pub pts: u64,
- // pub duration: Option<u64>,
- pub source_off: u64, // points to start of SimpleBlock or BlockGroup (not the Block inside it)
- pub size: usize,
-}
-
-impl Default for SeekIndex {
- fn default() -> Self {
- Self {
- version: SEEK_INDEX_VERSION,
- blocks: Vec::new(),
- keyframes: Vec::new(),
- }
- }
-}