mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 16:20:45 +00:00
format code: blank lines
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
@@ -25,25 +26,45 @@ import java.io.IOException;
|
||||
public class AUDIODATA extends DATA {
|
||||
|
||||
public static final int SOUNDFORMAT_UNCOMPRESSED_NE = 0;
|
||||
|
||||
public static final int SOUNDFORMAT_ADPCM = 1;
|
||||
|
||||
public static final int SOUNDFORMAT_MP3 = 2;
|
||||
|
||||
public static final int SOUNDFORMAT_UNCOMPRESSED_LE = 3;
|
||||
|
||||
public static final int SOUNDFORMAT_NELLYMOSER_16 = 4;
|
||||
|
||||
public static final int SOUNDFORMAT_NELLYMOSER_8 = 5;
|
||||
|
||||
public static final int SOUNDFORMAT_NELLYMOSER = 6;
|
||||
|
||||
public static final int SOUNDFORMAT_SPEEX = 11;
|
||||
|
||||
public static final int SOUNDRATE_5K5 = 0;
|
||||
|
||||
public static final int SOUNDRATE_11K = 1;
|
||||
|
||||
public static final int SOUNDRATE_22K = 2;
|
||||
|
||||
public static final int SOUNDRATE_44K = 3;
|
||||
|
||||
public static final int SOUNDSIZE_8BIT = 0;
|
||||
|
||||
public static final int SOUNDSIZE_16BIT = 1;
|
||||
|
||||
public static final int SOUNDTYPE_MONO = 0;
|
||||
|
||||
public static final int SOUNDTYPE_STEREO = 1;
|
||||
|
||||
public int soundFormat;
|
||||
|
||||
public int soundRate;
|
||||
|
||||
public boolean soundSize;
|
||||
|
||||
public boolean soundType;
|
||||
|
||||
public byte[] soundData;
|
||||
|
||||
public AUDIODATA(int soundFormat, int soundRate, boolean soundSize, boolean soundType, byte[] soundData) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
import com.jpexs.helpers.utf8.Utf8Helper;
|
||||
@@ -27,8 +28,11 @@ import java.util.List;
|
||||
public class FLVOutputStream extends OutputStream {
|
||||
|
||||
private final OutputStream os;
|
||||
|
||||
private int bitPos = 0;
|
||||
|
||||
private int tempByte = 0;
|
||||
|
||||
private long pos = 0;
|
||||
|
||||
public FLVOutputStream(OutputStream os) {
|
||||
@@ -134,7 +138,7 @@ public class FLVOutputStream extends OutputStream {
|
||||
writeUB(1, audio ? 1 : 0); //audio present
|
||||
writeUB(1, 0); //reserved
|
||||
writeUB(1, video ? 1 : 0); //video present
|
||||
writeUI32(9); //header size
|
||||
writeUI32(9); //header size
|
||||
writeUI32(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
/**
|
||||
@@ -22,10 +23,15 @@ package com.jpexs.decompiler.flash.flv;
|
||||
public class FLVTAG {
|
||||
|
||||
public int tagType;
|
||||
|
||||
public long timeStamp;
|
||||
|
||||
public DATA data;
|
||||
|
||||
public static final int DATATYPE_VIDEO = 9;
|
||||
|
||||
public static final int DATATYPE_AUDIO = 8;
|
||||
|
||||
public static final int DATATYPE_SCRIPT_DATA = 18;
|
||||
|
||||
public FLVTAG(long timeStamp, SCRIPTDATA data) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
/**
|
||||
@@ -22,6 +23,7 @@ package com.jpexs.decompiler.flash.flv;
|
||||
public class SCRIPTDATADATE {
|
||||
|
||||
public double dateTime;
|
||||
|
||||
public int localDateTimeOffset;
|
||||
|
||||
public SCRIPTDATADATE(double dateTime, int localDateTimeOffset) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
/**
|
||||
@@ -22,6 +23,7 @@ package com.jpexs.decompiler.flash.flv;
|
||||
public class SCRIPTDATAOBJECT {
|
||||
|
||||
public String objectName;
|
||||
|
||||
public SCRIPTDATAVALUE objectData;
|
||||
|
||||
public SCRIPTDATAOBJECT(String objectName, SCRIPTDATAVALUE objectData) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
/**
|
||||
@@ -22,6 +23,7 @@ package com.jpexs.decompiler.flash.flv;
|
||||
public class SCRIPTDATAVALUE {
|
||||
|
||||
public int type;
|
||||
|
||||
public Object value;
|
||||
|
||||
public SCRIPTDATAVALUE(int type, Object value) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
/**
|
||||
@@ -22,6 +23,7 @@ package com.jpexs.decompiler.flash.flv;
|
||||
public class SCRIPTDATAVARIABLE {
|
||||
|
||||
public String variableName;
|
||||
|
||||
public SCRIPTDATAVALUE variableData;
|
||||
|
||||
public SCRIPTDATAVARIABLE(String variableName, SCRIPTDATAVALUE variableData) {
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.␍ */
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
@@ -25,7 +26,9 @@ import java.io.IOException;
|
||||
public class VIDEODATA extends DATA {
|
||||
|
||||
public int frameType;
|
||||
|
||||
public int codecId;
|
||||
|
||||
public byte[] videoData;
|
||||
|
||||
public VIDEODATA(int frameType, int codecId, byte[] videoData) {
|
||||
|
||||
Reference in New Issue
Block a user