-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Developer docs from 24.lts branch #2984
Conversation
@@ -11,17 +11,15 @@ An SbDecodeTarget can be passed into any function which decodes video or image | |||
data. This allows the application to allocate fast graphics memory, and have | |||
decoding done directly into this memory, avoiding unnecessary memory copies, and | |||
also avoiding pushing data between CPU and GPU memory unnecessarily. | |||
|
|||
## SbDecodeTargetFormat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These don't look right to me. The header markers are removed which will make the headers appear as regular text and also removes the extra newline which (due to markdown) make the text appear on the same row as the text above.
Do you know of any changes in the corresponding C++ file that would cause this?
Same for the similarly removed header markers below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Judging by the amount of changes, it seems like these haven't been generated in a while, so likely many c++ changes. The only one I made was in, which is what my aim is to update:
#2905
then this PR is all generated from two commands:
docker run -it --mount type=bind,source=$(pwd),target=/code docsite
pre-commit run
@@ -268,6 +268,7 @@ right and top-to-bottom. | |||
``` | |||
Top-to-bottom is similar to left-to-right, but for the Y position. | |||
Bottom-to-top is similar to right-to-left, but for the Y position. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also looks a little funky to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you re-test the devsite generation instructions and see if see if you get the same results?
@@ -452,7 +452,7 @@ return `kSbMediaSupportTypeProbably` kSbMediaSupportTypeProbably when | |||
`key_system` is `com.widevine.alpha; invalid_attribute="invalid_value"`. | |||
Currently the only attribute has to be supported is `encryptionscheme`. It | |||
reflects the value passed to `encryptionScheme` encryptionScheme of | |||
MediaKeySystemMediaCapability, as defined in [https://wicg.github.io/encrypted-media-encryption-scheme/,](https://wicg.github.io/encrypted-media-encryption-scheme/,),) which can take value "cenc", "cbcs", or "cbcs-1-9". Empty string is | |||
MediaKeySystemMediaCapability, as defined in [https://wicg.github.io/encrypted-media-encryption-scheme/](https://wicg.github.io/encrypted-media-encryption-scheme/)/) , which can take value "cenc", "cbcs", or "cbcs-1-9". Empty string is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look correct. There's an /)
at the end.
@@ -138,4 +138,3 @@ result. | |||
``` | |||
SbConditionVariableResult SbConditionVariableWaitTimed(SbConditionVariable *condition, SbMutex *mutex, SbTime timeout_duration) | |||
``` | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This trailing newline should probably stay. Did pre-commit allow this?
@@ -466,7 +466,7 @@ return `kSbMediaSupportTypeProbably` kSbMediaSupportTypeProbably when | |||
`key_system` is `com.widevine.alpha; invalid_attribute="invalid_value"`. | |||
Currently the only attribute has to be supported is `encryptionscheme`. It | |||
reflects the value passed to `encryptionScheme` encryptionScheme of | |||
MediaKeySystemMediaCapability, as defined in [https://wicg.github.io/encrypted-media-encryption-scheme/,](https://wicg.github.io/encrypted-media-encryption-scheme/,),) which can take value "cenc", "cbcs", or "cbcs-1-9". Empty string is | |||
MediaKeySystemMediaCapability, as defined in [https://wicg.github.io/encrypted-media-encryption-scheme/](https://wicg.github.io/encrypted-media-encryption-scheme/)/) , which can take value "cenc", "cbcs", or "cbcs-1-9". Empty string is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another extra /)
here too.
@@ -138,4 +138,3 @@ result. | |||
``` | |||
SbConditionVariableResult SbConditionVariableWaitTimed(SbConditionVariable *condition, SbMutex *mutex, SbTime timeout_duration) | |||
``` | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another trailing newline that's removed.
@@ -466,7 +466,7 @@ return `kSbMediaSupportTypeProbably` kSbMediaSupportTypeProbably when | |||
`key_system` is `com.widevine.alpha; invalid_attribute="invalid_value"`. | |||
Currently the only attribute has to be supported is `encryptionscheme`. It | |||
reflects the value passed to `encryptionScheme` encryptionScheme of | |||
MediaKeySystemMediaCapability, as defined in [https://wicg.github.io/encrypted-media-encryption-scheme/,](https://wicg.github.io/encrypted-media-encryption-scheme/,),) which can take value "cenc", "cbcs", or "cbcs-1-9". Empty string is | |||
MediaKeySystemMediaCapability, as defined in [https://wicg.github.io/encrypted-media-encryption-scheme/](https://wicg.github.io/encrypted-media-encryption-scheme/)/) , which can take value "cenc", "cbcs", or "cbcs-1-9". Empty string is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/)
here too.
@@ -449,6 +551,24 @@ Returns whether the given player handle is valid. | |||
static bool SbPlayerIsValid(SbPlayer player) | |||
``` | |||
|
|||
### SbPlayerSeek | |||
|
|||
`seek_to_timestamp`: The frame at which playback should begin. `ticket`: A user- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ticket
should probably be put on a new line.
### SbPlayerSeek | ||
|
||
`seek_to_timestamp`: The frame at which playback should begin. `ticket`: A user- | ||
supplied unique ID that is be passed to all subsequent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"that is be" => "to be"
In general the comment of the function should be refined. Please sync with @borongc to who's working on it to prioritize this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR (#2958) is in progress, will modify player.h
later.
This PR updates the description in drm.h, decode_target.h, media.h, and player.h. This also fixes formatting issues in PR #2984. b/326450058
Refer to the original PR: #2958 This PR updates the description in drm.h, decode_target.h, media.h, and player.h. This also fixes formatting issues in PR #2984. b/326450058 Co-authored-by: Bo-Rong Chen <[email protected]>
Publish updated dev docs.
This CL replaces #2909 which was run from trunk, and wasn't formatted correctly.
b/333721484