Added #1893 Experimental playback of DefineVideoStream tags with VLC player

This commit is contained in:
Jindra Petřík
2022-12-04 21:56:16 +01:00
parent efded83357
commit 85668bbb07
23 changed files with 674 additions and 35 deletions

View File

@@ -17,6 +17,7 @@
package com.sun.jna.platform.win32;
import com.sun.jna.IntegerType;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.ByReference;
import com.sun.jna.win32.StdCallLibrary;
@@ -40,7 +41,7 @@ public interface BaseTSD extends StdCallLibrary {
}
public LONG_PTR(long value) {
super(Pointer.SIZE, value);
super(Native.POINTER_SIZE, value);
}
public Pointer toPointer() {
@@ -72,7 +73,7 @@ public interface BaseTSD extends StdCallLibrary {
}
public ULONG_PTR(long value) {
super(Pointer.SIZE, value, true);
super(Native.POINTER_SIZE, value, true);
}
public Pointer toPointer() {
@@ -90,12 +91,12 @@ public interface BaseTSD extends StdCallLibrary {
}
public ULONG_PTRByReference(ULONG_PTR value) {
super(Pointer.SIZE);
super(Native.POINTER_SIZE);
setValue(value);
}
public void setValue(ULONG_PTR value) {
if (Pointer.SIZE == 4) {
if (Native.POINTER_SIZE == 4) {
getPointer().setInt(0, value.intValue());
} else {
getPointer().setLong(0, value.longValue());
@@ -103,7 +104,7 @@ public interface BaseTSD extends StdCallLibrary {
}
public ULONG_PTR getValue() {
return new ULONG_PTR(Pointer.SIZE == 4
return new ULONG_PTR(Native.POINTER_SIZE == 4
? getPointer().getInt(0)
: getPointer().getLong(0));
}
@@ -119,7 +120,7 @@ public interface BaseTSD extends StdCallLibrary {
}
public DWORD_PTR(long value) {
super(Pointer.SIZE, value);
super(Native.POINTER_SIZE, value);
}
}