New upstream version 22.0.3+dfsg1

This commit is contained in:
Sebastian Ramacher 2018-12-16 17:14:58 +01:00
parent 665f64a933
commit cdc9a9fc87
334 changed files with 14525 additions and 2639 deletions

View file

@ -424,11 +424,12 @@ static void vt_h264_video_info(void *data, struct video_scale_info *info)
enc->vt_pix_fmt = enc->fullrange ?
kCVPixelFormatType_420YpCbCr8PlanarFullRange
: kCVPixelFormatType_420YpCbCr8Planar;
} else if (info->format == VIDEO_FORMAT_I444) {
enc->obs_pix_fmt = info->format;
enc->vt_pix_fmt = kCVPixelFormatType_444YpCbCr10;
return;
}
if (info->format == VIDEO_FORMAT_I444)
VT_BLOG(LOG_WARNING, "I444 color format not supported");
// Anything else, return default
enc->obs_pix_fmt = VIDEO_FORMAT_NV12;
enc->vt_pix_fmt = enc->fullrange ?
@ -445,11 +446,12 @@ static void update_params(struct vt_h264_encoder *enc, obs_data_t *settings)
struct video_scale_info info = { .format = voi->format };
enc->fullrange = voi->range == VIDEO_RANGE_FULL;
// also sets the enc->vt_pix_fmt
vt_h264_video_info(enc, &info);
enc->colorspace = voi->colorspace;
enc->fullrange = voi->range == VIDEO_RANGE_FULL;
enc->width = obs_encoder_get_width(enc->encoder);
enc->height = obs_encoder_get_height(enc->encoder);