static void
dump_info(GstVaapiDisplay *display)
{
    GArray *profiles, *formats;

    profiles = gst_vaapi_display_get_decode_profiles(display);
    if (!profiles)
        g_error("could not get VA decode profiles");

    print_profiles(profiles, "decoders");
    g_array_unref(profiles);

    profiles = gst_vaapi_display_get_encode_profiles(display);
    if (!profiles)
        g_error("could not get VA encode profiles");

    print_profiles(profiles, "encoders");
    g_array_unref(profiles);

    formats = gst_vaapi_display_get_image_formats(display);
    if (!formats)
        g_error("could not get VA image formats");

    print_formats(formats, "image");
    g_array_unref(formats);

    formats = gst_vaapi_display_get_subpicture_formats(display);
    if (!formats)
        g_error("could not get VA subpicture formats");

    print_formats(formats, "subpicture");
    g_array_unref(formats);

    dump_properties(display);
}
示例#2
0
文件: if-bt.c 项目: BirdAndEarth/RPi
static void device_found_cb(int num_properties, bt_property_t *properties)
{
	haltest_info("%s: num_properties=%d\n", __func__, num_properties);

	add_remote_device_from_props(num_properties, properties);

	dump_properties(num_properties, properties);
}
示例#3
0
文件: if-bt.c 项目: BirdAndEarth/RPi
static void adapter_properties_cb(bt_status_t status, int num_properties,
						bt_property_t *properties)
{
	haltest_info("%s: status=%s num_properties=%d\n", __func__,
				bt_status_t2str(status), num_properties);

	dump_properties(num_properties, properties);
}
示例#4
0
文件: if-bt.c 项目: BirdAndEarth/RPi
static void remote_device_properties_cb(bt_status_t status,
					bt_bdaddr_t *bd_addr,
					int num_properties,
					bt_property_t *properties)
{
	haltest_info("%s: status=%s bd_addr=%s num_properties=%d\n", __func__,
			bt_status_t2str(status), bdaddr2str(bd_addr),
			num_properties);

	add_remote_device(bd_addr);

	dump_properties(num_properties, properties);
}
示例#5
0
文件: project.C 项目: gnb/cant
void
project_t::dump() const
{
    fprintf(stderr, "PROJECT {\n");
    fprintf(stderr, "    NAME=\"%s\"\n", name());
    fprintf(stderr, "    DESCRIPTION=\"%s\"\n", description());
    fprintf(stderr, "    DEFAULT=\"%s\"\n", default_target());
    fprintf(stderr, "    BASEDIR=\"%s\"\n", basedir());
    targets_->foreach(dump_one_target, 0);
    taglists_->foreach(dump_one_taglist, 0);
    filesets_->foreach(dump_one_fileset, 0);
    dump_properties();
    fprintf(stderr, "}\n");
}