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

[transform] Fix transform_caps in direction GST_PAD_SRC #3670

Merged
merged 4 commits into from
Mar 2, 2022

Conversation

anyj0527
Copy link
Member

@anyj0527 anyj0527 commented Feb 22, 2022

  • Check null before call g_string_append to remove logs g_string_insert_len: assertion 'len == 0 || val != NULL' failed
  • Since tensor_transform cannot specify the sinkpad's type caps in some modes, let the transform_caps remove the field in that case
  • Add a test to check whether tensor_filter - tensor_transform pipeline can be negotiated with static format, not flexible format.
  • Modify the order of caps_intersect_full in tensor_filter

This resolves #3636

Self evaluation:

  1. Build test: [X]Passed [ ]Failed [ ]Skipped
  2. Run test: [X]Passed [ ]Failed [ ]Skipped

@taos-ci
Copy link
Collaborator

taos-ci commented Feb 22, 2022

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #3670. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

@taos-ci
Copy link
Collaborator

taos-ci commented Feb 22, 2022

:octocat: cibot: @anyj0527, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nnstreamer/ci/repo-workers/pr-checker/3670-202202221840120.92935800552368-dfae362a4ed4ff83a460ce8088d34b0bec1f31a7/.

Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anyj0527, 💯 All CI checkers are successfully verified. Thanks.

Copy link
Member

@wooksong wooksong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@myungjoo myungjoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jaeyun-jung
Copy link
Collaborator

YJ, plz do rebase to fix conflict.

- Check null before call g_string_append
- This removes the logs `g_string_insert_len: assertion 'len == 0 || val != NULL' failed`

REF: nnstreamer#3666
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
- Since tensor_transform cannot specify the sinkpad's type caps in some modes,
  let the `transform_caps` remove the field in that case

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
- Test whether tensor_filter - tensor_transform pipeline can be
  negotiated with static format, not flexible format.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
- The pipeline reported in nnstreamer#3636 has nego fail issue because the caps is
   fixated with flexible right after tensor_filter.
- To resolve this, change the order of `gst_caps_intersect_full` in transform_caps.
   This makes static format to be chosen.
- This resolves nnstreamer#3636

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anyj0527, 💯 All CI checkers are successfully verified. Thanks.

@jaeyun-jung jaeyun-jung merged commit 1ff92a0 into nnstreamer:main Mar 2, 2022
@anyj0527 anyj0527 deleted the fix-transform-nego branch March 2, 2022 09:07
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.

Negotiation fails for other/tensors but pass for other/tensor in some pipelines.
5 participants