mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
video_info: Implement fmt::Debug
This commit is contained in:
parent
d4317c6445
commit
dd9b507e67
1 changed files with 12 additions and 0 deletions
|
@ -190,6 +190,18 @@ impl ::VideoMultiviewFramePacking {
|
|||
|
||||
pub struct VideoInfo(pub(crate) ffi::GstVideoInfo);
|
||||
|
||||
impl fmt::Debug for VideoInfo {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||
f.debug_struct("VideoInfo")
|
||||
.field("format", &self.format())
|
||||
.field("width", &self.width())
|
||||
.field("height", &self.height())
|
||||
.field("size", &self.size())
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub struct VideoInfoBuilder<'a> {
|
||||
format: ::VideoFormat,
|
||||
width: u32,
|
||||
|
|
Loading…
Reference in a new issue