std::string H264Codec3d::ToString() const { std::string ret; MAKE_HEX_STRING_2(profile, profile_); MAKE_HEX_STRING_2(level, level_); MAKE_HEX_STRING_16(video_capability_3d, video_capability_3d_); MAKE_HEX_STRING_2(latency,latency_); MAKE_HEX_STRING_4(min_slice_size, min_slice_size_); MAKE_HEX_STRING_4(slice_enc_params, slice_enc_params_); MAKE_HEX_STRING_2(frame_rate_control_support, frame_rate_control_support_); ret = profile + std::string(SPACE) + level + std::string(SPACE) + video_capability_3d + std::string(SPACE) + latency + std::string(SPACE) + min_slice_size + std::string(SPACE) + slice_enc_params + std::string(SPACE) + frame_rate_control_support + std::string(SPACE); if (max_hres_ > 0) { MAKE_HEX_STRING_4(max_hres, max_hres_); ret += max_hres; } else { ret += NONE; } ret += std::string(SPACE); if (max_vres_ > 0) { MAKE_HEX_STRING_4(max_vres, max_vres_); ret += max_vres; } else { ret += NONE; } return ret; }
std::string PreferredDisplayMode::ToString() const { MAKE_HEX_STRING_6(p_clock, p_clock_); MAKE_HEX_STRING_4(h, h_); MAKE_HEX_STRING_4(hb, hb_); MAKE_HEX_STRING_4(hspol_hsoff, hspol_hsoff_); MAKE_HEX_STRING_4(hsw, hsw_); MAKE_HEX_STRING_4(v, v_); MAKE_HEX_STRING_4(vb, vb_); MAKE_HEX_STRING_4(vspol_vsoff, vspol_vsoff_); MAKE_HEX_STRING_4(vsw, vsw_); MAKE_HEX_STRING_2(vbs3d, vbs3d_); MAKE_HEX_STRING_2(modes_2d_s3d, modes_2d_s3d_); MAKE_HEX_STRING_2(p_depth, p_depth_); std::string ret = PropertyName::wfd_preferred_display_mode + std::string(SEMICOLON) + std::string(SPACE) + p_clock + std::string(SPACE) + h + std::string(SPACE) + hb + std::string(SPACE) + hspol_hsoff + std::string(SPACE) + hsw + std::string(SPACE) + v + std::string(SPACE) + vb + std::string(SPACE) + vspol_vsoff + std::string(SPACE) + vsw + std::string(SPACE) + vbs3d + std::string(SPACE) + modes_2d_s3d + std::string(SPACE) + p_depth + std::string(SPACE) + h264_codec_.ToString(); return ret; }