/*
BitmapCanvasShortGreyscale.java
(c) 2013-2014 Edward Swartz
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
*/
package v9t9.video;
/**
* Render video content into a short array
* @author ejs
*
*/
public class BufferCanvasShortGreyscale extends BufferCanvasShort {
/* (non-Javadoc)
* @see v9t9.video.IGLDataCanvas#getImageType()
*/
@Override
public int getImageType() {
return GL_UNSIGNED_SHORT_5_6_5;
}
/* (non-Javadoc)
* @see v9t9.video.IGLDataCanvas#getImageFormat()
*/
@Override
public int getImageFormat() {
return GL_RGB;
}
/* (non-Javadoc)
* @see v9t9.video.IGLDataCanvas#getInternalFormat()
*/
@Override
public int getInternalFormat() {
return GL_LUMINANCE12_ALPHA4;
}
}