aboutsummaryrefslogtreecommitdiff
path: root/transcoder/src/lib.rs
blob: d540e57cc1660d1bd1e1b4c7d0f2d70e5b90b6e2 (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) 2023 metamuffin <metamuffin.org>
*/
#![feature(async_closure)]
#![feature(exit_status_error)]

use tokio::sync::Semaphore;
pub mod image;
pub mod snippet;
pub mod subtitles;

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