| Index: webrtc/modules/video_processing/test/readYUV420file.m
|
| diff --git a/webrtc/modules/video_processing/main/test/unit_test/readYUV420file.m b/webrtc/modules/video_processing/test/readYUV420file.m
|
| similarity index 95%
|
| rename from webrtc/modules/video_processing/main/test/unit_test/readYUV420file.m
|
| rename to webrtc/modules/video_processing/test/readYUV420file.m
|
| index 03013efd3a6ce99486ec48f147939dca0e370669..f409820283126a0d7995bca04716f67bdaa7c2fc 100644
|
| --- a/webrtc/modules/video_processing/main/test/unit_test/readYUV420file.m
|
| +++ b/webrtc/modules/video_processing/test/readYUV420file.m
|
| @@ -10,7 +10,7 @@ end
|
| nPx=width*height;
|
|
|
| % nPx bytes luminance, nPx/4 bytes U, nPx/4 bytes V
|
| -frameSizeBytes = nPx*1.5;
|
| +frameSizeBytes = nPx*1.5;
|
|
|
| % calculate number of frames
|
| fseek(fid,0,'eof'); % move to end of file
|
| @@ -27,19 +27,19 @@ V=uint8(zeros(height/2,width/2,numFrames));
|
| [X,nBytes]=fread(fid, frameSizeBytes, 'uchar');
|
|
|
| for k=1:numFrames
|
| -
|
| +
|
| % Store luminance
|
| Y(:,:,k)=uint8(reshape(X(1:nPx), width, height).');
|
| -
|
| +
|
| % Store U channel
|
| U(:,:,k)=uint8(reshape(X(nPx + (1:nPx/4)), width/2, height/2).');
|
|
|
| % Store V channel
|
| V(:,:,k)=uint8(reshape(X(nPx + nPx/4 + (1:nPx/4)), width/2, height/2).');
|
| -
|
| +
|
| % Read next frame
|
| [X,nBytes]=fread(fid, frameSizeBytes, 'uchar');
|
| end
|
|
|
| -
|
| +
|
| fclose(fid);
|
|
|