Skip to content

Commit 1485652

Browse files
committed
Remove unnecessary QImage allocations
1 parent 8c98ce1 commit 1485652

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/modules/qt/filter_audiolevelgraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static int filter_get_image(mlt_frame frame,
200200

201201
// Draw the audio levels
202202
if (!error) {
203-
QImage qimg(*width, *height, QImage::Format_ARGB32);
203+
QImage qimg;
204204
convert_mlt_to_qimage(*image, &qimg, *width, *height, *format);
205205
draw_levels(filter, frame, &qimg, *width, *height);
206206
convert_qimage_to_mlt(&qimg, *image, *width, *height);

src/modules/qt/filter_audiospectrum.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static int filter_get_image(mlt_frame frame,
276276

277277
// Draw the spectrum
278278
if (!error) {
279-
QImage qimg(*width, *height, QImage::Format_ARGB32);
279+
QImage qimg;
280280
convert_mlt_to_qimage(*image, &qimg, *width, *height, *format);
281281
draw_spectrum(filter, frame, &qimg, *width, *height);
282282
convert_qimage_to_mlt(&qimg, *image, *width, *height);

src/modules/qt/filter_audiowaveform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static int filter_get_image(mlt_frame frame,
364364

365365
// Draw the waveforms
366366
if (!error) {
367-
QImage qimg(*width, *height, QImage::Format_ARGB32);
367+
QImage qimg;
368368
convert_mlt_to_qimage(*image, &qimg, *width, *height, *image_format);
369369
draw_waveforms(filter,
370370
frame,

src/modules/qt/filter_gpsgraphic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ static int filter_get_image(mlt_frame frame,
407407
// Draw the graph
408408
if (!error) {
409409
process_frame_properties(filter, frame, used_crops);
410-
QImage qimg(*width, *height, QImage::Format_ARGB32);
410+
QImage qimg;
411411
convert_mlt_to_qimage(*image, &qimg, *width, *height, *format);
412412
draw_graphics(filter, frame, &qimg, *width, *height, used_crops);
413413
convert_qimage_to_mlt(&qimg, *image, *width, *height);

src/modules/qt/filter_lightshow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static int filter_get_image(mlt_frame frame,
242242

243243
// Draw the light
244244
if (!error) {
245-
QImage qimg(*width, *height, QImage::Format_ARGB32);
245+
QImage qimg;
246246
convert_mlt_to_qimage(*image, &qimg, *width, *height, *format);
247247
draw_light(filter_properties, frame_properties, &qimg, &rect, mag);
248248
convert_qimage_to_mlt(&qimg, *image, *width, *height);

0 commit comments

Comments
 (0)