[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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user