convert method

convert

Converts the passed data to the output format.

Returns

The converted bytes count.

def convert(self, source_format, data, offset, bit_start, samples_count, lines_count, dest_format, output_data, output_offset):
    ...
ParameterTypeDescription
source_formatPixelDataFormatThe source format.
databytesThe source data.
offsetintThe offset in bytes where data copying should begin.
bit_startintThe bit start. Note this value is not byte aligned value instead this is actual bit where copying should begin.
samples_countintThe samples count.
lines_countintThe lines count.
dest_formatPixelDataFormatThe destination format.
output_databytesThe output data.
output_offsetintThe output offset where data copying should start.

See Also