Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from yodadude2003/develop
Improved AV Reading/Writing
- Loading branch information
Showing
34 changed files
with
1,472 additions
and
613 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
namespace FFMediaToolkit.Audio | ||
{ | ||
using FFmpeg.AutoGen; | ||
|
||
/// <summary> | ||
/// Enumerates common audio sample formats supported by FFmpeg. | ||
/// </summary> | ||
public enum SampleFormat | ||
{ | ||
/// <summary> | ||
/// Unsupported/Unknown. | ||
/// </summary> | ||
None = AVSampleFormat.AV_SAMPLE_FMT_NONE, | ||
|
||
/// <summary> | ||
/// Unsigned 8-bit integer. | ||
/// </summary> | ||
UnsignedByte = AVSampleFormat.AV_SAMPLE_FMT_U8, | ||
|
||
/// <summary> | ||
/// Signed 16-bit integer. | ||
/// </summary> | ||
SignedWord = AVSampleFormat.AV_SAMPLE_FMT_S16, | ||
|
||
/// <summary> | ||
/// Signed 32-bit integer. | ||
/// </summary> | ||
SignedDWord = AVSampleFormat.AV_SAMPLE_FMT_S32, | ||
|
||
/// <summary> | ||
/// Single precision floating point. | ||
/// </summary> | ||
Single = AVSampleFormat.AV_SAMPLE_FMT_FLT, | ||
|
||
/// <summary> | ||
/// Double precision floating point. | ||
/// </summary> | ||
Double = AVSampleFormat.AV_SAMPLE_FMT_DBL, | ||
|
||
/// <summary> | ||
/// Signed 16-bit integer (planar). | ||
/// </summary> | ||
SignedWordP = AVSampleFormat.AV_SAMPLE_FMT_S16P, | ||
|
||
/// <summary> | ||
/// Signed 32-bit integer (planar). | ||
/// </summary> | ||
SignedDWordP = AVSampleFormat.AV_SAMPLE_FMT_S32P, | ||
|
||
/// <summary> | ||
/// Single precision floating point (planar). | ||
/// </summary> | ||
SingleP = AVSampleFormat.AV_SAMPLE_FMT_FLTP, | ||
|
||
/// <summary> | ||
/// Double precision floating point (planar). | ||
/// </summary> | ||
DoubleP = AVSampleFormat.AV_SAMPLE_FMT_DBLP, | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
FFMediaToolkit/Common/Internal/MediaType.cs → FFMediaToolkit/Common/MediaType.cs
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.