QString PageOutput::GetVideoCodecAVName() { enum_video_codec video_codec = GetVideoCodec(); if(video_codec != VIDEO_CODEC_OTHER) return m_video_codecs[video_codec].avname; else return m_video_codecs_av[GetVideoCodecAV()].avname; }
void PageOutput::OnUpdateVideoCodecFields() { enum_video_codec codec = GetVideoCodec(); MultiGroupVisible({ {{m_label_video_kbit_rate, m_lineedit_video_kbit_rate}, (codec != VIDEO_CODEC_H264)}, {{m_label_h264_crf, m_slider_h264_crf, m_label_h264_crf_value, m_label_h264_preset, m_combobox_h264_preset}, (codec == VIDEO_CODEC_H264)}, {{m_label_vp8_cpu_used, m_combobox_vp8_cpu_used}, (codec == VIDEO_CODEC_VP8)}, {{m_label_video_codec_av, m_combobox_video_codec_av, m_label_video_options, m_lineedit_video_options}, (codec == VIDEO_CODEC_OTHER)}, }); }
void CheckOtherFbExists(const JsepTrack& track, SdpRtcpFbAttributeList::Type type) const { const JsepVideoCodecDescription* videoCodec = GetVideoCodec(track); ASSERT_NE(videoCodec, nullptr); for (const auto& fb : videoCodec->mOtherFbTypes) { if (fb.type == type) { return; // found the RtcpFb type, so stop looking } } FAIL(); // RtcpFb type not found }
void PageOutput::SaveProfileSettings(QSettings* settings) { settings->setValue("output/file", GetFile()); settings->setValue("output/separate_files", GetSeparateFiles()); settings->setValue("output/container", EnumToString(GetContainer())); settings->setValue("output/container_av", m_containers_av[GetContainerAV()].avname); settings->setValue("output/video_codec", EnumToString(GetVideoCodec())); settings->setValue("output/video_codec_av", m_video_codecs_av[GetVideoCodecAV()].avname); settings->setValue("output/video_kbit_rate", GetVideoKBitRate()); settings->setValue("output/video_h264_crf", GetH264CRF()); settings->setValue("output/video_h264_preset", GetH264Preset()); settings->setValue("output/video_vp8_cpu_used", GetVP8CPUUsed()); settings->setValue("output/video_options", GetVideoOptions()); settings->setValue("output/video_allow_frame_skipping", GetVideoAllowFrameSkipping()); settings->setValue("output/audio_codec", EnumToString(GetAudioCodec())); settings->setValue("output/audio_codec_av", m_audio_codecs_av[GetAudioCodecAV()].avname); settings->setValue("output/audio_kbit_rate", GetAudioKBitRate()); settings->setValue("output/audio_options", GetAudioOptions()); }
void CheckOtherFbsSize(const JsepTrack& track, size_t expected) const { const JsepVideoCodecDescription* videoCodec = GetVideoCodec(track); ASSERT_NE(videoCodec, nullptr); ASSERT_EQ(videoCodec->mOtherFbTypes.size(), expected); }