// Returns the Y4M name associated with the monochrome colorspace. staticconst char *monochrome_colorspace(unsigned int bit_depth) { switch (bit_depth) { case8: return"Cmono"; case9: return"Cmono9"; case10: return"Cmono10"; case12: return"Cmono12"; case16: return"Cmono16"; default: assert(0); return NULL;
}
}
// Return the Y4M name of the 8-bit colorspace, given the chroma position and // image format. staticconst char *colorspace8(aom_chroma_sample_position_t csp,
aom_img_fmt_t fmt) { switch (fmt) { case AOM_IMG_FMT_I444: return"C444"; case AOM_IMG_FMT_I422: return"C422"; default:
if (csp == AOM_CSP_VERTICAL) { return"C420mpeg2 XYSCSS=420MPEG2";
} else if (csp == AOM_CSP_COLOCATED) { // Note that Y4M does not have a dedicated header for colocated chroma, // and that FFMPEG interprets C420 as C420jpeg. return"C420";
} else { return"C420jpeg";
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.