Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2023-11-03 06:36:51 +0300
committerMatthew Waters <matthew@centricular.com>2023-11-21 15:33:09 +0300
commit4333e90220116b295d504755f292bf86d2819d59 (patch)
tree2b6b71cb22bc631c0a330be9003583edd020b7a4 /video
parent6c5a0c2795a9adfb89c0f0f9584989d22e7c2a5d (diff)
tttocea608: use crate defined is_* functions instead of reeimplementing them
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1398>
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/tttocea608/imp.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs
index 469f1d630..18a8d2931 100644
--- a/video/closedcaption/src/tttocea608/imp.rs
+++ b/video/closedcaption/src/tttocea608/imp.rs
@@ -15,25 +15,13 @@ use gst::glib::once_cell::sync::Lazy;
use crate::ffi;
use std::sync::Mutex;
-use crate::cea608utils::{Cea608Mode, TextStyle};
+use crate::cea608utils::{is_basicna, is_specialna, is_westeu, Cea608Mode, TextStyle};
use crate::ttutils::{Chunk, Line, Lines};
fn is_punctuation(word: &str) -> bool {
word == "." || word == "," || word == "?" || word == "!" || word == ";" || word == ":"
}
-fn is_basicna(cc_data: u16) -> bool {
- 0x0000 != (0x6000 & cc_data)
-}
-
-fn is_westeu(cc_data: u16) -> bool {
- 0x1220 == (0x7660 & cc_data)
-}
-
-fn is_specialna(cc_data: u16) -> bool {
- 0x1130 == (0x7770 & cc_data)
-}
-
#[allow(clippy::trivially_copy_pass_by_ref)]
fn eia608_from_utf8_1(c: &[u8; 5]) -> u16 {
assert!(c[4] == 0);