If you think the Android project AndroidVideoSamples listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.roryhool.commonvideolibrary;
/*www.java2s.com*/publicclass Resolution {
publicstaticfinal Resolution RESOLUTION_1080P = new Resolution( 1920, 1080 );
publicstaticfinal Resolution RESOLUTION_720P = new Resolution( 1280, 720 );
publicstaticfinal Resolution RESOLUTION_480P = new Resolution( 740, 480 );
publicstaticfinal Resolution RESOLUTION_360P = new Resolution( 640, 360 );
publicstaticfinal Resolution RESOLUTION_QVGA = new Resolution( 320, 240 );
publicstaticfinal Resolution RESOLUTION_QCIF = new Resolution( 176, 144 );
int mWidth;
int mHeight;
public Resolution( int width, int height ) {
mWidth = width;
mHeight = height;
}
publicint getWidth() {
return mWidth;
}
publicvoid setWidth( int width ) {
mWidth = width;
}
publicint getHeight() {
return mHeight;
}
publicvoid setHeight( int height ) {
mHeight = height;
}
public Resolution rotate() {
returnnew Resolution( mHeight, mWidth );
}
}