package com.nativelibs4java.ffmpeg.avcodec;
import org.bridj.Pointer;
import org.bridj.StructObject;
import org.bridj.ann.Field;
import org.bridj.ann.Library;
/**
 * <i>native declaration : libavcodec/avcodec.h</i><br>
 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
 * a tool written by <a href="http://ochafik.free.fr/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
 */
@Library("avcodec") 
public class AVSubtitle extends StructObject {
	public AVSubtitle() {
		super();
	}
	public AVSubtitle(Pointer pointer) {
		super(pointer);
	}
	/// 0 = graphics
	@Field(0) 
	public short format() {
		return this.io.getShortField(this, 0);
	}
	/// 0 = graphics
	@Field(0) 
	public AVSubtitle format(short format) {
		this.io.setShortField(this, 0, format);
		return this;
	}
	public final short format_$eq(short format) {
		format(format);
		return format;
	}
	/// relative to packet pts, in ms
	@Field(1) 
	public int start_display_time() {
		return this.io.getIntField(this, 1);
	}
	/// relative to packet pts, in ms
	@Field(1) 
	public AVSubtitle start_display_time(int start_display_time) {
		this.io.setIntField(this, 1, start_display_time);
		return this;
	}
	public final int start_display_time_$eq(int start_display_time) {
		start_display_time(start_display_time);
		return start_display_time;
	}
	/// relative to packet pts, in ms
	@Field(2) 
	public int end_display_time() {
		return this.io.getIntField(this, 2);
	}
	/// relative to packet pts, in ms
	@Field(2) 
	public AVSubtitle end_display_time(int end_display_time) {
		this.io.setIntField(this, 2, end_display_time);
		return this;
	}
	public final int end_display_time_$eq(int end_display_time) {
		end_display_time(end_display_time);
		return end_display_time;
	}
	@Field(3) 
	public int num_rects() {
		return this.io.getIntField(this, 3);
	}
	@Field(3) 
	public AVSubtitle num_rects(int num_rects) {
		this.io.setIntField(this, 3, num_rects);
		return this;
	}
	public final int num_rects_$eq(int num_rects) {
		num_rects(num_rects);
		return num_rects;
	}
	/// C type : AVSubtitleRect**
	@Field(4) 
	public Pointer<Pointer<AVSubtitleRect > > rects() {
		return this.io.getPointerField(this, 4);
	}
	/// C type : AVSubtitleRect**
	@Field(4) 
	public AVSubtitle rects(Pointer<Pointer<AVSubtitleRect > > rects) {
		this.io.setPointerField(this, 4, rects);
		return this;
	}
	/// C type : AVSubtitleRect**
	public final Pointer<Pointer<AVSubtitleRect > > rects_$eq(Pointer<Pointer<AVSubtitleRect > > rects) {
		rects(rects);
		return rects;
	}
	/// < Same as packet pts, in AV_TIME_BASE
	@Field(5) 
	public long pts() {
		return this.io.getLongField(this, 5);
	}
	/// < Same as packet pts, in AV_TIME_BASE
	@Field(5) 
	public AVSubtitle pts(long pts) {
		this.io.setLongField(this, 5, pts);
		return this;
	}
	public final long pts_$eq(long pts) {
		pts(pts);
		return pts;
	}
}
