writeShort((short)0); // left of rcFrame if stream has a different size than dwWidth*dwHeight(unused) writeShort((short)0); // top writeShort((short)0); // right writeShort((short)0); // bottom writeShort(1); // biPlanes - number of color planes in which the data is stored writeShort((short)(8*bytesPerPixel)); // biBitCount - number of bits per pixel # writeString("indx"); // 'indx' chunk type: Index of indices writeShort(4); // wLongsPerEntry = 4 ('Longs' are 32-bit here!) writeByte(0); // bIndexSubType=0 writeByte(0); // bIndexType=0: AVI_INDEX_OF_INDEXES writeString("ix00"); // AVI 2.0 style index of frames within the chunk writeShort(2); // wLongsPerEntry = 2 ('Longs' are 32-bit here!) writeByte(0); // bIndexSubType=0 writeByte(1); // bIndexType=1: AVI_INDEX_OF_CHUNKS
writeShort((short)0); // left of rcFrame if stream has a different size than dwWidth*dwHeight(unused) writeShort((short)0); // top writeShort((short)0); // right writeShort((short)0); // bottom writeShort(1); // biPlanes - number of color planes in which the data is stored writeShort((short)(8*bytesPerPixel)); // biBitCount - number of bits per pixel # writeString("indx"); // 'indx' chunk type: Index of indices writeShort(4); // wLongsPerEntry = 4 ('Longs' are 32-bit here!) writeByte(0); // bIndexSubType=0 writeByte(0); // bIndexType=0: AVI_INDEX_OF_INDEXES writeString("ix00"); // AVI 2.0 style index of frames within the chunk writeShort(2); // wLongsPerEntry = 2 ('Longs' are 32-bit here!) writeByte(0); // bIndexSubType=0 writeByte(1); // bIndexType=1: AVI_INDEX_OF_CHUNKS