colormodel.java
来自「基于MPEG 7 标准,符合未来语义网架构,很值得参考」· Java 代码 · 共 68 行
JAVA
68 行
/*
* This file is part of Caliph & Emir.
*
* Caliph & Emir is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Caliph & Emir 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Caliph & Emir; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright statement:
* --------------------
* (c) 2002-2005 by VizIR project.
* Please contact Horst Eidenberger (hme@ims.tuwien.ac.at)
* for more information.
*
* Mathias Lux, mathias@juggle.at, http://www.juggle.at
*/
package org.vizir.media;
/**
* Description: Class representing the color model of media data. Currently,
* only RGB and YUV are supported.
*
* @author flo ledermann ledermann@ims.tuwien.ac.at
* @version $Id: ColorModel.java,v 1.2 2005/05/17 22:00:47 motte Exp $
*/
public class ColorModel {
/**
* RGB color space.
*/
public static final int RGB = 0;
/**
* YUV color space.
*/
public static final int YUV = 1;
private int colorSpace;
/**
* Creates a new color model.
*
* @param colorSpace The color space, either RGB or YUV.
*/
public ColorModel(int colorSpace) {
this.colorSpace = colorSpace;
}
/**
* Returns the color space.
*
* @return The color space, either RGB or YUV.
*/
public int getColorSpace() {
return colorSpace;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?