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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions imxvpuapi2/imxvpuapi2_imx6_coda.c
Original file line number Diff line number Diff line change
Expand Up @@ -4196,4 +4196,6 @@ ImxVpuApiEncReturnCodes imx_vpu_api_enc_get_skipped_frame_info(ImxVpuApiEncoder
IMX_VPU_API_UNUSED_PARAM(dts);

/* TODO: Frameskipping with CODA960 is not supported at this point */

return IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL;
}
17 changes: 16 additions & 1 deletion imxvpuapi2/imxvpuapi2_imx8m_hantro_dummy_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,25 @@ ImxVpuApiEncReturnCodes imx_vpu_api_enc_encode(ImxVpuApiEncoder *encoder, size_t
return IMX_VPU_API_ENC_RETURN_CODE_OK;
}


ImxVpuApiEncReturnCodes imx_vpu_api_enc_get_encoded_frame(ImxVpuApiEncoder *encoder, ImxVpuApiEncodedFrame *encoded_frame)
{
return imx_vpu_api_enc_get_encoded_frame_ext(encoder, encoded_frame, NULL);
}

ImxVpuApiEncReturnCodes imx_vpu_api_enc_get_encoded_frame_ext(ImxVpuApiEncoder *encoder, ImxVpuApiEncodedFrame *encoded_frame, int *is_sync_point)
{
IMX_VPU_API_UNUSED_PARAM(encoder);
IMX_VPU_API_UNUSED_PARAM(encoded_frame);
IMX_VPU_API_UNUSED_PARAM(is_sync_point);
return IMX_VPU_API_ENC_RETURN_CODE_OK;
}

ImxVpuApiEncReturnCodes imx_vpu_api_enc_get_skipped_frame_info(ImxVpuApiEncoder *encoder, void **context, uint64_t *pts, uint64_t *dts)
{
IMX_VPU_API_UNUSED_PARAM(encoder);
IMX_VPU_API_UNUSED_PARAM(context);
IMX_VPU_API_UNUSED_PARAM(pts);
IMX_VPU_API_UNUSED_PARAM(dts);

return IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL;
}
12 changes: 12 additions & 0 deletions imxvpuapi2/imxvpuapi2_imx8m_hantro_vc8000_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -1426,3 +1426,15 @@ ImxVpuApiEncReturnCodes imx_vpu_api_enc_get_encoded_frame_ext(ImxVpuApiEncoder *

return IMX_VPU_API_ENC_RETURN_CODE_OK;
}

ImxVpuApiEncReturnCodes imx_vpu_api_enc_get_skipped_frame_info(ImxVpuApiEncoder *encoder, void **context, uint64_t *pts, uint64_t *dts)
{
IMX_VPU_API_UNUSED_PARAM(encoder);
IMX_VPU_API_UNUSED_PARAM(context);
IMX_VPU_API_UNUSED_PARAM(pts);
IMX_VPU_API_UNUSED_PARAM(dts);

/* Frameskipping with VC8000 is not supported */

return IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL;
}