/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
// Returns the Y4M name associated with the monochrome colorspace. staticconstchar *monochrome_colorspace(unsignedint 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. staticconstchar *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";
} elseif (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.