aboutsummaryrefslogtreecommitdiff
path: root/transcoder/src/lib.rs
blob: fe44a1cae5c4a032b101fd849a168d99db75b5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
    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) 2024 metamuffin <metamuffin.org>
*/
#![feature(async_closure, exit_status_error)]

use tokio::sync::Semaphore;
pub mod fragment;
pub mod image;
pub mod subtitles;
pub mod thumbnail;

static LOCAL_IMAGE_TRANSCODING_TASKS: Semaphore = Semaphore::const_new(8);
static LOCAL_VIDEO_TRANSCODING_TASKS: Semaphore = Semaphore::const_new(2);