mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 03:21:00 +00:00
video/gtk4: Restrict visibility of struct related to the Frame
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/588>
This commit is contained in:
parent
ea6c59e5e9
commit
51c34267a9
1 changed files with 12 additions and 11 deletions
|
@ -14,23 +14,24 @@ use gtk::{gdk, glib};
|
|||
use std::collections::{HashMap, HashSet};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Frame {
|
||||
pub frame: gst_video::VideoFrame<gst_video::video_frame::Readable>,
|
||||
pub overlays: Vec<Overlay>,
|
||||
pub(crate) struct Frame {
|
||||
frame: gst_video::VideoFrame<gst_video::video_frame::Readable>,
|
||||
overlays: Vec<Overlay>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Overlay {
|
||||
pub frame: gst_video::VideoFrame<gst_video::video_frame::Readable>,
|
||||
pub x: i32,
|
||||
pub y: i32,
|
||||
pub width: u32,
|
||||
pub height: u32,
|
||||
pub global_alpha: f32,
|
||||
struct Overlay {
|
||||
frame: gst_video::VideoFrame<gst_video::video_frame::Readable>,
|
||||
x: i32,
|
||||
y: i32,
|
||||
width: u32,
|
||||
height: u32,
|
||||
global_alpha: f32,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Texture {
|
||||
pub(crate) struct Texture {
|
||||
//FIXME: create getters instead of having the fields public
|
||||
pub texture: gdk::Texture,
|
||||
pub x: f32,
|
||||
pub y: f32,
|
||||
|
|
Loading…
Reference in a new issue