This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#47. Port configuration to accept IMMALPortConfig.
- Loading branch information
Showing
18 changed files
with
160 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
using MMALSharp.Config; | ||
using MMALSharp.Native; | ||
using System; | ||
using System.Drawing; | ||
|
||
namespace MMALSharp.Ports | ||
{ | ||
public interface IMMALPortConfig | ||
{ | ||
/// <summary> | ||
/// The encoding type this output port will send data in. | ||
/// </summary> | ||
MMALEncoding EncodingType { get; } | ||
|
||
/// <summary> | ||
/// The pixel format this output port will send data in. | ||
/// </summary> | ||
MMALEncoding PixelFormat { get; } | ||
|
||
/// <summary> | ||
/// User provided width of output frame. | ||
/// </summary> | ||
int Width { get; } | ||
|
||
/// <summary> | ||
/// User provided height of output frame. | ||
/// </summary> | ||
int Height { get; } | ||
|
||
/// <summary> | ||
/// The framerate of the outputted data. | ||
/// </summary> | ||
int Framerate { get; } | ||
|
||
/// <summary> | ||
/// The quality of our outputted data. | ||
/// </summary> | ||
int Quality { get; } | ||
|
||
/// <summary> | ||
/// The bitrate we are sending data at. | ||
/// </summary> | ||
int Bitrate { get; } | ||
|
||
/// <summary> | ||
/// Instruct MMAL to not copy buffers to ARM memory (useful for large buffers and handling raw data). | ||
/// </summary> | ||
bool ZeroCopy { get; } | ||
|
||
/// <summary> | ||
/// Time that processing shall stop. Relevant for video recording. | ||
/// </summary> | ||
DateTime? Timeout { get; } | ||
|
||
/// <summary> | ||
/// Requested number of buffer headers. | ||
/// </summary> | ||
int BufferNum { get; } | ||
|
||
/// <summary> | ||
/// Requested size of buffer headers. | ||
/// </summary> | ||
int BufferSize { get; } | ||
|
||
/// <summary> | ||
/// The Region of Interest requested. | ||
/// </summary> | ||
Rectangle? Crop { get; } | ||
|
||
/// <summary> | ||
/// Video split configuration object. | ||
/// </summary> | ||
Split Split { get; } | ||
|
||
/// <summary> | ||
/// Indicates whether motion vector data should be stored to a separate output stream. Only applies to Video recording. | ||
/// </summary> | ||
bool StoreMotionVectors { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.