Skip to content
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

Open
wants to merge 1 commit into
base: 24.lts.1+
Choose a base branch
from

Conversation

sideb0ard
Copy link
Contributor

Publish updated dev docs.

This CL replaces #2909 which was run from trunk, and wasn't formatted correctly.

b/333721484

@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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)
```

Copy link
Contributor

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
Copy link
Contributor

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)
```

Copy link
Contributor

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
Copy link
Contributor

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-
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Contributor

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.

borongc added a commit that referenced this pull request May 8, 2024
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
cobalt-github-releaser-bot pushed a commit that referenced this pull request May 8, 2024
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

(cherry picked from commit 80a62f0)
cobalt-github-releaser-bot pushed a commit that referenced this pull request May 8, 2024
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

(cherry picked from commit 80a62f0)
borongc added a commit that referenced this pull request May 8, 2024
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

(cherry picked from commit 80a62f0)
borongc added a commit that referenced this pull request May 8, 2024
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]>
@borongc
Copy link
Contributor

borongc commented May 8, 2024

The PR (#3193) is merged to 25.lts.1+, and I keep another PR (#3192) to 24.lts.1+ open, if we want to merge it to 24.lts.1+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants