Lines Matching defs:buffer
144 VideoConsumer::BufferReceived(BBuffer* buffer)
146 LOOP("VideoConsumer::Buffer #%" B_PRId32 " received\n", buffer->ID());
149 buffer->Recycle();
153 media_timed_event event(buffer->Header()->start_time,
154 BTimedEventQueue::B_HANDLE_BUFFER, buffer,
181 // create a buffer group
196 // and attach the bitmaps to the buffer group
237 info.buffer = 0;
238 // the media buffer id
240 BBuffer* buffer = NULL;
241 if ((status = fBuffers->AddBuffer(info, &buffer)) != B_OK) {
249 fBufferMap[i] = buffer;
551 VideoConsumer::_HandleBuffer(BBuffer* buffer)
555 buffer->Recycle();
563 if (buffer->ID() == fBufferMap[index]->ID())
571 // to recycle this buffer later on, in case it was the last buffer
580 || now < buffer->Header()->start_time + kMaxBufferLateness) {
581 // Only display the buffer if it's not too late, or if we are
584 memcpy(fBitmap[index]->Bits(), buffer->Data(),
587 bigtime_t tooEarly = buffer->Header()->start_time - now;
595 // recycle the previous but not the current buffer
604 // Drop the buffer if it's too late.
611 "latency: %" B_PRIdBIGTIME "\n", buffer->Header()->start_time,
615 buffer->Recycle();