The default valude is 2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
FILE *ofp;
unsigned char *frame_data_buffer;
int intra_period;
FILE *ofp;
unsigned char *frame_data_buffer;
int intra_period;
int bit_rate; /* in kbps */
/* VA resource */
int bit_rate; /* in kbps */
/* VA resource */
}
seq_param->intra_period = ctx->intra_period;
}
seq_param->intra_period = ctx->intra_period;
- seq_param->ip_period = 0; /* FIXME: ??? */
+ seq_param->ip_period = ctx->ip_period; /* FIXME: ??? */
seq_param->picture_width = ctx->width;
seq_param->picture_height = ctx->height;
seq_param->picture_width = ctx->width;
seq_param->picture_height = ctx->height;
ctx->codedbuf_buf_id = VA_INVALID_ID;
ctx->codedbuf_i_size = ctx->frame_size;
ctx->codedbuf_pb_size = 0;
ctx->codedbuf_buf_id = VA_INVALID_ID;
ctx->codedbuf_i_size = ctx->frame_size;
ctx->codedbuf_pb_size = 0;
if (ctx->mode == MPEG2_MODE_I)
ctx->intra_period = 1;
if (ctx->mode == MPEG2_MODE_I)
ctx->intra_period = 1;