Moved/renamed: webrtc/modules/video_processing/main/interface -> webrtc/modules/video_processing/include webrtc/modules/video_processing/main/source/* -> webrtc/modules/video_processing webrtc/modules/video_processing/main/test/unit_test -> webrtc/modules/video_processing/test No downstream code seems to use this module. BUG=webrtc:5095 TESTED=git cl try -c --bot=android_compile_rel --bot=linux_compile_rel --bot=win_compile_rel --bot=mac_compile_rel --bot=ios_rel --bot=linux_gn_rel --bot=win_x64_gn_rel --bot=mac_x64_gn_rel --bot=android_gn_rel -m tryserver.webrtc R=pbos@webrtc.org, stefan@webrtc.org Review URL: https://codereview.webrtc.org/1410663004 . Cr-Commit-Position: refs/heads/master@{#10697}
23 lines
421 B
Matlab
23 lines
421 B
Matlab
function writeYUV420file(filename, Y, U, V)
|
|
% writeYUV420file(filename, Y, U, V)
|
|
|
|
fid = fopen(filename,'wb');
|
|
if fid==-1
|
|
error(['Cannot open file ' filename]);
|
|
end
|
|
|
|
numFrames=size(Y,3);
|
|
|
|
for k=1:numFrames
|
|
% Write luminance
|
|
fwrite(fid,uint8(Y(:,:,k).'), 'uchar');
|
|
|
|
% Write U channel
|
|
fwrite(fid,uint8(U(:,:,k).'), 'uchar');
|
|
|
|
% Write V channel
|
|
fwrite(fid,uint8(V(:,:,k).'), 'uchar');
|
|
end
|
|
|
|
fclose(fid);
|