Skip to content

Commit

Permalink
fix: errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Aug 9, 2024
1 parent 28dfeb9 commit 45dbf45
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 64 deletions.
67 changes: 67 additions & 0 deletions src/rust/lib_ccxr/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/rust/lib_ccxr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ bitflags = "2.6.0"
thiserror = "1.0.61"
time = { version = "0.3.36", features = ["macros", "formatting"] }
derive_more = "0.99.18"
url = "2.5.2"

[features]
default = [
Expand Down
29 changes: 0 additions & 29 deletions src/rust/lib_ccxr/src/common/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ pub enum OutputFormat {
// | `DEF_VAL_*` macros | [`CreditTiming`] |
// | `IS_FEASIBLE` macro | [`Codec::is_feasible`] |
// | `IS_VALID_TELETEXT_DESC` macro | [`MpegDescriptor::is_valid_teletext_desc`] |
use std::ffi::OsStr;

// RCWT header (11 bytes):
// byte(s) value description (All values below are hex numbers, not
Expand Down Expand Up @@ -230,7 +229,6 @@ pub enum MpegDescriptor {
DvbSubtitle = 0x59,
/* User defined */
CaptionService = 0x86,
DataComp = 0xfd,
DataComp = 0xfd, // Consider to change DESC to DSC
}

Expand All @@ -241,39 +239,12 @@ pub enum DataSource {
Tcp,
}

/// An enum of all the available formats for the subtitle output.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum OutputFormat {
Raw,
Srt,
Sami,
Transcript,
Rcwt,
Null,
SmpteTt,
SpuPng,
DvdRaw, // See -d at http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/SCC_TOOLS.HTML#CCExtract
WebVtt,
SimpleXml,
G608,
Curl,
Ssa,
Mcc,
Scc,
Ccd,
}

pub enum StreamMode {
ElementaryOrNotFound = 0,
Transport = 1,
Program = 2,
Asf = 3,
McpoodlesRaw = 4,
Rcwt = 5, // raw captions with time, not used yet.
Myth = 6, // use the myth loop
Mp4 = 7, // mp4, iso-
#[cfg(feature = "wtv_debug")]
HexDump = 8, // hexadecimal dump generated by wtvccdump
Rcwt = 5, // Raw Captions With Time, not used yet.
Myth = 6, // Use the myth loop
Mp4 = 7, // MP4, ISO-
Expand Down
1 change: 1 addition & 0 deletions src/rust/lib_ccxr/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pub mod bits;
pub mod encoding;
pub mod levenshtein;
pub mod log;
pub mod time;

use std::os::raw::c_char;

Expand Down
35 changes: 0 additions & 35 deletions src/rust/lib_ccxr/src/util/time.rs

This file was deleted.

0 comments on commit 45dbf45

Please sign in to comment.