this.id = id; this.subWidth = subWidth; this.subHeight = subHeight;
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;
return id;
return subHeight;
return subWidth;
return "ChromaFormat{" + "\n" + "id=" + id + ",\n" + " subWidth=" + subWidth + ",\n" + " subHeight=" + subHeight + '}";