git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Mon, 6 Dec 2021 11:14:33 +0000 (11:14 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Mon, 6 Dec 2021 11:14:33 +0000 (11:14 +0000)
server/user.jobengine.osgi.commons/src/user/commons/nexio/server/protocol/GetExtendedFieldCommand.java

index 41efde69ce1addc450a09ac9b5549961b699db05..1a1201626aa87a88bc2a8fd976db92724a244abe 100644 (file)
@@ -1,10 +1,6 @@
 package user.commons.nexio.server.protocol;\r
 \r
 import java.io.IOException;\r
-import java.nio.ByteBuffer;\r
-import java.nio.ByteOrder;\r
-import java.util.Calendar;\r
-\r
 \r
 /*\r
 Number                                                 Field Description                                                                                                               Max Size\r
@@ -13,7 +9,7 @@ Number                                                 Field Description                                                                                                               Max Size
                                                        of when the media was recorded                                                                                  8\r
 1  Codec Where Recorded        The video server name and channel where the media was recorded                  19\r
 2  Legacy Field                                Used only in Nexio Browse 1.0 and older low-res systems to link \r
-                                                       a low-res clip to its matching high-res clip\92s 8-byte ID handle.                8\r
+                                                       a low-res clip to its matching high-res clip�s 8-byte ID handle.              8\r
 3  UMID                                        Unique Media Identifier                                                                                                 64\r
 4  Video Info                          Extended video format and frame rate in a bit-wise algorithm \r
                                                        of 128 bits                                                                                                                     16\r
@@ -39,11 +35,11 @@ Number                                              Field Description                                                                                                               Max Size
 17 User-definable Field #4     UNICODE-stored 25-character user entry field                                                    50\r
 18 External Controller UID     A field reserved for external controllers needing a place \r
                                                        to store their own unique identifiers                                                                   16\r
-19 Video ARC                           A series of seven 2-byte values defining a clip\92s video \r
+19 Video ARC                           A series of seven 2-byte values defining a clips video \r
                                                        aspect ratio conversion when loaded into \r
                                                        a channel of opposite resolution. \r
                                                        This field also sets whether to override existing AFD data and whether \r
-                                                       to override an SD clip\92s native aspect ratio.                                                   14\r
+                                                       to override an SD clip�s native aspect ratio.                                                         14\r
 20 Modified Timestamp          A FILETIME structure representing the time and date stamp when \r
                                                        the media was last modified. See below for list of protocol \r
                                                        commands which trigger this timestamp.                                                                  8\r
@@ -51,46 +47,45 @@ Number                                              Field Description                                                                                                               Max Size
                                                        the QuiC software application                                                                                   2\r
 22 User Segments In Use                Used for managing the information stored \r
                                                        in user data segments, part of the DTA modes.  \r
-                                                       The 2 bytes represent a bitmask of \93in use\94 user data slots                             2\r
+                                                       The 2 bytes represent a bitmask of �in use� user data slots                         2\r
 23 Audio Track Compression Info        A series of 1-byte data per audio track (up to 32 tracks) to indicate \r
-                                                       each track\92s compression type and channel count                                                 32\r
+                                                       each track�s compression type and channel count                                               32\r
 24 Audio Track Tag Info        A series of 1-byte data per audio track (up to 32 tracks) \r
                                                        to identify the content  of each track using special audio tags                 32*/\r
 public class GetExtendedFieldCommand extends Command {\r
 \r
        private final static byte[] GET_EXTENDED_FIELD = { (byte) 0xc9, (byte) 0xc3 };\r
-       public final static byte[] FN_RECORD_DATETIME = {(byte)0};\r
-       public final static byte[] FN_CODEC_WHERE_RECORDED = {(byte)1};\r
-       public final static byte[] FN_LEGACY_FIELD = {(byte)2};\r
-       public final static byte[] FN_UMID = {(byte)3};\r
-       public final static byte[] FN_VIDEO_INFO = {(byte)4};\r
-       public final static byte[] FN_VIDEO_CODEC_FOURCC_VALUE = {(byte)5};\r
-       public final static byte[] FN_LEGACY_FIELD128BIT = {(byte)6};\r
-       public final static byte[] FN_USER_NAME = {(byte)7};\r
-       public final static byte[] FN_DEPARTMENT = {(byte)8};\r
-       public final static byte[] FN_TITLE = {(byte)9};\r
-       public final static byte[] FN_LINK = {(byte)11};\r
-       public final static byte[] FN_DESCRIPTION = {(byte)12};\r
-       public final static byte[] FN_AGENCY = {(byte)13};\r
-       public final static byte[] FN_USER_DEFINABLE_FIELD_1 = {(byte)14};\r
-       public final static byte[] FN_USER_DEFINABLE_FIELD_2 = {(byte)15};\r
-       public final static byte[] FN_USER_DEFINABLE_FIELD_3 = {(byte)16};\r
-       public final static byte[] FN_USER_DEFINABLE_FIELD_4 = {(byte)17};\r
-       public final static byte[] FN_EXTERNAL_CONTROLLER_UID = {(byte)18};\r
-       public final static byte[] FN_VIDEO_ARC = {(byte)19};\r
-       public final static byte[] FN_MODIFIED_TIMESTAMP = {(byte)20};\r
-       public final static byte[] FN_VIDEO_QA_STATUS = {(byte)21};\r
-       public final static byte[] FN_USER_SEGMENTS_IN_USE = {(byte)22};\r
-       public final static byte[] FN_AUDIO_TRACK_COMPRESSION_INFO = {(byte)23};\r
-       public final static byte[] FN_AUDIO_TRACK_TAG_INFO = {(byte)24};\r
-       \r
+       public final static byte[] FN_RECORD_DATETIME = { (byte) 0 };\r
+       public final static byte[] FN_CODEC_WHERE_RECORDED = { (byte) 1 };\r
+       public final static byte[] FN_LEGACY_FIELD = { (byte) 2 };\r
+       public final static byte[] FN_UMID = { (byte) 3 };\r
+       public final static byte[] FN_VIDEO_INFO = { (byte) 4 };\r
+       public final static byte[] FN_VIDEO_CODEC_FOURCC_VALUE = { (byte) 5 };\r
+       public final static byte[] FN_LEGACY_FIELD128BIT = { (byte) 6 };\r
+       public final static byte[] FN_USER_NAME = { (byte) 7 };\r
+       public final static byte[] FN_DEPARTMENT = { (byte) 8 };\r
+       public final static byte[] FN_TITLE = { (byte) 9 };\r
+       public final static byte[] FN_LINK = { (byte) 11 };\r
+       public final static byte[] FN_DESCRIPTION = { (byte) 12 };\r
+       public final static byte[] FN_AGENCY = { (byte) 13 };\r
+       public final static byte[] FN_USER_DEFINABLE_FIELD_1 = { (byte) 14 };\r
+       public final static byte[] FN_USER_DEFINABLE_FIELD_2 = { (byte) 15 };\r
+       public final static byte[] FN_USER_DEFINABLE_FIELD_3 = { (byte) 16 };\r
+       public final static byte[] FN_USER_DEFINABLE_FIELD_4 = { (byte) 17 };\r
+       public final static byte[] FN_EXTERNAL_CONTROLLER_UID = { (byte) 18 };\r
+       public final static byte[] FN_VIDEO_ARC = { (byte) 19 };\r
+       public final static byte[] FN_MODIFIED_TIMESTAMP = { (byte) 20 };\r
+       public final static byte[] FN_VIDEO_QA_STATUS = { (byte) 21 };\r
+       public final static byte[] FN_USER_SEGMENTS_IN_USE = { (byte) 22 };\r
+       public final static byte[] FN_AUDIO_TRACK_COMPRESSION_INFO = { (byte) 23 };\r
+       public final static byte[] FN_AUDIO_TRACK_TAG_INFO = { (byte) 24 };\r
+\r
        private byte[] buffer;\r
-       \r
+\r
        public GetExtendedFieldCommand(Connection connection) {\r
                super(connection);\r
        }\r
 \r
-\r
        public byte[] execute(Id id, byte[] fieldNumber) throws IOException, ProtocolException {\r
 \r
                byte[] ret = null;\r
@@ -122,4 +117,3 @@ public class GetExtendedFieldCommand extends Command {
                return ret;\r
        }\r
 }\r
-\r