int _set_encoder_element_bitrate(GstElement *encoder, int target_bitrate);
int _get_encoder_element_bitrate(GstElement *encoder, int *target_bitrate);
void _set_video_src_resolution(webrtc_gst_slot_s *source, int width, int height);
+void _set_video_src_origin_resolution(webrtc_gst_slot_s *source, int width, int height);
GstCaps *_make_video_raw_caps_with_resolution(webrtc_gst_slot_s *source, webrtc_ini_s *ini, int width, int height);
void _release_request_pad(webrtc_gst_slot_s *source);
bool _set_default_video_info(webrtc_gst_slot_s *source, const ini_item_media_source_s *ini_source);
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 0.3.251
+Version: 0.3.252
Release: 0
Group: Multimedia/API
License: Apache-2.0
if (!(new_caps = _make_video_raw_caps_with_resolution(source, &webrtc->ini, width, height)))
return WEBRTC_ERROR_INVALID_OPERATION;
- source->video_info.origin_width = width;
- source->video_info.origin_height = height;
+ _set_video_src_origin_resolution(source, width, height);
} else {
bool encoded_support;
_get_video_encoded_support_from_ini(&webrtc->ini, source->type, &encoded_support);
LOG_DEBUG("video resolution is updated. width[%d] height[%d]", width, height);
}
+void _set_video_src_origin_resolution(webrtc_gst_slot_s *source, int width, int height)
+{
+ RET_IF(source == NULL, "source is NULL");
+
+ source->video_info.origin_width = width;
+ source->video_info.origin_height = height;
+
+ LOG_DEBUG("video origin resolution is updated. origin_width[%d] origin_height[%d]", width, height);
+}
+
GstCaps *_make_video_raw_caps_with_resolution(webrtc_gst_slot_s *source, webrtc_ini_s *ini, int width, int height)
{
GstCaps *caps = NULL;
source->video_info.origin_framerate = ini_source->v_framerate;
source->video_info.framerate = ini_source->v_framerate;
- source->video_info.origin_width = ini_source->v_width;
- source->video_info.origin_height = ini_source->v_height;
+ _set_video_src_origin_resolution(source, ini_source->v_width, ini_source->v_height);
_set_video_src_resolution(source, ini_source->v_width, ini_source->v_height);
return true;
RET_IF(width == 0, "width is 0");
RET_IF(height == 0, "height is 0");
- source->video_info.origin_width = width;
- source->video_info.origin_height = height;
-
+ _set_video_src_origin_resolution(source, width, height);
_set_video_src_resolution(source, width, height);
}