mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Reformat with google-java-format
This commit is contained in:
parent
ce0512845f
commit
b2f9c1e252
@ -287,7 +287,8 @@ public final class VobsubParser implements SubtitleParser {
|
|||||||
|| !hasPlane
|
|| !hasPlane
|
||||||
|| !hasColors
|
|| !hasColors
|
||||||
|| boundingBox == null
|
|| boundingBox == null
|
||||||
|| dataOffset0 == C.INDEX_UNSET || dataOffset1 == C.INDEX_UNSET
|
|| dataOffset0 == C.INDEX_UNSET
|
||||||
|
|| dataOffset1 == C.INDEX_UNSET
|
||||||
|| boundingBox.width() < 2
|
|| boundingBox.width() < 2
|
||||||
|| boundingBox.height() < 2) {
|
|| boundingBox.height() < 2) {
|
||||||
return null;
|
return null;
|
||||||
@ -327,7 +328,8 @@ public final class VobsubParser implements SubtitleParser {
|
|||||||
* @param evenInterlace Whether to decode the even or odd interlaced lines.
|
* @param evenInterlace Whether to decode the even or odd interlaced lines.
|
||||||
* @param bitmapData Output array.
|
* @param bitmapData Output array.
|
||||||
*/
|
*/
|
||||||
private void parseRleData(ParsableBitArray bitBuffer, boolean evenInterlace, Rect boundingBox, int[] bitmapData) {
|
private void parseRleData(
|
||||||
|
ParsableBitArray bitBuffer, boolean evenInterlace, Rect boundingBox, int[] bitmapData) {
|
||||||
int width = boundingBox.width();
|
int width = boundingBox.width();
|
||||||
int height = boundingBox.height();
|
int height = boundingBox.height();
|
||||||
int x = 0;
|
int x = 0;
|
||||||
@ -346,7 +348,9 @@ public final class VobsubParser implements SubtitleParser {
|
|||||||
}
|
}
|
||||||
if (x >= width) {
|
if (x >= width) {
|
||||||
y += 2;
|
y += 2;
|
||||||
if (y >= height){ break;}
|
if (y >= height) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
x = 0;
|
x = 0;
|
||||||
outIndex = y * width;
|
outIndex = y * width;
|
||||||
bitBuffer.byteAlign();
|
bitBuffer.byteAlign();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user