"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/AV/Output/VideoEncoder.cpp" between
ssr-0.3.10.tar.gz and ssr-0.3.11.tar.gz

About: SimpleScreenRecorder is a screen (video-audio) recorder for Linux.

VideoEncoder.cpp  (ssr-0.3.10):VideoEncoder.cpp  (ssr-0.3.11)
skipping to change at line 133 skipping to change at line 133
stream->sample_aspect_ratio = codec_context->sample_aspect_ratio; stream->sample_aspect_ratio = codec_context->sample_aspect_ratio;
codec_context->thread_count = std::max(1, (int) std::thread::hardware_con currency()); codec_context->thread_count = std::max(1, (int) std::thread::hardware_con currency());
// parse options // parse options
QString pixel_format_name; QString pixel_format_name;
for(unsigned int i = 0; i < codec_options.size(); ++i) { for(unsigned int i = 0; i < codec_options.size(); ++i) {
const QString &key = codec_options[i].first, &value = codec_optio ns[i].second; const QString &key = codec_options[i].first, &value = codec_optio ns[i].second;
if(key == "threads") { if(key == "threads") {
codec_context->thread_count = ParseCodecOptionInt(key, va lue, 1, 100); codec_context->thread_count = ParseCodecOptionInt(key, va lue, 1, 100);
} else if(key == "qscale") { } else if(key == "qscale") {
codec_context->flags |= CODEC_FLAG_QSCALE; codec_context->flags |= AV_CODEC_FLAG_QSCALE;
codec_context->global_quality = lrint(ParseCodecOptionDou ble(key, value, -1.0e6, 1.0e6, FF_QP2LAMBDA)); codec_context->global_quality = lrint(ParseCodecOptionDou ble(key, value, -1.0e6, 1.0e6, FF_QP2LAMBDA));
} else if(key == "minrate") { } else if(key == "minrate") {
codec_context->rc_min_rate = ParseCodecOptionInt(key, val ue, 1, 1000000, 1000); // kbit/s codec_context->rc_min_rate = ParseCodecOptionInt(key, val ue, 1, 1000000, 1000); // kbit/s
} else if(key == "maxrate") { } else if(key == "maxrate") {
codec_context->rc_max_rate = ParseCodecOptionInt(key, val ue, 1, 1000000, 1000); // kbit/s codec_context->rc_max_rate = ParseCodecOptionInt(key, val ue, 1, 1000000, 1000); // kbit/s
} else if(key == "bufsize") { } else if(key == "bufsize") {
codec_context->rc_buffer_size = ParseCodecOptionInt(key, value, 1, 1000000, 1000); // kbit/s codec_context->rc_buffer_size = ParseCodecOptionInt(key, value, 1, 1000000, 1000); // kbit/s
} else if(key == "keyint") { } else if(key == "keyint") {
codec_context->gop_size = ParseCodecOptionInt(key, value, 1, 1000000); codec_context->gop_size = ParseCodecOptionInt(key, value, 1, 1000000);
} else if(key == "pixelformat") { } else if(key == "pixelformat") {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)