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

Implement imx_vpu_api_enc_get_skipped_frame_info() and imx_vpu_api_enc_get_encoded_frame_ext() stubs for all encoders #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tq-schifferm
Copy link

The imx_vpu_api_enc_get_skipped_frame_info and imx_vpu_api_enc_get_encoded_frame_ext must be available during linking of current gstreamer-imx. Make these symbols available for all encoders.

For imx_vpu_api_enc_get_skipped_frame_info(), a stub implementation is added that always returns IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL (and the stub for imx6-coda is fixed to have a return value at all to avoid a compiler warning).

imx_vpu_api_enc_get_encoded_frame_ext() was only missing for imx8m-hantro dummy_encoder.

Fixes Freescale/gstreamer-imx#328

…pu_api_enc_get_skipped_frame_info()

imx8m-hantro-h1 returns IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL when
imx_vpu_api_enc_get_skipped_frame_info() is called when no frame was
actually skipped.

imx6-coda currently doesn't return a value from
imx_vpu_api_enc_get_skipped_frame_info() at all. As imx6-coda does not
support frame skipping, it is consistent to just always return
IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL.

Signed-off-by: Matthias Schiffer <[email protected]>
…s for all encoders

Implement this function for all encoders to fix a linker error in
gstreamer-imx.

These encoders never return IMX_VPU_API_ENC_OUTPUT_CODE_FRAME_SKIPPED,
so we always return IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL from
imx_vpu_api_enc_get_skipped_frame_info().

Signed-off-by: Matthias Schiffer <[email protected]>
…ame_ext()

Linking gstreamer-imx will fail if imx_vpu_api_enc_get_encoded_frame_ext()
is not available.

Signed-off-by: Matthias Schiffer <[email protected]>
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.

Regression: Build failure on i.MX8Mx platforms
1 participant