主权项 |
1. A method comprising:
generating a plurality of correction data units relating to a plurality of data packets of a data stream, each correction data unit of the plurality of correction data units being based on a respective set of data packets associated with the data stream, the generation of each correction data unit of the plurality of correction data units comprising, for each correction data unit, performing the method of:
selecting a respective performance measure associated with a respective correction data unit to be optimized, said respective performance measure associated with a recovery of lost data packets of the data stream;determining a respective coding requirement for the respective correction data unit;determining, within the constraints of said determined respective coding requirement and based on at least one previously generated correction data unit, which of the data packets of the data stream to include in the respective set of data packets on which the generation of the respective correction data unit is to be based to thereby optimize the selected performance measure, the determining which of the data packets to include comprising:
determining whether at least one data packet used to generate the at least one previously generated correction data unit has a loss-protection priority associated with using multiple correction data units for loss protection of the at least one data packet; andresponsive to determining the at least one data packet has the loss-protection priority associated with using multiple correction data units, determining whether to include the at least one data packet in the respective set of data packets on which the generation of the respective correction data unit is to be based;generating the respective correction data unit based on the respective set of the data packets of the data stream; andincluding the generated respective correction data unit in the data stream. |