In order to improve the efficiency of instruction loading into DSP
two techniques of instruction cache optimization on H.264 encoding are proposed in this paper.As the first technique
adjust encoding procedure to prevent the quantity of the instruction codes inside marcoblock encoding loop over the capacity of instruction cache.Thus a new encoding procedure is proposed which fragments the conventional encoding procedure from one macroblock encoding loop at the frame level into three macroblock encoding loops at the slice level
while the results of motion estimation and encoding mode decision are unchanged.As the second technique
compact source code suitably.That is
emphasize adaptively either source code compacting or unrolling according to the length of source codes as well as the quantity of instruction cache miss.