[refactor](trx-wxsat): unify image encoding to shared PNG module

Extract common image_enc module at crate root with encode_grayscale_png
and encode_rgb_png helpers. Both NOAA APT and Meteor-M LRPT now use PNG
as the output format through the shared encoder. Drop jpeg image feature
dependency.

https://claude.ai/code/session_01JA13DHuzuHUL4nSBBRU83f
Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-28 09:10:07 +00:00
committed by Stan Grams
parent 1a3b815ed8
commit 4d40c29e49
9 changed files with 63 additions and 60 deletions
+2 -2
View File
@@ -211,7 +211,7 @@ pub struct Ft8Message {
pub message: String,
}
/// A completed weather satellite APT image, saved to disk as a JPEG.
/// A completed weather satellite APT image, saved to disk as a PNG.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WxsatImage {
#[serde(skip_serializing_if = "Option::is_none")]
@@ -222,7 +222,7 @@ pub struct WxsatImage {
pub pass_end_ms: i64,
/// Number of decoded image lines.
pub line_count: u32,
/// Absolute filesystem path to the saved JPEG file.
/// Absolute filesystem path to the saved PNG file.
pub path: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub ts_ms: Option<i64>,