#else/* PNG_POWERPC_VSX_FILE */ # error PNG_POWERPC_VSX_FILE undefined: no support for run-time POWERPC VSX checks #endif/* PNG_POWERPC_VSX_FILE */ #endif/* PNG_POWERPC_VSX_CHECK_SUPPORTED */
void
png_init_filter_functions_vsx(png_structp pp, unsignedint bpp)
{ /* The switch statement is compiled in for POWERPC_VSX_API, the call to *png_have_vsxiscompiledinforPOWERPC_VSX_CHECK.Ifbotharedefined *thecheckisonlyperformediftheAPIhasnotsetthePowerPCoptionon *oroffexplicitly.Inthiscasethecheckcontrolswhathappens.
*/
#ifdef PNG_POWERPC_VSX_API_SUPPORTED switch ((pp->options >> PNG_POWERPC_VSX) & 3)
{ case PNG_OPTION_UNSET: /* Allow the run-time check to execute if it has been enabled - *thusbothAPIandCHECKcanbeturnedon.Ifitisn'tsupported *thiscasewillfallthroughtothe'default'below,whichjust *returns.
*/ #endif/* PNG_POWERPC_VSX_API_SUPPORTED */ #ifdef PNG_POWERPC_VSX_CHECK_SUPPORTED
{ staticvolatile sig_atomic_t no_vsx = -1; /* not checked */
#ifdef PNG_POWERPC_VSX_API_SUPPORTED default: /* OFF or INVALID */ return;
case PNG_OPTION_ON: /* Option turned on */ break;
} #endif
/* IMPORTANT: any new internal functions used here must be declared using *PNG_INTERNAL_FUNCTIONin../pngpriv.h.Thisisrequiredsothatthe *'prefix'optiontoconfigureworks: * *./configure--with-libpng-prefix=foobar_ * *Verifyyouhavegotthisrightbyrunningtheabovecommand,doingabuild *andexaminingpngprefix.h;itmustcontaina#defineforeveryexternal *functionyouadd.(Noticethatthishappensautomaticallyforthe *initializationfunction.)
*/
pp->read_filter[PNG_FILTER_VALUE_UP-1] = png_read_filter_row_up_vsx;
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.