oximedia_proxy/render/
replace.rs1use crate::Result;
4
5pub struct RenderReplace;
7
8impl RenderReplace {
9 #[must_use]
11 pub const fn new() -> Self {
12 Self
13 }
14
15 pub fn replace(
17 &self,
18 _proxy_render: &std::path::Path,
19 _original_sources: &[std::path::PathBuf],
20 ) -> Result<ReplaceResult> {
21 Ok(ReplaceResult {
23 output_path: std::path::PathBuf::new(),
24 quality_improved: true,
25 })
26 }
27}
28
29impl Default for RenderReplace {
30 fn default() -> Self {
31 Self::new()
32 }
33}
34
35#[derive(Debug, Clone)]
37pub struct ReplaceResult {
38 pub output_path: std::path::PathBuf,
40
41 pub quality_improved: bool,
43}
44
45#[cfg(test)]
46mod tests {
47 use super::*;
48
49 #[test]
50 fn test_render_replace() {
51 let replacer = RenderReplace::new();
52 let result = replacer.replace(
53 std::path::Path::new("proxy_render.mp4"),
54 &[std::path::PathBuf::from("original.mov")],
55 );
56 assert!(result.is_ok());
57 }
58}