Suggest mpeg compression on video and guide to clear the error mentioned below. Mpeg compression on video
Ältere Kommentare anzeigen
Zigzag.m
for x = 0:((rowZigZag/(8*index))-1)
for y = 0:((columnZigZag/(8*index))-1)
Line 21: if(indicationIndex(x+1,y+1) ~= 1)
% Extracts 8x8 block which needs to be processed.
block = inputMatrix((x*8*index)+1:(x+1)*8*index, (y*8*index)+1:(y+1)*8*index);
Encoder.m
Line 217: [currentLumaDC, zigZagCurrentLumaAC] = zigZag(YQuantized, indicationMatrix, 2);
[currentCbDC, zigZagCurrentCbAC] = zigZag(CbQuantized, indicationMatrix, 1);
[currentCrDC, zigZagCurrentCrAC] = zigZag(CrQuantized, indicationMatrix, 1);
Error:
Index in position 2 exceeds array bounds (must not exceed 1).
Error in zigZag (line 21)
if(indicationIndex(x+1,y+1) ~= 1)
Error in Encoder (line 217)
[currentLumaDC, zigZagCurrentLumaAC] = zigZag(YQuantized, indicationMatrix, 2);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Video Formats and Interfaces finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!