summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3aa66af)
rawvideo-ms requires a padding to multiple of 4 and thus not always suitable
if let Ok(file) = File::open(fname.as_str()) {
let mut file = BufReader::new(file);
let vinfo = read_pnm_header(&mut file, self.pgmyuv)?;
if let Ok(file) = File::open(fname.as_str()) {
let mut file = BufReader::new(file);
let vinfo = read_pnm_header(&mut file, self.pgmyuv)?;
- let cinfo = NACodecInfo::new(if vinfo.format.model.is_yuv() { "rawvideo" } else { "rawvideo-ms" }, NACodecTypeInfo::Video(vinfo), None);
+ let cinfo = NACodecInfo::new("rawvideo", NACodecTypeInfo::Video(vinfo), None);
let stream = NAStream::new(StreamType::Video, 0, cinfo, self.tb_num, self.tb_den, 0).into_ref();
return Ok(ImgSeqDemuxer::new(stream, self.start.unwrap_or(0), template, self.pgmyuv));
}
let stream = NAStream::new(StreamType::Video, 0, cinfo, self.tb_num, self.tb_den, 0).into_ref();
return Ok(ImgSeqDemuxer::new(stream, self.start.unwrap_or(0), template, self.pgmyuv));
}
if let Ok(file) = File::open(fname.as_str()) {
let mut file = BufReader::new(file);
let vinfo = read_pnm_header(&mut file, self.pgmyuv)?;
if let Ok(file) = File::open(fname.as_str()) {
let mut file = BufReader::new(file);
let vinfo = read_pnm_header(&mut file, self.pgmyuv)?;
- let cinfo = NACodecInfo::new(if vinfo.format.model.is_yuv() { "rawvideo" } else { "rawvideo-ms" }, NACodecTypeInfo::Video(vinfo), None);
+ let cinfo = NACodecInfo::new("rawvideo", NACodecTypeInfo::Video(vinfo), None);
let stream = NAStream::new(StreamType::Video, 0, cinfo, self.tb_num, self.tb_den, 0).into_ref();
return Ok(ImgSeqDemuxer::new(stream, new_start, template, self.pgmyuv));
}
let stream = NAStream::new(StreamType::Video, 0, cinfo, self.tb_num, self.tb_den, 0).into_ref();
return Ok(ImgSeqDemuxer::new(stream, new_start, template, self.pgmyuv));
}