/*Setup surfaces state*/
/* current picture for encoding */
- obj_surface = SURFACE(encoder_context->input_yuv_surface);
- assert(obj_surface);
+ obj_surface = encode_state->input_yuv_object;
gen6_vme_source_surface_state(ctx, 0, obj_surface, encoder_context);
gen6_vme_media_source_surface_state(ctx, 4, obj_surface, encoder_context);
/*Setup surfaces state*/
/* current picture for encoding */
- obj_surface = SURFACE(encoder_context->input_yuv_surface);
- assert(obj_surface);
+ obj_surface = encode_state->input_yuv_object;
gen6_vme_source_surface_state(ctx, 0, obj_surface, encoder_context);
gen6_vme_media_source_surface_state(ctx, 4, obj_surface, encoder_context);