mirror of
https://github.com/aaru-dps/Aaru.Decoders.git
synced 2025-12-16 19:24:32 +00:00
Add RegionalPlaybackControlState decoder
This commit is contained in:
committed by
GitHub
parent
4f1901dfb8
commit
85a091657f
@@ -70,6 +70,23 @@ namespace Aaru.Decoders.DVD
|
|||||||
Reserved4 = response[7]
|
Reserved4 = response[7]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static RegionalPlaybackControlState? DecodeRegionalPlaybackControlState(byte[] response)
|
||||||
|
{
|
||||||
|
if(response?.Length != 8)
|
||||||
|
return null;
|
||||||
|
|
||||||
|
return new RegionalPlaybackControlState
|
||||||
|
{
|
||||||
|
DataLength = (ushort)((response[0] << 8) + response[1]),
|
||||||
|
Reserved1 = response[2],
|
||||||
|
Reserved2 = response[3],
|
||||||
|
TypeCode_VendorResetsAvailable_UserControlledChangesAvailable = response[4],
|
||||||
|
RegionMask = response[5],
|
||||||
|
RPCScheme = response[6],
|
||||||
|
Reserved3 = response[7]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
public static string PrettifyLeadInCopyright(LeadInCopyright? cmi)
|
public static string PrettifyLeadInCopyright(LeadInCopyright? cmi)
|
||||||
{
|
{
|
||||||
@@ -229,4 +246,4 @@ namespace Aaru.Decoders.DVD
|
|||||||
public byte Reserved3;
|
public byte Reserved3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user