}
}
+//LCOV_EXCL_START
LOG_ERROR_IF_REACHED("invalid camera_factory_name(%s)", camera_factory_name);
return WEBRTC_ERROR_INVALID_OPERATION;
}
RET_VAL_IF(prefix == NULL, NULL, "prefix is NULL");
return g_strdup_printf("%s%u", prefix, device_id);
}
+//LCOV_EXCL_STOP
static int __validate_source_and_get_camera_device_type(webrtc_s *webrtc, unsigned int source_id, camera_device_type_e *type, GstElement **camerasrc)
{
LOG_DEBUG("device prop[name:%s, value:%d]", __camera_infos[type].device_prop_name, (gint)device_id);
g_object_set(G_OBJECT(camerasrc), __camera_infos[type].device_prop_name, (gint)device_id, NULL);
break;
+//LCOV_EXCL_START
case CAMERA_DEVICE_PROP_VAL_TYPE_STRING: {
gchar *device_prop_value = __get_device_prop_value_string(__camera_infos[type].device_prop_value_prefix, device_id);
LOG_DEBUG("device prop[name:%s, value:%s]", __camera_infos[type].device_prop_name, device_prop_value);
LOG_ERROR_IF_REACHED("invalid device_prop_value_type(%d)", __camera_infos[type].device_prop_value_type);
return WEBRTC_ERROR_INVALID_OPERATION;
}
+//LCOV_EXCL_STOP
LOG_INFO("source_id[%u], device_id[%u]", source_id, device_id);
*device_id = (unsigned int)id;
break;
}
+//LCOV_EXCL_START
case CAMERA_DEVICE_PROP_VAL_TYPE_STRING: {
g_autofree gchar *id_str = NULL;
g_auto(GStrv) tokens = NULL;
LOG_ERROR_IF_REACHED("invalid device_prop_value_type(%d)", __camera_infos[type].device_prop_value_type);
return WEBRTC_ERROR_INVALID_OPERATION;
}
+//LCOV_EXCL_STOP
LOG_INFO("source_id[%u], device_id[%u]", source_id, *device_id);
return MEDIA_TYPE_VIDEO_VP8;
if (!strcmp(codec_name, "vp9") || !strcmp(codec_name, "VP9"))
return MEDIA_TYPE_VIDEO_VP9;
+//LCOV_EXCL_START
if (!strcmp(codec_name, "theora") || !strcmp(codec_name, "THEORA"))
return MEDIA_TYPE_VIDEO_THEORA;
if (!strcmp(codec_name, "h264") || !strcmp(codec_name, "H264"))
LOG_ERROR("not supported video codec_name[%s]", codec_name);
return NULL;
+//LCOV_EXCL_STOP
}
static GstAudioFormat __get_gst_audio_raw_format_from_string(const char *format)
return ret;
}
+//LCOV_EXCL_START
webrtc_transceiver_encoding_s *_find_encoding_by_ssrc(GHashTable *encodings, int ssrc)
{
GHashTableIter iter;
}
return NULL;
}
+//LCOV_EXCL_STOP
static GstCaps *__make_default_raw_caps(webrtc_gst_slot_s *source, int ssrc, webrtc_ini_s *ini)
{
LOG_DEBUG("video origin resolution is updated. origin_width[%d] origin_height[%d]", width, height);
}
+//LCOV_EXCL_START
GstCaps *_make_video_raw_caps_with_resolution(webrtc_gst_slot_s *source, webrtc_ini_s *ini, int width, int height)
{
GstCaps *caps = NULL;
return caps;
}
+//LCOV_EXCL_STOP
static gboolean __foreach_src_pad_cb(GstElement *element, GstPad *pad, gpointer user_data)
{