package com.nativelibs4java.ffmpeg.avutil;
import org.bridj.Pointer;
import org.bridj.StructObject;
import org.bridj.ann.Field;
import org.bridj.ann.Library;
/**
 * <i>native declaration : libavutil/rational.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("avutil") 
public class AVRational extends StructObject {
	public AVRational() {
		super();
	}
	public AVRational(Pointer pointer) {
		super(pointer);
	}
	/// < numerator
	@Field(0) 
	public int num() {
		return this.io.getIntField(this, 0);
	}
	/// < numerator
	@Field(0) 
	public AVRational num(int num) {
		this.io.setIntField(this, 0, num);
		return this;
	}
	public final int num_$eq(int num) {
		num(num);
		return num;
	}
	/// < denominator
	@Field(1) 
	public int den() {
		return this.io.getIntField(this, 1);
	}
	/// < denominator
	@Field(1) 
	public AVRational den(int den) {
		this.io.setIntField(this, 1, den);
		return this;
	}
	public final int den_$eq(int den) {
		den(den);
		return den;
	}
}
