Commit d8c04bcb authored by Dafna Hirschfeld's avatar Dafna Hirschfeld
Browse files

replace EncOutputInfo with struct EncOutputInfo


Signed-off-by: Dafna Hirschfeld's avatarDafna Hirschfeld <dafna.hirschfeld@collabora.com>
parent 94f2496e
......@@ -320,7 +320,7 @@ static void vpu_enc_stop_encode(struct vpu_instance *inst)
static void vpu_enc_finish_encode(struct vpu_instance *inst)
{
enum RetCode retCode;
EncOutputInfo encOutputInfo;
struct EncOutputInfo encOutputInfo;
uint32_t irq_status = inst->dev->irq_status;
VPU_ClearInterruptEx(inst->handle, irq_status);
......
......@@ -1079,7 +1079,7 @@ enum RetCode ProductVpuEncode(CodecInst* instance, EncParam* param)
return ret;
}
enum RetCode ProductVpuEncGetResult(CodecInst* instance, EncOutputInfo* result)
enum RetCode ProductVpuEncGetResult(CodecInst* instance, struct EncOutputInfo* result)
{
enum RetCode ret = RETCODE_NOT_FOUND_VPU_DEVICE;
......
......@@ -198,7 +198,7 @@ extern enum RetCode ProductVpuEncode(
extern enum RetCode ProductVpuEncGetResult(
CodecInst* instance,
EncOutputInfo* result
struct EncOutputInfo* result
);
extern enum RetCode ProductVpuEncInitSeq(
......
......@@ -1469,7 +1469,7 @@ enum RetCode VPU_EncStartOneFrame(
enum RetCode VPU_EncGetOutputInfo(
EncHandle handle,
EncOutputInfo* info
struct EncOutputInfo* info
)
{
CodecInst* pCodecInst;
......
......@@ -3645,7 +3645,7 @@ struct EncReportInfo {
/**
* @brief This is a data structure for reporting the results of picture encoding operations.
*/
typedef struct {
struct EncOutputInfo {
/**
@verbatim
The physical address of the starting point of newly encoded picture stream
......@@ -3699,7 +3699,7 @@ identical with the specified picture stream buffer address by HOST.
uint32_t picDistortionLow; /**< The 32bit lowest difference value(SSD) between an original block and a reconstructed block in the encoded picture. It can be an indicator for image quality. Host cannot tune quality by using this value, because this value is not an input parameter, but a reporting value. */
uint32_t picDistortionHigh; /**< The 32bit highest difference value(SSD) between an original block and a reconstructed block in the encoded picture. It can be an indicator for image quality. Host cannot tune quality by using this value, because this value is not an input parameter, but a reporting value. */
} EncOutputInfo;
};
/**
* @brief This is a special enumeration type for MPEG4 top-level header classes such as
......@@ -4672,7 +4672,7 @@ This means that report is not ready for this query(GET_RESULT) command. (WAVE5 o
*/
enum RetCode VPU_EncGetOutputInfo(
EncHandle handle, /**< [Input] An encoder handle obtained from VPU_EncOpen(). */
EncOutputInfo * info /**< [Output] A pointer to <<vpuapi_h_EncOutputInfo>> structure which describes picture encoding results for the current encoder instance. */
struct EncOutputInfo * info /**< [Output] A pointer to <<vpuapi_h_EncOutputInfo>> structure which describes picture encoding results for the current encoder instance. */
);
/**
......
......@@ -2825,7 +2825,7 @@ enum RetCode Wave5VpuEncode(CodecInst* instance, EncParam* option)
return RETCODE_SUCCESS;
}
enum RetCode Wave5VpuEncGetResult(CodecInst* instance, EncOutputInfo* result)
enum RetCode Wave5VpuEncGetResult(CodecInst* instance, struct EncOutputInfo* result)
{
enum RetCode ret = RETCODE_SUCCESS;
uint32_t encodingSuccess;
......
......@@ -184,7 +184,7 @@ extern enum RetCode Wave5VpuEncode(
extern enum RetCode Wave5VpuEncGetResult(
CodecInst* instance,
EncOutputInfo* result
struct EncOutputInfo* result
);
extern enum RetCode Wave5VpuEncFiniSeq(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment