Java Code Examples for com.google.android.exoplayer2.util.Util#inflate()
The following examples show how to use
com.google.android.exoplayer2.util.Util#inflate() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProjectionDecoder.java From MediaSDK with Apache License 2.0 | 6 votes |
private static @Nullable ArrayList<Mesh> parseMshp(ParsableByteArray input) { int version = input.readUnsignedByte(); if (version != 0) { return null; } input.skipBytes(7); // flags + crc. int encoding = input.readInt(); if (encoding == TYPE_DFL8) { ParsableByteArray output = new ParsableByteArray(); Inflater inflater = new Inflater(true); try { if (!Util.inflate(input, output, inflater)) { return null; } } finally { inflater.end(); } input = output; } else if (encoding != TYPE_RAW) { return null; } return parseRawMshpData(input); }
Example 2
Source File: ProjectionDecoder.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
private static @Nullable ArrayList<Mesh> parseMshp(ParsableByteArray input) { int version = input.readUnsignedByte(); if (version != 0) { return null; } input.skipBytes(7); // flags + crc. int encoding = input.readInt(); if (encoding == TYPE_DFL8) { ParsableByteArray output = new ParsableByteArray(); Inflater inflater = new Inflater(true); try { if (!Util.inflate(input, output, inflater)) { return null; } } finally { inflater.end(); } input = output; } else if (encoding != TYPE_RAW) { return null; } return parseRawMshpData(input); }
Example 3
Source File: ProjectionDecoder.java From Telegram with GNU General Public License v2.0 | 6 votes |
private static @Nullable ArrayList<Mesh> parseMshp(ParsableByteArray input) { int version = input.readUnsignedByte(); if (version != 0) { return null; } input.skipBytes(7); // flags + crc. int encoding = input.readInt(); if (encoding == TYPE_DFL8) { ParsableByteArray output = new ParsableByteArray(); Inflater inflater = new Inflater(true); try { if (!Util.inflate(input, output, inflater)) { return null; } } finally { inflater.end(); } input = output; } else if (encoding != TYPE_RAW) { return null; } return parseRawMshpData(input); }