Modify ffmpeg alloc to 4kB alignment if QSV is enabled and >1MB buffe… #778
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…r is allocated; required for HW-enabled copy in GPU.
This give even up to 18% better performance
In case of running e.g. such command:
ffmpeg
-qsv_device /dev/dri/renderD128 -hwaccel qsv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-pix_fmt yuv422p10le -video_size 1920x1080 -i /videos/1920x1080p10le_1.yuv
-filter_complex "[0:v]hwupload,scale_qsv=iw/4:ih/4[out0];
[1:v]hwupload,scale_qsv=iw/4:ih/4[out1];
[2:v]hwupload,scale_qsv=iw/4:ih/4[out2];
[3:v]hwupload,scale_qsv=iw/4:ih/4[out3];
[4:v]hwupload,scale_qsv=iw/4:ih/4[out4];
[5:v]hwupload,scale_qsv=iw/4:ih/4[out5];
[6:v]hwupload,scale_qsv=iw/4:ih/4[out6];
[7:v]hwupload,scale_qsv=iw/4:ih/4[out7];
[8:v]hwupload,scale_qsv=iw/4:ih/4[out8];
[9:v]hwupload,scale_qsv=iw/4:ih/4[out9];
[10:v]hwupload,scale_qsv=iw/4:ih/4[out10];
[11:v]hwupload,scale_qsv=iw/4:ih/4[out11];
[12:v]hwupload,scale_qsv=iw/4:ih/4[out12];
[13:v]hwupload,scale_qsv=iw/4:ih/4[out13];
[14:v]hwupload,scale_qsv=iw/4:ih/4[out14];
[15:v]hwupload,scale_qsv=iw/4:ih/4[out15];
[out0][out1][out2][out3]
[out4][out5][out6][out7]
[out8][out9][out10][out11]
[out12][out13][out14][out15]
xstack_qsv=inputs=16:
layout=xstack=inputs=16:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2|w0_0|w0_h0|w0_h0+h1|w0_h0+h1+h2|w0+w4_0|w0+w4_h0|w0+w4_h0+h1|w0+w4_h0+h1+h2|w0+w4+w8_0|w0+w4+w8_h0|w0+w4+w8_h0+h1|w0+w4+w8_h0+h1+h2,
format=y210le,format=yuv422p10le"
/videos/recv_1920x1080p10le.yuv