Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
PixbufDisplayer Class Reference

#include "stage/output/pixbuf-displayer.hpp"

Description

PixbufDisplayer is a class which is responsible for rendering a video image via GDK.

Todo:
WIP as of 5/2025 attempt to accommodate to GTK-3 /////////////////////////////////////////////////TICKET #1403

Definition at line 44 of file pixbuf-displayer.hpp.

Public Member Functions

 PixbufDisplayer (Gtk::Image &drawing_area, uint width, uint height)
 Constructor.
 
- Public Member Functions inherited from Displayer
virtual ~Displayer ()
 
 Displayer (uint w, uint h)
 

Private Member Functions

void put (void *const image)
 Put an image of a given width and height with the expected input format (as indicated by the format method).
 
bool usable () override
 Indicates if this object can be used to render images on the running system.
 
DisplayerInput format () override
 Indicates the format required by the abstract put method.
 

Private Attributes

Gtk::Image & drawingArea_
 

Additional Inherited Members

- Protected Member Functions inherited from Displayer
void calculateVideoLayout (int widgetWidth, int widgetHeight, int &imgOrg_x, int &imgOrg_y, int &imgWidth, int &imgHeight)
 Calculates the coordinates for placing a video image inside a widget.
 
- Protected Attributes inherited from Displayer
const uint videoWidth
 
const uint videoHeight
 

Constructor & Destructor Documentation

◆ PixbufDisplayer()

PixbufDisplayer ( Gtk::Image &  drawing_area,
uint  width,
uint  height 
)

Constructor.

Parameters
[in]drawing_areaThe widget into which the video image will be drawn. This value must not be NULL.
[in]widthThe width of the video image in pixels. This value must be greater than zero.
[in]heightThe height of the video image in pixels. This value must be greater than zero.

Definition at line 31 of file pixbuf-displayer.cpp.

References PixbufDisplayer::drawingArea_.

Member Function Documentation

◆ put()

void put ( void *const  image)
privatevirtual

Put an image of a given width and height with the expected input format (as indicated by the format method).

Parameters
[in]imageThe video image array to draw.

Implements Displayer.

Definition at line 50 of file pixbuf-displayer.cpp.

References Displayer::calculateVideoLayout(), PixbufDisplayer::drawingArea_, Displayer::videoHeight, and Displayer::videoWidth.

+ Here is the call graph for this function:

◆ usable()

bool usable ( )
overrideprivatevirtual

Indicates if this object can be used to render images on the running system.

Implements Displayer.

Definition at line 44 of file pixbuf-displayer.cpp.

◆ format()

DisplayerInput format ( )
inlineoverrideprivatevirtual

Indicates the format required by the abstract put method.

Todo:
this feature was seemingly never used... can it be relevant? can we handle different formats?

Reimplemented from Displayer.

Definition at line 72 of file pixbuf-displayer.hpp.

References lumiera::DISPLAY_RGB.

Member Data Documentation

◆ drawingArea_

Gtk::Image& drawingArea_
private

Definition at line 47 of file pixbuf-displayer.hpp.

Referenced by PixbufDisplayer::PixbufDisplayer(), and PixbufDisplayer::put().

+ Inheritance diagram for PixbufDisplayer:
+ Collaboration diagram for PixbufDisplayer:

The documentation for this class was generated from the following files: