CPC H04N 19/149 (2014.11) [H04N 19/14 (2014.11); H04N 19/174 (2014.11); H04N 19/186 (2014.11); H04N 19/30 (2014.11)] | 14 Claims |
1. An electronic device comprising:
a network interface configured to stream image data to another electronic device; and
video encoder circuitry configured to prepare the image data for streaming at least in part by:
performing a first pass of rate control on the image data to perform size estimation for each slice of the image data;
performing a second pass of rate control on the image data to assign quantization parameters and perform additional size estimation for each slice of the image data;
performing a third pass of rate control using one or more image frame statistics collected during the second pass of rate control, wherein the third pass of rate control comprises:
scaling a target coefficient size and a maximum coefficient size based on the one or more image frame statistics;
calculating an updated quantization parameter value based on the scaled target coefficient size and the scaled maximum coefficient size values; and
encoding one or more slices of the image data based on the calculated updated quantization parameter value.
|