Home | History | Annotate | Download | only in codec

Lines Matching refs:packet

52   scoped_ptr<VideoPacket> packet(new VideoPacket());
53 PrepareUpdateStart(frame, rect, packet.get());
57 uint8* out = GetOutputBuffer(packet.get(), max_packet_size_);
63 if (!packet.get()) {
64 packet.reset(new VideoPacket());
65 out = GetOutputBuffer(packet.get(), max_packet_size_);
87 packet->mutable_data()->resize(filled);
88 packet->set_flags(packet->flags() | VideoPacket::LAST_PACKET);
90 packet->set_capture_time_ms(frame->capture_time_ms());
91 packet->set_encode_time_ms(
94 packet->mutable_format()->set_x_dpi(frame->dpi().x());
95 packet->mutable_format()->set_y_dpi(frame->dpi().y());
98 packet->set_flags(packet->flags() | VideoPacket::LAST_PARTITION);
101 // If we have filled the current packet, then send it.
103 packet->mutable_data()->resize(filled);
104 callback_.Run(packet.Pass());
111 VideoPacket* packet) {
112 packet->set_flags(packet->flags() | VideoPacket::FIRST_PACKET);
114 VideoPacketFormat* format = packet->mutable_format();
127 uint8* VideoEncoderVerbatim::GetOutputBuffer(VideoPacket* packet, size_t size) {
128 packet->mutable_data()->resize(size);
129 return reinterpret_cast<uint8*>(string_as_array(packet->mutable_data()));