-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
190 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
namespace Tricycle.Media.FFmpeg.Models.Config | ||
{ | ||
public class SubtitleCodec | ||
{ | ||
public string Name { get; set; } | ||
|
||
public SubtitleCodec() | ||
{ | ||
} | ||
|
||
public SubtitleCodec(string name) | ||
{ | ||
Name = name; | ||
} | ||
|
||
public SubtitleCodec Clone() | ||
{ | ||
return new SubtitleCodec(Name); | ||
} | ||
} | ||
} |
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,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Tricycle.Models; | ||
|
||
namespace Tricycle.Media.FFmpeg.Models.Config | ||
{ | ||
public class SubtitleConfig | ||
{ | ||
public IDictionary<SubtitleFormat, SubtitleCodec> Codecs { get; set; } | ||
|
||
public SubtitleConfig Clone() | ||
{ | ||
return new SubtitleConfig() | ||
{ | ||
Codecs = Codecs?.ToDictionary(p => p.Key, p => p.Value?.Clone()) | ||
}; | ||
} | ||
} | ||
} |
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