Skip to content

Commit 46bd4be

Browse files
kiddkaffeinekiddkaffeine
authored andcommitted
Renamed IVideoPlayerImpl to IVideoPlayerCodec, made interface internal
1 parent d34881e commit 46bd4be

File tree

9 files changed

+14
-22
lines changed

9 files changed

+14
-22
lines changed

FNA.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
<Compile Include="src\Media\VideoSoundtrackType.cs" />
329329
<Compile Include="src\Media\VisualizationData.cs" />
330330
<Compile Include="src\Media\Xiph\BaseYUVPlayer.cs" />
331-
<Compile Include="src\Media\Xiph\IVideoPlayerImpl.cs" />
331+
<Compile Include="src\Media\Xiph\IVideoPlayerCodec.cs" />
332332
<Compile Include="src\Media\Xiph\Video.cs" />
333333
<Compile Include="src\Media\Xiph\VideoPlayer.cs" />
334334
<Compile Include="src\Media\Xiph\VideoPlayerTheora.cs" />

FNA.NetFramework.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
<Compile Include="src\Media\VideoSoundtrackType.cs" />
330330
<Compile Include="src\Media\VisualizationData.cs" />
331331
<Compile Include="src\Media\Xiph\BaseYUVPlayer.cs" />
332-
<Compile Include="src\Media\Xiph\IVideoPlayerImpl.cs" />
332+
<Compile Include="src\Media\Xiph\IVideoPlayerCodec.cs" />
333333
<Compile Include="src\Media\Xiph\Video.cs" />
334334
<Compile Include="src\Media\Xiph\VideoPlayer.cs" />
335335
<Compile Include="src\Media\Xiph\VideoPlayerTheora.cs" />

FNA.NetStandard.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
<Compile Include="src\Media\VideoSoundtrackType.cs" />
328328
<Compile Include="src\Media\VisualizationData.cs" />
329329
<Compile Include="src\Media\Xiph\BaseYUVPlayer.cs" />
330-
<Compile Include="src\Media\Xiph\IVideoPlayerImpl.cs" />
330+
<Compile Include="src\Media\Xiph\IVideoPlayerCodec.cs" />
331331
<Compile Include="src\Media\Xiph\Video.cs" />
332332
<Compile Include="src\Media\Xiph\VideoPlayer.cs" />
333333
<Compile Include="src\Media\Xiph\VideoPlayerTheora.cs" />

FNA.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
<Compile Include="src\Media\VideoSoundtrackType.cs" />
400400
<Compile Include="src\Media\VisualizationData.cs" />
401401
<Compile Include="src\Media\Xiph\BaseYUVPlayer.cs" />
402-
<Compile Include="src\Media\Xiph\IVideoPlayerImpl.cs" />
402+
<Compile Include="src\Media\Xiph\IVideoPlayerCodec.cs" />
403403
<Compile Include="src\Media\Xiph\Video.cs" />
404404
<Compile Include="src\Media\Xiph\VideoPlayer.cs" />
405405
<Compile Include="src\Media\Xiph\VideoPlayerTheora.cs" />

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ SRC = \
311311
src/Media/SongCollection.cs \
312312
src/Media/VideoSoundtrackType.cs \
313313
src/Media/VisualizationData.cs \
314-
src/Media/Xiph/IVideoPlayerImpl.cs \
314+
src/Media/Xiph/IVideoPlayerCodec.cs \
315315
src/Media/Xiph/BaseYUVPlayer.cs \
316316
src/Media/Xiph/Video.cs \
317317
src/Media/Xiph/VideoPlayer.cs \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace Microsoft.Xna.Framework.Media
1616
{
17-
public interface IVideoPlayerImpl : IDisposable
17+
internal interface IVideoPlayerCodec : IDisposable
1818
{
1919
#region Public Member Data: XNA VideoPlayer Implementation
2020

src/Media/Xiph/Video.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public static Video FromUriEXT(Uri uri, GraphicsDevice graphicsDevice)
175175

176176
internal int audioTrack = -1;
177177
internal int videoTrack = -1;
178-
internal IVideoPlayerImpl parent;
178+
internal IVideoPlayerCodec parent;
179179

180180
public void SetAudioTrackEXT(int track)
181181
{

src/Media/Xiph/VideoPlayer.cs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public float Volume
116116

117117
#region Private Member Data: Implementation
118118

119-
private IVideoPlayerImpl impl;
119+
private IVideoPlayerCodec impl;
120120

121121
internal static Dictionary<string, string> codecExtensions =
122122
new Dictionary<string, string>
@@ -130,8 +130,8 @@ public float Volume
130130
{ "Theora", VideoPlayerTheora.ReadInfo }
131131
};
132132

133-
internal static Dictionary<string, Func<IVideoPlayerImpl>> codecPlayers =
134-
new Dictionary<string, Func<IVideoPlayerImpl>>
133+
internal static Dictionary<string, Func<IVideoPlayerCodec>> codecPlayers =
134+
new Dictionary<string, Func<IVideoPlayerCodec>>
135135
{
136136
{ "Theora", () => new VideoPlayerTheora() },
137137
};
@@ -250,16 +250,9 @@ public void SetVideoTrackEXT(int track)
250250
}
251251
}
252252

253-
public static void AddCodecEXT(string codecName, List<String> extensions, Func<string, VideoInfo> reader,
254-
Func<IVideoPlayerImpl> implementation)
255-
{
256-
foreach (String extension in extensions)
257-
{
258-
codecExtensions.Add(extension.ToLower(), codecName);
259-
}
260-
codecInfoReaders.Add(codecName, reader);
261-
codecPlayers.Add(codecName, implementation);
262-
}
253+
#endregion
254+
255+
#region Structs for Internal Use
263256

264257
public struct VideoInfo
265258
{

src/Media/Xiph/VideoPlayerTheora.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace Microsoft.Xna.Framework.Media
2020
{
21-
public sealed class VideoPlayerTheora : IVideoPlayerImpl, IDisposable
21+
public sealed class VideoPlayerTheora : IVideoPlayerCodec, IDisposable
2222
{
2323
#region Hardware-accelerated YUV -> RGBA
2424

@@ -937,7 +937,6 @@ private void InitializeTheoraStream()
937937

938938
#endregion
939939

940-
941940
#region Video support methods
942941

943942
internal static VideoPlayer.VideoInfo ReadInfo(string fileName)

0 commit comments

Comments
 (0)