Skip to content

Commit e66a018

Browse files
authored
Merge pull request #1941 from Harshdhall01/cleanup-rust-todos
[RUST] Document EIA-708 buffer size and remove debug logging
2 parents a8ec286 + 5564aa8 commit e66a018

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

docs/CHANGES.TXT

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
DEVELOPMENT VERSION
2+
-------------------
3+
RUST:
4+
- Documented EIA_708_BUFFER_LENGTH constant with CEA-708 specification reference
5+
- Removed debug logging from target.rs network module
6+
17
0.96.3 (2025-12-29)
28
-------------------
39
- New: VOBSUB subtitle extraction with OCR support for MP4 files

src/rust/lib_ccxr/src/common/constants.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ pub const CCX_DECODER_608_SCREEN_WIDTH: usize = 32;
147147
pub const ONEPASS: usize = 120; // Bytes we can always look ahead without going out of limits
148148
pub const BUFSIZE: usize = 2048 * 1024 + ONEPASS; // 2 Mb plus the safety pass
149149
pub const MAX_CLOSED_CAPTION_DATA_PER_PICTURE: usize = 32;
150-
pub const EIA_708_BUFFER_LENGTH: usize = 2048; // TODO: Find out what the real limit is
150+
/// CEA-708 Service Input Buffer size.
151+
/// Specification minimum is 128 bytes per service, but we use 2048 bytes
152+
/// (16x the minimum) to provide a safety margin for buffer management.
153+
/// Reference: CEA-708-E Section 8.4.3 - Service Input Buffers
154+
pub const EIA_708_BUFFER_LENGTH: usize = 2048;
151155
pub const TS_PACKET_PAYLOAD_LENGTH: usize = 184; // From specs
152156
pub const SUBLINESIZE: usize = 2048; // Max. length of a .srt line - TODO: Get rid of this
153157
pub const STARTBYTESLENGTH: usize = 1024 * 1024;

src/rust/lib_ccxr/src/net/target.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ impl<'a> SendTarget<'a> {
8282
"Unable to connect, address passed is null\n"
8383
);
8484
}
85-
info!("Target address: {}\n", config.target_addr); // TODO remove this
8685
info!("Target port: {}\n", config.port.unwrap_or(DEFAULT_TCP_PORT));
8786
let tcp_stream = TcpStream::connect((
8887
config.target_addr,

0 commit comments

Comments
 (0)