proc_ctx->fourcc_output = output_fourcc;
/* create pipeline surfaces */
- for(i = 0; i < FRAME_STORE_SUM; i ++) {
+ for(i = 0; i < ARRAY_ELEMS(proc_ctx->frame_store); i ++) {
if(proc_ctx->frame_store[i].obj_surface){
continue; //refer external surface for vebox pipeline
}
proc_ctx->surface_output_scaled_object = NULL;
}
- for(i = 0; i < FRAME_STORE_SUM; i ++) {
+ for(i = 0; i < ARRAY_ELEMS(proc_ctx->frame_store); i ++) {
if (proc_ctx->frame_store[i].is_internal_surface == 1) {
assert(proc_ctx->frame_store[i].surface_id != VA_INVALID_ID);
int i;
proc_context->batch = intel_batchbuffer_new(intel, I915_EXEC_VEBOX, 0);
- memset(proc_context->frame_store, 0, sizeof(VEBFrameStore)*FRAME_STORE_SUM);
- for (i = 0; i < FRAME_STORE_SUM; i ++) {
+ for (i = 0; i < ARRAY_ELEMS(proc_context->frame_store); i++)
proc_context->frame_store[i].surface_id = VA_INVALID_ID;
- proc_context->frame_store[i].is_internal_surface = 0;
- proc_context->frame_store[i].obj_surface = NULL;
- }
proc_context->filters_mask = 0;
proc_context->frame_order = -1; /* the first frame */
FRAME_OUT_CURRENT,
FRAME_OUT_PREVIOUS,
FRAME_OUT_STATISTIC,
- FRAME_STORE_SUM,
+ FRAME_STORE_COUNT,
};
enum SURFACE_FORMAT{
int width_output;
int height_output;
- VEBFrameStore frame_store[FRAME_STORE_SUM];
+ VEBFrameStore frame_store[FRAME_STORE_COUNT];
VEBBuffer dndi_state_table;
VEBBuffer iecp_state_table;