Void printMacroSettings() { std::cout << "Non-environment-variable-controlled macros set as follows: \n" << std::endl; //------------------------------------------------ //setting macros PRINT_CONSTANT(RExt__DECODER_DEBUG_BIT_STATISTICS, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__HIGH_BIT_DEPTH_SUPPORT, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__HIGH_PRECISION_FORWARD_TRANSFORM, settingNameWidth, settingValueWidth); PRINT_CONSTANT(O0043_BEST_EFFORT_DECODING, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RD_TEST_SAO_DISABLE_AT_PICTURE_LEVEL, settingNameWidth, settingValueWidth); //------------------------------------------------ std::cout << std::endl; }
Void printRExtMacroSettings() { std::cout << "RExt Non-environment-variable-controlled macros set as follows: \n" << std::endl; //------------------------------------------------ //setting macros PRINT_CONSTANT(RExt__DECODER_DEBUG_BIT_STATISTICS, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__HIGH_BIT_DEPTH_SUPPORT, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__HIGH_PRECISION_FORWARD_TRANSFORM, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__O0043_BEST_EFFORT_DECODING, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__BACKWARDS_COMPATIBILITY_HM_TICKET_1149, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__BACKWARDS_COMPATIBILITY_HM_TICKET_1298, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__BACKWARDS_COMPATIBILITY_RBSP_EMULATION_PREVENTION, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__BACKWARDS_COMPATIBILITY_MOTION_ESTIMATION_R0105, settingNameWidth, settingValueWidth); //------------------------------------------------ std::cout << std::endl; }
int main(void) { printf("Module: system-internals\n"); printf("License: Public Domain\n"); printf("\n// WARNING! This file is generated!\n"); PRINT_USEDBY("file-system/unix-ffi.dylan"); PRINT_CONSTANT(ENOENT, "ENOENT"); PRINT_CONSTANT(EINTR, "EINTR"); PRINT_CONSTANT(EACCES, "EACCES"); PRINT_CONSTANT(EINVAL, "EINVAL"); PRINT_CONSTANT(ETXTBSY, "ETXTBSY"); PRINT_CONSTANT(EROFS, "EROFS"); PRINT_SIZEOF(struct stat, "stat"); PRINT_OFFSETOF(struct stat, st_mode, "st-mode"); PRINT_OFFSETOF(struct stat, st_uid, "st-uid"); PRINT_OFFSETOF(struct stat, st_gid, "st-gid"); PRINT_OFFSETOF(struct stat, st_size, "st-size"); PRINT_OFFSETOF(struct stat, st_atime, "st-atime"); PRINT_OFFSETOF(struct stat, st_mtime, "st-mtime"); PRINT_OFFSETOF(struct stat, st_ctime, "st-ctime"); PRINT_OFFSETOF(struct passwd, pw_name, "pw-name"); PRINT_OFFSETOF(struct passwd, pw_dir, "pw-dir"); PRINT_OFFSETOF(struct group, gr_name, "gr-name"); PRINT_USEDBY("unix-date-interface.dylan"); PRINT_OFFSETOF(struct tm, tm_sec, "tm-sec"); PRINT_OFFSETOF(struct tm, tm_min, "tm-min"); PRINT_OFFSETOF(struct tm, tm_hour, "tm-hour"); PRINT_OFFSETOF(struct tm, tm_mday, "tm-mday"); PRINT_OFFSETOF(struct tm, tm_mon, "tm-mon"); PRINT_OFFSETOF(struct tm, tm_year, "tm-year"); PRINT_OFFSETOF(struct tm, tm_isdst, "tm-isdst"); PRINT_OFFSETOF(struct tm, tm_gmtoff, "tm-gmtoff"); PRINT_OFFSETOF(struct tm, tm_zone, "tm-zone"); return 0; }
Void printMacroSettings() { std::cout << "Non-environment-variable-controlled macros set as follows: \n" << std::endl; //------------------------------------------------ //setting macros PRINT_CONSTANT(RExt__DECODER_DEBUG_BIT_STATISTICS, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__HIGH_BIT_DEPTH_SUPPORT, settingNameWidth, settingValueWidth); PRINT_CONSTANT(RExt__HIGH_PRECISION_FORWARD_TRANSFORM, settingNameWidth, settingValueWidth); PRINT_CONSTANT(O0043_BEST_EFFORT_DECODING, settingNameWidth, settingValueWidth); PRINT_CONSTANT(ME_ENABLE_ROUNDING_OF_MVS, settingNameWidth, settingValueWidth); PRINT_CONSTANT(U0040_MODIFIED_WEIGHTEDPREDICTION_WITH_BIPRED_AND_CLIPPING, settingNameWidth, settingValueWidth); //------------------------------------------------ std::cout << std::endl; }
static void print_constants(void) { PRINT_CONSTANT(CODA_MAX_NUM_DIMS, i); PRINT_EMPTY; PRINT_CONSTANT(CODA_SUCCESS, i); PRINT_CONSTANT(CODA_ERROR_OUT_OF_MEMORY, i); PRINT_CONSTANT(CODA_ERROR_HDF4, i); PRINT_CONSTANT(CODA_ERROR_NO_HDF4_SUPPORT, i); PRINT_CONSTANT(CODA_ERROR_HDF5, i); PRINT_CONSTANT(CODA_ERROR_NO_HDF5_SUPPORT, i); PRINT_CONSTANT(CODA_ERROR_XML, i); PRINT_CONSTANT(CODA_ERROR_FILE_NOT_FOUND, i); PRINT_CONSTANT(CODA_ERROR_FILE_OPEN, i); PRINT_CONSTANT(CODA_ERROR_FILE_READ, i); PRINT_CONSTANT(CODA_ERROR_FILE_WRITE, i); PRINT_CONSTANT(CODA_ERROR_INVALID_ARGUMENT, i); PRINT_CONSTANT(CODA_ERROR_INVALID_INDEX, i); PRINT_CONSTANT(CODA_ERROR_INVALID_NAME, i); PRINT_CONSTANT(CODA_ERROR_INVALID_FORMAT, i); PRINT_CONSTANT(CODA_ERROR_INVALID_DATETIME, i); PRINT_CONSTANT(CODA_ERROR_INVALID_TYPE, i); PRINT_CONSTANT(CODA_ERROR_ARRAY_NUM_DIMS_MISMATCH, i); PRINT_CONSTANT(CODA_ERROR_ARRAY_OUT_OF_BOUNDS, i); PRINT_CONSTANT(CODA_ERROR_NO_PARENT, i); PRINT_CONSTANT(CODA_ERROR_UNSUPPORTED_PRODUCT, i); PRINT_CONSTANT(CODA_ERROR_PRODUCT, i); PRINT_CONSTANT(CODA_ERROR_OUT_OF_BOUNDS_READ, i); PRINT_CONSTANT(CODA_ERROR_DATA_DEFINITION, i); PRINT_CONSTANT(CODA_ERROR_EXPRESSION, i); PRINT_EMPTY; PRINT_CONSTANT(coda_array_ordering_c, i); PRINT_CONSTANT(coda_array_ordering_fortran, i); PRINT_EMPTY; PRINT_CONSTANT(coda_ffs_error, i); PRINT_CONSTANT(coda_ffs_could_not_open_file, i); PRINT_CONSTANT(coda_ffs_could_not_access_directory, i); PRINT_CONSTANT(coda_ffs_unsupported_file, i); PRINT_CONSTANT(coda_ffs_match, i); PRINT_CONSTANT(coda_ffs_no_match, i); PRINT_EMPTY; PRINT_CONSTANT(coda_format_ascii, i); PRINT_CONSTANT(coda_format_binary, i); PRINT_CONSTANT(coda_format_xml, i); PRINT_CONSTANT(coda_format_hdf4, i); PRINT_CONSTANT(coda_format_hdf5, i); PRINT_CONSTANT(coda_format_cdf, i); PRINT_CONSTANT(coda_format_netcdf, i); PRINT_CONSTANT(coda_format_grib1, i); PRINT_CONSTANT(coda_format_grib2, i); PRINT_CONSTANT(coda_format_rinex, i); PRINT_CONSTANT(coda_format_sp3, i); PRINT_EMPTY; PRINT_CONSTANT(coda_record_class, i); PRINT_CONSTANT(coda_array_class, i); PRINT_CONSTANT(coda_integer_class, i); PRINT_CONSTANT(coda_real_class, i); PRINT_CONSTANT(coda_text_class, i); PRINT_CONSTANT(coda_raw_class, i); PRINT_CONSTANT(coda_special_class, i); PRINT_EMPTY; PRINT_CONSTANT(coda_special_no_data, i); PRINT_CONSTANT(coda_special_vsf_integer, i); PRINT_CONSTANT(coda_special_time, i); PRINT_CONSTANT(coda_special_complex, i); PRINT_EMPTY; PRINT_CONSTANT(coda_native_type_not_available, i); PRINT_CONSTANT(coda_native_type_int8, i); PRINT_CONSTANT(coda_native_type_uint8, i); PRINT_CONSTANT(coda_native_type_int16, i); PRINT_CONSTANT(coda_native_type_uint16, i); PRINT_CONSTANT(coda_native_type_int32, i); PRINT_CONSTANT(coda_native_type_uint32, i); PRINT_CONSTANT(coda_native_type_int64, i); PRINT_CONSTANT(coda_native_type_uint64, i); PRINT_CONSTANT(coda_native_type_float, i); PRINT_CONSTANT(coda_native_type_double, i); PRINT_CONSTANT(coda_native_type_char, i); PRINT_CONSTANT(coda_native_type_string, i); PRINT_CONSTANT(coda_native_type_bytes, i); }
/* ======================== getDriverInfoString fills the GL info widget with text ======================== */ QString CGLWidget::getDriverInfoString( void ) const { // the context must be valied! if( !context()->isValid() ) return QString( "<invalid OpenGL context>" ); // read OpenGL infos QString text; text += tr( "Vendor: %1\n" ).arg( (const char*)glGetString( GL_VENDOR ) ); text += tr( "Renderer: %1\n" ).arg( (const char*)glGetString( GL_RENDERER ) ); text += tr( "Version: %1\n" ).arg( (const char*)glGetString( GL_VERSION ) ); text += tr( "\n" ); // print framebuffer format QGLFormat fmt = context()->format(); text += tr( "Framebuffer Format:\n" ); text += tr( " RGBA bits: (%1,%2,%3,%4)\n" ). arg( fmt.redBufferSize() ). arg( fmt.greenBufferSize() ). arg( fmt.blueBufferSize() ). arg( fmt.alphaBufferSize() ); text += tr( " Depth bits: %1\n" ).arg( fmt.depthBufferSize() ); text += tr( " Stencil bits: %1\n" ).arg( fmt.stencilBufferSize() ); text += tr( "\n" ); // shading language version if( fmt.openGLVersionFlags() & fmt.OpenGL_Version_2_0 ) { QString version( (const char*)glGetString( GL_SHADING_LANGUAGE_VERSION ) ); text += QString( "Shading Language Version: %1\n" ).arg( version ); } // check for geometry shader bool hasGeoShader = false; #ifdef CONFIG_ENABLE_GEOMETRY_SHADER hasGeoShader = ( NULL != strstr( (const char*)glGetString( GL_EXTENSIONS ), "GL_EXT_geometry_shader4" ) ); if( hasGeoShader ) { text += tr( "GL_EXT_geometry_shader4 available\n" ); } else { text += tr( "GL_EXT_geometry_shader4 not supported\n" ); } #endif text += tr( "\n" ); GLint i; #define PRINT_CONSTANT(Name) \ glGetIntegerv( Name, &i ); \ text += tr( #Name " = %1\n" ).arg( i ); PRINT_CONSTANT( GL_MAX_TEXTURE_SIZE ); PRINT_CONSTANT( GL_MAX_TEXTURE_UNITS ); PRINT_CONSTANT( GL_MAX_VERTEX_ATTRIBS ); PRINT_CONSTANT( GL_MAX_VERTEX_UNIFORM_COMPONENTS ); PRINT_CONSTANT( GL_MAX_VARYING_FLOATS ); // alias for GL_MAX_VARYING_COMPONENTS_EXT PRINT_CONSTANT( GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS ); PRINT_CONSTANT( GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS ); PRINT_CONSTANT( GL_MAX_TEXTURE_IMAGE_UNITS ); PRINT_CONSTANT( GL_MAX_TEXTURE_COORDS ); PRINT_CONSTANT( GL_MAX_FRAGMENT_UNIFORM_COMPONENTS ); if( hasGeoShader ) { PRINT_CONSTANT( GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT ); PRINT_CONSTANT( GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT ); PRINT_CONSTANT( GL_MAX_VERTEX_VARYING_COMPONENTS_EXT ); PRINT_CONSTANT( GL_MAX_VARYING_COMPONENTS_EXT ); PRINT_CONSTANT( GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT) ; PRINT_CONSTANT( GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT ); PRINT_CONSTANT( GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT ); } #undef PRINT_CONSTANT return text; }