Skip to content

Commit

Permalink
Don't add new tractor function, simply duplicate the list of wanted p…
Browse files Browse the repository at this point in the history
…roperties to pass
  • Loading branch information
j-b-m committed Jul 23, 2023
1 parent 6bc8642 commit 0f7438a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/framework/mlt.vers
Original file line number Diff line number Diff line change
Expand Up @@ -680,5 +680,4 @@ MLT_7.16.0 {
MLT_7.18.0 {
global:
mlt_audio_free_data;
mlt_tractor_passthrough_properties;
} MLT_7.16.0;
7 changes: 1 addition & 6 deletions src/framework/mlt_tractor.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,6 @@ mlt_producer mlt_tractor_get_track(mlt_tractor self, int index)
return mlt_multitrack_track(mlt_tractor_multitrack(self), index);
}

const char *mlt_tractor_passthrough_properties()
{
return "progressive,progressive,distort,colorspace,full_range,force_full_luma,top_field_first,color_trc";
}

static int producer_get_image(mlt_frame self,
uint8_t **buffer,
mlt_image_format *format,
Expand Down Expand Up @@ -386,7 +381,7 @@ static int producer_get_image(mlt_frame self,
mlt_properties_set_int(properties, "format", *format);
mlt_properties_set_double(properties, "aspect_ratio", mlt_frame_get_aspect_ratio(frame));
// Pass all required frame properties
mlt_properties_pass_list(properties, frame_properties, mlt_tractor_passthrough_properties());
mlt_properties_pass_list(properties, frame_properties, "progressive,distort,colorspace,full_range,force_full_luma,top_field_first,color_trc");

mlt_properties_set_data(properties,
"movit.convert.fence",
Expand Down
1 change: 0 additions & 1 deletion src/framework/mlt_tractor.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ extern mlt_field mlt_tractor_field(mlt_tractor self);
extern mlt_multitrack mlt_tractor_multitrack(mlt_tractor self);
extern int mlt_tractor_connect(mlt_tractor self, mlt_service service);
extern void mlt_tractor_refresh(mlt_tractor self);
extern const char *mlt_tractor_passthrough_properties();
extern int mlt_tractor_set_track(mlt_tractor self, mlt_producer producer, int index);
extern int mlt_tractor_insert_track(mlt_tractor self, mlt_producer producer, int index);
extern int mlt_tractor_remove_track(mlt_tractor self, int index);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/frei0r/transition_frei0r.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static int transition_get_image(mlt_frame a_frame,
error = mlt_frame_get_image(a_frame, image, format, width, height, 0);
} else {
// Pass all required frame properties
mlt_properties_pass_list(a_props, b_props, mlt_tractor_passthrough_properties());
mlt_properties_pass_list(a_props, b_props, "progressive,distort,colorspace,full_range,force_full_luma,top_field_first,color_trc");
*image = images[1];
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/qt/transition_qtblend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static int get_image(mlt_frame a_frame,
}
if (!hasAlpha) {
// Pass all required frame properties
mlt_properties_pass_list(properties, b_properties, mlt_tractor_passthrough_properties());
mlt_properties_pass_list(properties, b_properties, "progressive,distort,colorspace,full_range,force_full_luma,top_field_first,color_trc");
// Prepare output image
if (b_frame->convert_image && (b_width != request_width || b_height != request_height)) {
mlt_properties_set_int(b_properties, "convert_image_width", request_width);
Expand Down

0 comments on commit 0f7438a

Please sign in to comment.