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