28 lines
656 B
Java
28 lines
656 B
Java
/*
|
|
* Copyright 2019 Zhou Pengfei
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
package org.signal.glide.apng.decode;
|
|
|
|
import org.signal.glide.apng.io.APNGReader;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* @Description: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/APNG#.27acTL.27:_The_Animation_Control_Chunk
|
|
* @Author: pengfei.zhou
|
|
* @CreateDate: 2019/3/27
|
|
*/
|
|
class ACTLChunk extends Chunk {
|
|
static final int ID = fourCCToInt("acTL");
|
|
int num_frames;
|
|
int num_plays;
|
|
|
|
@Override
|
|
void innerParse(APNGReader apngReader) throws IOException {
|
|
num_frames = apngReader.readInt();
|
|
num_plays = apngReader.readInt();
|
|
}
|
|
}
|