Configuration of a minimum frequency metric for decoding a bitstream
This disclosure provides systems, devices, apparatus, and methods, including computer programs encoded on storage media, for configuring minimum frequency metrics of decoding sessions. A display processor may obtain an indicator of a bitrate and an indicator of a binrate for a decoding session. The display processor may determine a minimum frequency metric based on the obtained indicator of the bitrate. The display processor may configure the determined minimum frequency metric based on the obtained indicator of the binrate. The display processor may output an indicator of the configured minimum frequency metric. The display processor may select an operational power level based on the configured minimum frequency metric. The display processor may output an indicator of the selected operational power level to a video hardware decoder.
1 . An apparatus for display processing, comprising:
a memory; and
a processor coupled to the memory and, based on information stored in the memory, the processor is configured to:
obtain an indicator of a bitrate and an indicator of a binrate for a decoding session;
determine a minimum frequency metric based on the obtained indicator of the bitrate;
configure the determined minimum frequency metric based on the obtained indicator of the binrate; and
output an indicator of the configured minimum frequency metric.
2 . The apparatus of claim 1 , wherein, to obtain the indicator of the binrate for the decoding session, the processor is configured to:
obtain a second indicator of the binrate for the decoding session from a video hardware decoder decoding a bitstream for the decoding session.
3 . The apparatus of claim 1 , wherein, to obtain the indicator of the binrate for the decoding session, the processor is configured to:
decode a portion of a bitstream for the decoding session; and
track the binrate while decoding the portion of the bitstream for the decoding session.
4 . The apparatus of claim 1 , wherein, to output the indicator of the configured minimum frequency metric, the processor is configured to:
select an operational power level based on the configured minimum frequency metric; and
output an indicator of the selected operational power level to a video hardware decoder.
5 . The apparatus of claim 4 , wherein the processor is further configured to:
operate the video hardware decoder at the operational power level during the decoding session; and
decode, via the video hardware decoder, a bitstream for the decoding session.
6 . The apparatus of claim 4 , wherein, to output the indicator of the selected operational power level to the video hardware decoder, the processor is configured to:
output the indicator of the selected operational power level to a firmware of the video hardware decoder.
7 . The apparatus of claim 4 , wherein the processor is further configured to:
select a second operational power level based on the determined minimum frequency metric based on the obtained indicator of the bitrate before the configuration of the determined minimum frequency metric based on the obtained indicator of the binrate; and
output a second indicator of the selected second operational power level to the video hardware decoder before the output of the indicator of the selected operational power level to the video hardware decoder.
8 . The apparatus of claim 1 , wherein, to configure the determined minimum frequency metric based on the obtained indicator of the binrate, the processor is configured to:
adjust the determined minimum frequency metric by a ratio based on the obtained indicator of the binrate.
9 . The apparatus of claim 8 , wherein, to configure the determined minimum frequency metric based on the obtained indicator of the binrate, the processor is configured to:
adjust a numerator of the ratio in response to the binrate being greater than a previous binrate of the decoding session; and
adjust a denominator of the ratio in response to the binrate being less than the previous binrate of the decoding session.
10 . The apparatus of claim 1 , wherein, to configure the determined minimum frequency metric based on the obtained indicator of the binrate, the processor is configured to:
refrain from adjusting the determined minimum frequency metric by a ratio based on the obtained indicator of the binrate.
11 . The apparatus of claim 1 , wherein, to configure the determined minimum frequency metric based on the obtained indicator of the binrate, the processor is configured to:
refrain from adjusting the determined minimum frequency metric by a ratio in response to the binrate being equal to a previous binrate of the decoding session.
12 . The apparatus of claim 2 , wherein the apparatus comprises a wireless communication device.
13 . A method of video processing, comprising:
obtaining an indicator of a bitrate and an indicator of a binrate for a decoding session;
determining a minimum frequency metric based on the obtained indicator of the bitrate;
configuring the determined minimum frequency metric based on the obtained indicator of the binrate; and
outputting an indicator of the configured minimum frequency metric.
14 . The method of claim 13 , wherein obtaining the indicator of the binrate for the decoding session comprises:
decoding a portion of a bitstream for the decoding session; and
tracking the binrate while decoding the portion of the bitstream for the decoding session.
15 . The method of claim 13 , wherein outputting the indicator of the configured minimum frequency metric comprises:
selecting an operational power level based on the configured minimum frequency metric; and
outputting an indicator of the selected operational power level to a video hardware decoder.
16 . The method of claim 13 , wherein configuring the determined minimum frequency metric based on the obtained indicator of the binrate comprises:
adjusting the determined minimum frequency metric by a ratio based on the obtained indicator of the binrate.
17 . The method of claim 16 , wherein configuring the determined minimum frequency metric based on the obtained indicator of the binrate comprises:
adjusting a numerator of the ratio in response to the binrate being greater than a previous binrate of the decoding session;
adjusting a denominator of the ratio in response to the binrate being less than the previous binrate of the decoding session; or
refraining from adjusting the ratio in response to the binrate being equal than to the previous binrate of the decoding session.
18 . The method of claim 13 , wherein configuring the determined minimum frequency metric based on the obtained indicator of the binrate comprises:
refraining from adjusting the determined minimum frequency metric by a ratio based on the obtained indicator of the binrate.
19 . The method of claim 13 , wherein configuring the determined minimum frequency metric based on the obtained indicator of the binrate comprises:
refraining from adjusting the determined minimum frequency metric by a ratio in response to the binrate being equal to a previous binrate of the decoding session.
20 . A non-transitory computer-readable medium storing computer executable code, the computer executable code, when executed by a processor, causes the processor to:
obtain an indicator of a bitrate and an indicator of a binrate for a decoding session;
determine a minimum frequency metric based on the obtained indicator of the bitrate;
configure the determined minimum frequency metric based on the obtained indicator of the binrate; and
output an indicator of the configured minimum frequency metric.