All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mp4parser.muxer.tracks.h265.SEIMessage Maven / Gradle / Ivy

Go to download

This package has a focus on file operation. It can read A/V data from Random Access Datasources

There is a newer version: 1.9.56
Show newest version
package org.mp4parser.muxer.tracks.h265;

import org.mp4parser.boxes.iso14496.part1.objectdescriptors.BitReaderBuffer;

import java.io.IOException;

/**
 * Created by sannies on 03.02.2015.
 */
public class SEIMessage {
    public SEIMessage(BitReaderBuffer bsr) throws IOException {
        int payloadType = 0;
        long ff_byte;
        while ((ff_byte = bsr.readBits(8)) == 0xFF) {
            payloadType += 255;
        }
        int last_payload_type_byte = (int) bsr.readBits(8);
        payloadType += last_payload_type_byte;
        int payloadSize = 0;
        while ((ff_byte = bsr.readBits(8)) == 0xFF) {
            payloadSize += 255;
        }
        int last_payload_size_byte = (int) bsr.readBits(8);
        payloadSize += last_payload_size_byte;
        System.err.println("payloadType " + payloadType);
        //sei_payload(payloadType, payloadSize );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy