Lines Matching refs:frame

267 	MixVideoFrame *frame = NULL;  in mix_surfacepool_initialize()  local
272 frame = mix_videoframe_new(); in mix_surfacepool_initialize()
274 if (frame == NULL) { in mix_surfacepool_initialize()
283 mix_videoframe_set_frame_id(frame, surfaces[i]); in mix_surfacepool_initialize()
285 mix_videoframe_set_ci_frame_idx (frame, i); in mix_surfacepool_initialize()
288 mix_videoframe_set_pool(frame, obj); in mix_surfacepool_initialize()
291 obj->free_list = g_slist_append(obj->free_list, frame); in mix_surfacepool_initialize()
316 MIX_RESULT mix_surfacepool_put(MixSurfacePool * obj, MixVideoFrame * frame) { in mix_surfacepool_put() argument
319 if (obj == NULL || frame == NULL) in mix_surfacepool_put()
322 LOG_V( "Frame id: %d\n", frame->frame_id); in mix_surfacepool_put()
334 GSList *element = g_slist_find(obj->in_use_list, frame); in mix_surfacepool_put()
348 mix_videoframe_set_timestamp(frame, 0); in mix_surfacepool_put()
370 MIX_RESULT mix_surfacepool_get(MixSurfacePool * obj, MixVideoFrame ** frame) { argument
374 if (obj == NULL || frame == NULL)
418 *frame = (MixVideoFrame *) element->data;
420 LOG_V( "Frame id: %d\n", (*frame)->frame_id);
433 mix_videoframe_ref(*frame);
460 MIX_RESULT mix_surfacepool_get_frame_with_ci_frameidx (MixSurfacePool * obj, MixVideoFrame ** frame argument
464 if (obj == NULL || frame == NULL)
504 *frame = (MixVideoFrame *) element->data;
514 mix_videoframe_ref(*frame);
588 MixVideoFrame *frame = NULL; local
592 frame = obj->free_list->data;
596 mix_videoframe_unref(frame);
625 mix_surfacepool_dumpframe(MixVideoFrame *frame) argument
627 LOG_I( "\tFrame %x, id %lu, refcount %d, ts %lu\n", (guint)frame,
628 frame->frame_id, MIX_PARAMS(frame)->refcount, (gulong) frame->timestamp);