
org.libav.avformat.bridge.AVFormatContext54 Maven / Gradle / Ivy
/*
* Copyright (C) 2012 Ondrej Perutka
*
* This program 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 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. If not, see
* .
*/
package org.libav.avformat.bridge;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
/**
* Mirror of the native AVFormatContext struct from the libavformat v54.x.x.
* This class contains only the public API fields, the real AVFormatContext
* struct is bigger. For details see the Libav documentation.
*
* @author Ondrej Perutka
*/
public class AVFormatContext54 extends Structure {
public static final int MAX_FILENAME_LENGTH = 1024;
public Pointer av_class;
public Pointer iformat;
public Pointer oformat;
public Pointer priv_data;
public Pointer pb;
public int ctx_flags;
public int nb_streams;
public Pointer streams;
public byte[] filename = new byte[MAX_FILENAME_LENGTH];
public long start_time;
public long duration;
public int bit_rate;
public int packet_size;
public int max_delay;
public int flags;
public int probesize;
public int max_analyze_duration;
public Pointer key;
public int keylen;
public int nb_programs;
public Pointer programs;
public int video_codec_id;
public int audio_codec_id;
public int subtitle_codec_id;
public int max_index_size;
public int max_picture_buffer;
public int nb_chapters;
public Pointer chapters;
public Pointer metadata;
public long start_time_realtime;
public int fps_probe_size;
public int error_recognition;
public AVIOInterruptCB interrupt_callback;
public int debug;
public AVFormatContext54() {
super();
initFieldOrder();
}
public AVFormatContext54(Pointer p) {
super(p);
initFieldOrder();
}
private void initFieldOrder() {
setFieldOrder(new String[] {
"av_class",
"iformat",
"oformat",
"priv_data",
"pb",
"ctx_flags",
"nb_streams",
"streams",
"filename",
"start_time",
"duration",
"bit_rate",
"packet_size",
"max_delay",
"flags",
"probesize",
"max_analyze_duration",
"key",
"keylen",
"nb_programs",
"programs",
"video_codec_id",
"audio_codec_id",
"subtitle_codec_id",
"max_index_size",
"max_picture_buffer",
"nb_chapters",
"chapters",
"metadata",
"start_time_realtime",
"fps_probe_size",
"error_recognition",
"interrupt_callback",
"debug",
});
}
public static class ByReference extends AVFormatContext54 implements Structure.ByReference { }
public static class ByValue extends AVFormatContext54 implements Structure.ByValue { }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy