Skip to content

Commit 25eaa00

Browse files
committed
Update to mdk-sdk Version 0.26.0
1 parent 0d54d80 commit 25eaa00

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/Gen/global.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ internal static unsafe partial class Methods
239239
[NativeTypeName("#define MDK_MAJOR 0")]
240240
internal const int MDK_MAJOR = 0;
241241

242-
[NativeTypeName("#define MDK_MINOR 25")]
243-
internal const int MDK_MINOR = 25;
242+
[NativeTypeName("#define MDK_MINOR 26")]
243+
internal const int MDK_MINOR = 26;
244244

245245
[NativeTypeName("#define MDK_MICRO 0")]
246246
internal const int MDK_MICRO = 0;

src/Global.cs

+6-3
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ public enum PixelFormat
272272
///{progress 0~100, "reader.buffering"}: error is buffering progress<br/>
273273
///{ 0 / 1, "thread.audio/video/subtitle", stream}: decoder thread is started (error = 1) and about to exit(error = 0)<br/>
274274
///{error, "snapshot", saved_file if no error and error string if error &lt; 0}<br/>
275-
///{ 0, "cc"}: the 1st closed caption data is decoded. can be used in ui to show CC button.
275+
///{ 0, "cc"}: the 1st closed caption data is decoded. can be used in ui to show CC button.<br/>
276+
///{0, "metadata"}: metadata update. new metadata can be read from Player.mediaInfo().metadata<br/>
277+
///TODO: video.thread, video.decoder, video.render<br/>
276278
///</para>
277279
/// </summary>
278280
public class MediaEvent
@@ -373,7 +375,7 @@ public static void SetLogLevel(LogLevel logLevel = LogLevel.All)
373375
/// </summary>
374376
/// <param name="key">
375377
/// - "avutil_lib", "avcodec_lib", "avformat_lib", "swresample_lib", "avfilter_lib": path to ffmpeg runtime libraries<br/>
376-
/// - "plugins_dir": plugins directory.MUST set before "plugins" if not in default dirs<br/>
378+
/// - "plugins_dir", "plugins.dir": plugins directory.MUST set before "plugins" if not in default dirs<br/>
377379
/// - "plugins": plugin filenames or paths in pattern "p1:p2:p3"<br/>
378380
/// - "MDK_KEY": license key for your product<br/>
379381
/// - "MDK_KEY_CODE_PAGE": license key code page used internally(windows only)<br/>
@@ -430,7 +432,8 @@ public static void SetGlobalOption(string key, float value)
430432
/// "jvm", "JavaVM": JavaVM*. android only. Required if not loaded by System.loadLibrary()<br/>
431433
/// "X11Display": Display*<br/>
432434
/// "DRMDevice": drm device path, for vaapi<br/>
433-
/// "DRMFd": drm fd, for vaapi
435+
/// "DRMFd": drm fd, for vaapi<br/>
436+
/// "d3d11.device": ID3D11Device*, global d3d11 device used by decoders and renderers. if value is 1, create an internal device as global device(same decoder and renderer device may results in lower fps, e.g. amd gpu)
434437
/// </param>
435438
/// <param name="value"></param>
436439
public static void SetGlobalOption(string key, IntPtr value)

src/RenderAPI.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ public IntPtr Rt
395395
set { unsafe { internalAPI.rt = (void*)value; } }
396396
}
397397

398+
/// <summary>
399+
/// optional. If null(usually for offscreen rendering), final image layout is VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL/VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR
400+
/// </summary>
398401
public IntPtr RenderPass
399402
{
400403
get { unsafe { return (nint)internalAPI.render_pass; } }
@@ -562,7 +565,7 @@ public VulkanRenderAPI()
562565
internalAPI.present_family = -1;
563566
internalAPI.debug = 0;
564567
internalAPI.buffers = 2;
565-
internalAPI.device_index = -1;
568+
internalAPI.device_index = 0;
566569
internalAPI.max_version = 0;
567570
internalAPI.gfx_queue_index = 0;
568571
internalAPI.transfer_queue_index = -1;

0 commit comments

Comments
 (0)