From c21d58557936b22b3861cf6ac934ac231dc8981f Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Thu, 4 Jul 2024 18:52:58 +1000 Subject: [PATCH 1/6] add definition of power efficient, remove battery note --- index.bs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/index.bs b/index.bs index fc2e010..9096c4b 100644 --- a/index.bs +++ b/index.bs @@ -782,13 +782,12 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte booleans.

-

- Authors can use {{MediaCapabilitiesInfo/powerEfficient}} in concordance - with the Battery Status API [[battery-status]] in order to determine - whether the media they would like to play is appropriate for the user - configuration. It is worth noting that even when a device is not power - constrained, high power usage has side effects such as increasing the - temperature or the fans noise. +

+ Encoding or decoding is power efficient when the power draw is optimal or close to optimal. + The definition of optimal power draw from encoding or decoding is left to the user agent but common + implementation strategies would be to consider using hardware as optimal power draw. + It is NOT RECOMMENDED that user agents mark as power efficient hardware encoding or decoding as + non-accelerated codec be as efficient as to accelerated ones (for example, low resolution videos).

@@ -855,7 +854,7 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte

  • If the user agent is able to encode the media represented by - configuration in a power efficient manner, set + configuration in a [=power efficient=] manner, set {{MediaCapabilitiesInfo/powerEfficient}} to true. Otherwise set it to false. The user agent SHOULD NOT take into consideration the current power source in order to @@ -929,7 +928,7 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte
  • If the user agent is able to decode the media represented by - configuration in a power efficient + configuration in a [=power efficient=] manner, set {{MediaCapabilitiesInfo/powerEfficient}} to true. Otherwise set it to false. The user agent SHOULD NOT take into consideration the current From 277c2c7c82dc0bbc185e3b9e9e39a8ff5f0b23c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 4 Jul 2024 18:54:44 +1000 Subject: [PATCH 2/6] Update index.bs --- index.bs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.bs b/index.bs index 9096c4b..ad240cf 100644 --- a/index.bs +++ b/index.bs @@ -788,6 +788,11 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte implementation strategies would be to consider using hardware as optimal power draw. It is NOT RECOMMENDED that user agents mark as power efficient hardware encoding or decoding as non-accelerated codec be as efficient as to accelerated ones (for example, low resolution videos). + The user agent SHOULD NOT + take into consideration the current power source in order to + determine the encoding power efficiency unless the device's power + source has side effects such as enabling different encoding + modules.

    From 39380120af476d297de15d829ce5b426851a763f Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Thu, 4 Jul 2024 18:55:28 +1000 Subject: [PATCH 3/6] remove should from algorithms --- index.bs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/index.bs b/index.bs index ad240cf..cce1cab 100644 --- a/index.bs +++ b/index.bs @@ -861,11 +861,7 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte If the user agent is able to encode the media represented by configuration in a [=power efficient=] manner, set {{MediaCapabilitiesInfo/powerEfficient}} to true. - Otherwise set it to false. The user agent SHOULD NOT - take into consideration the current power source in order to - determine the encoding power efficiency unless the device's power - source has side effects such as enabling different encoding - modules. + Otherwise set it to false.

  • Return info. @@ -935,11 +931,7 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte If the user agent is able to decode the media represented by configuration in a [=power efficient=] manner, set {{MediaCapabilitiesInfo/powerEfficient}} to - true. Otherwise set it to false. The - user agent SHOULD NOT take into consideration the current - power source in order to determine the decoding power - efficiency unless the device's power source has side effects - such as enabling different decoding modules. + true. Otherwise set it to false.
  • Return info. From 9bf78924637d3a42f1395c2208cff517f5889da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 4 Jul 2024 18:59:38 +1000 Subject: [PATCH 4/6] Apply suggestions from code review Co-authored-by: Chris Needham --- index.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index cce1cab..6824bfc 100644 --- a/index.bs +++ b/index.bs @@ -783,11 +783,11 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte

    - Encoding or decoding is power efficient when the power draw is optimal or close to optimal. + Encoding or decoding is power efficient when the power draw is optimal. The definition of optimal power draw from encoding or decoding is left to the user agent but common implementation strategies would be to consider using hardware as optimal power draw. - It is NOT RECOMMENDED that user agents mark as power efficient hardware encoding or decoding as - non-accelerated codec be as efficient as to accelerated ones (for example, low resolution videos). + User agents SHOULD NOT mark as power efficient hardware encoding or decoding, as + non hardware-accelerated codecs can be as efficient as accelerated ones (for example, with low resolution video). The user agent SHOULD NOT take into consideration the current power source in order to determine the encoding power efficiency unless the device's power From a16873b032ea083b12991472fefcf7be99747bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 4 Jul 2024 19:05:54 +1000 Subject: [PATCH 5/6] Update index.bs --- index.bs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/index.bs b/index.bs index 6824bfc..c6c050b 100644 --- a/index.bs +++ b/index.bs @@ -783,16 +783,17 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte

    - Encoding or decoding is power efficient when the power draw is optimal. - The definition of optimal power draw from encoding or decoding is left to the user agent but common - implementation strategies would be to consider using hardware as optimal power draw. - User agents SHOULD NOT mark as power efficient hardware encoding or decoding, as - non hardware-accelerated codecs can be as efficient as accelerated ones (for example, with low resolution video). - The user agent SHOULD NOT - take into consideration the current power source in order to - determine the encoding power efficiency unless the device's power - source has side effects such as enabling different encoding - modules. + Encoding or decoding is considered power efficient when the + power draw is optimal. The definition of optimal power draw for encoding + or decoding is left to the user agent. However, a common implementation + strategy is to consider hardware usage as indicative of optimal power + draw. User agents SHOULD NOT mark hardware encoding or decoding as power + efficient by default, as non-hardware-accelerated codecs can be just as + efficient, particularly with low-resolution video. User agents SHOULD + NOT take the device's power source into consideration when determining + encoding power efficiency unless the device's power source has side + effects such as enabling different encoding modules. +

    From c0490382e77558c5c81872d1ae6cea836b20a7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 4 Jul 2024 19:06:43 +1000 Subject: [PATCH 6/6] Update index.bs --- index.bs | 1 - 1 file changed, 1 deletion(-) diff --git a/index.bs b/index.bs index c6c050b..e659000 100644 --- a/index.bs +++ b/index.bs @@ -793,7 +793,6 @@ spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypte NOT take the device's power source into consideration when determining encoding power efficiency unless the device's power source has side effects such as enabling different encoding modules. -