joshdoe / gst-plugins-vision

GStreamer plugins related to the field of machine vision
Other
134 stars 50 forks source link

Pleora Sink with eBUS SDK v. 6.2 #82

Closed sg-brianvg closed 2 years ago

sg-brianvg commented 2 years ago

Attaching to the camera created by gstpleorasink does not let me change the frame size. It is stuck at the default frame size provided by the parent PvStreamingChannelSourceDefault. Is this a change in behavior from the previous version? In the derived class streamingchannelsource, there is no implementation for the SetWidth, SetHeight or SetPixelType methods, so whenever an attempt is made to change these values, the register access fails. I am guessing this is a departure in behavior from previous versions of the SDK. The relevant section from the doc is:

"The MySource class implements a streaming source. It inherits from the PvStreamingChannelSourceDefault class and enforces a constant width (640), height (480), and pixel format (Mono8). If you would like to change any of these settings in the sample, you can do so in the constructor. When the constructor is modified in PvStreamingChannelSourceDefault, the GenICam XML file is automatically updated to reflect these values... "

I thought implementing my own setter and getter functions for the width, height and pixel type would work, but somehow they are still getting set back to the default.

Any suggestions?

sg-brianvg commented 2 years ago

Indeed the issue was the missing setter and getter functions for the size and pixel type. Adding these (correctly) fixed the problem. I can create a pull request if you would like.