pub fn from_str(fourcc: &str) -> VideoEncodeType {
        return match fourcc {
            "H264" => VideoEncodeType::H264,
            "MJPG" => VideoEncodeType::MJPG,
            "YUYV" => VideoEncodeType::YUYV,
            _ => VideoEncodeType::UNKNOWN(fourcc.to_string()),
        };
    }
//TODO: use trait fromstr, check others places
use trait fromstr, check others places
use trait fromstr check others places
pub fn from_str(fourcc: &str) -> VideoEncodeType {
        return match fourcc {
            "H264" => VideoEncodeType::H264,
            "MJPG" => VideoEncodeType::MJPG,
            "YUYV" => VideoEncodeType::YUYV,
            _ => VideoEncodeType::UNKNOWN(fourcc.to_string()),
        };
    }
pub fn from_str ( fourcc : & str ) -> VideoEncodeType { return match fourcc { " " => VideoEncodeType :: H264 , " " => VideoEncodeType :: MJPG , " " => VideoEncodeType :: YUYV , _ => VideoEncodeType :: UNKNOWN ( fourcc . to_string ( ) ) , } ; }
TODO: use trait fromstr, check others places
TODO : use trait fromstr check others places
fourcc
&str