FileDocCategorySizeDatePackage
ChromaFormat.javaAPI Docmp4parser 1.0-RC-172498Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser.h264.model

ChromaFormat

public class ChromaFormat extends Object
Chroma format enum
author
Stanislav Vitvitskiy

Fields Summary
public static ChromaFormat
MONOCHROME
public static ChromaFormat
YUV_420
public static ChromaFormat
YUV_422
public static ChromaFormat
YUV_444
private int
id
private int
subWidth
private int
subHeight
Constructors Summary
public ChromaFormat(int id, int subWidth, int subHeight)


           
        this.id = id;
        this.subWidth = subWidth;
        this.subHeight = subHeight;
    
Methods Summary
public static com.googlecode.mp4parser.h264.model.ChromaFormatfromId(int id)

        if (id == MONOCHROME.id) {
            return MONOCHROME;
        } else if (id == YUV_420.id) {
            return YUV_420;
        } else if (id == YUV_422.id) {
            return YUV_422;
        } else if (id == YUV_444.id) {
            return YUV_444;
        }
        return null;
    
public intgetId()

        return id;
    
public intgetSubHeight()

        return subHeight;
    
public intgetSubWidth()

        return subWidth;
    
public java.lang.StringtoString()

        return "ChromaFormat{" + "\n" +
                "id=" + id + ",\n" +
                " subWidth=" + subWidth + ",\n" +
                " subHeight=" + subHeight +
                '}";