techyian / MMALSharp

C# wrapper to Broadcom's MMAL with an API to the Raspberry Pi camera.
MIT License
195 stars 33 forks source link

Use of PortExtensions class #107

Open techyian opened 4 years ago

techyian commented 4 years ago

Make better use of the PortExtensions class. Good use is being made of the MMALCameraExtensions and all Getting/Setting of configuration specifically for the camera's ports is being routed through there. For non-camera ports, the use of mmal_port_parameter_get and mmal_port_parameter_set is being done in their respective component classes, e.g. MMALVideoEncoder, and these should be routed through PortExtensions. This will make it easier to query encoder/decoder port configs going forward.