/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_cl.h | 152 #define cl_packet_header(packet) V3DX(packet ## _header) 153 #define cl_packet_length(packet) V3DX(packet ## _length) 154 #define cl_aligned_packet_length(packet, alignment) ALIGN(cl_packet_length(packet), alignment) 155 #define cl_packet_pack(packet) V3DX(packet ## _pack) 156 #define cl_packet_struct(packet) V3DX(packet) [all...] |
/third_party/mesa3d/src/gallium/drivers/v3d/ |
H A D | v3d_cl.h | 198 #define cl_packet_header(packet) V3DX(packet ## _header) 199 #define cl_packet_length(packet) V3DX(packet ## _length) 200 #define cl_packet_pack(packet) V3DX(packet ## _pack) 201 #define cl_packet_struct(packet) V3DX(packet) 225 #define cl_emit(cl, packet, name) \ 226 for (struct cl_packet_struct(packet) nam [all...] |
/third_party/toybox/toys/pending/ |
H A D | tftp.c | 92 * Makes a request packet in BUFFER with OPCODE and file PATH of MODE 93 * and returns length of packet. 105 * Makes an acknowledgement packet in BUFFER of BLOCNO 106 * and returns packet length. 118 * Makes an error packet in BUFFER with ERRORCODE and ERRORMSG. 119 * and returns packet length. 180 // checks packet for data and updates block no 181 static inline int check_data( uint8_t *packet, uint16_t *opcode, in check_data() argument 184 *opcode = (uint16_t) packet[0] << 8 | (uint16_t) packet[ in check_data() 193 mkpkt_data(int fd, off_t offset, uint8_t *packet, uint16_t blockno) mkpkt_data() argument 213 read_ack(int sd, uint8_t *packet, struct sockaddr_storage *server, uint16_t *port, uint16_t *blockno) read_ack() argument 270 uint8_t *packet; file_get() local 385 uint8_t *packet; file_put() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | xmv.c | 54 /** A video packet with an XMV file. */ 57 int stream_index; ///< The decoder stream index for this video packet. 62 uint32_t current_frame; ///< The current frame within this video packet. 63 uint32_t frame_count; ///< The amount of frames within this video packet. 65 int has_extradata; ///< Does the video packet contain extra data? 72 /** An audio packet with an XMV file. */ 75 int stream_index; ///< The decoder stream index for this audio packet. 101 uint32_t this_packet_size; ///< Size of the current packet. 102 uint32_t next_packet_size; ///< Size of the next packet. 104 uint64_t this_packet_offset; ///< Offset of the current packet 183 XMVAudioPacket *packet = &xmv->audio[audio_track]; xmv_read_header() local 324 XMVAudioPacket *packet = &xmv->audio[audio_track]; xmv_process_packet_header() local [all...] |
H A D | bmv.c | 36 uint8_t *packet; member 86 if ((err = av_reallocp(&c->packet, c->size + 1)) < 0) in bmv_read_packet() 88 c->packet[0] = type; in bmv_read_packet() 89 if (avio_read(s->pb, c->packet + 1, c->size) != c->size) in bmv_read_packet() 92 int audio_size = c->packet[1] * 65 + 1; in bmv_read_packet() 94 av_log(s, AV_LOG_ERROR, "Reported audio size %d is bigger than packet size (%d)\n", in bmv_read_packet() 100 memcpy(pkt->data, c->packet + 1, pkt->size); in bmv_read_packet() 103 pkt->duration = c->packet[1] * 32; in bmv_read_packet() 114 memcpy(pkt->data, c->packet, pkt->size); in bmv_read_packet() 122 av_freep(&c->packet); in bmv_read_close() [all...] |
/third_party/vk-gl-cts/framework/referencerenderer/ |
H A D | rrShadingContext.hpp | 48 float* fragmentDepths; //!< Fragment packet depths. Pointer will be NULL if there is no depth buffer. Each sample has per-sample depth values 78 tcu::Vector<T, 4> readPointVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readPointVarying() argument 81 DE_UNREF(packet); in readPointVarying() 87 tcu::Vector<T, 4> readLineVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readLineVarying() argument 89 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readLineVarying() 90 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>(); in readLineVarying() 94 tcu::Vector<T, 4> readTriangleVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) in readTriangleVarying() argument 96 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readTriangleVarying() 97 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>() in readTriangleVarying() 98 + packet in readTriangleVarying() 102 readVarying(const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) readVarying() argument 142 dFdxVarying(tcu::Vector<T, 4> outFragmentdFdx[4], const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc) dFdxVarying() argument 156 dFdyVarying(tcu::Vector<T, 4> outFragmentdFdy[4], const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc) dFdyVarying() argument [all...] |
H A D | rrPrimitivePacket.cpp | 21 * \brief Primitive packet 40 VertexPacket* packet; in EmitVertex() local 48 packet = m_vpalloc.alloc(); in EmitVertex() 50 packet->position = position; in EmitVertex() 51 packet->pointSize = pointSize; in EmitVertex() 52 packet->primitiveID = primitiveID; in EmitVertex() 55 packet->outputs[ndx] = varyings[ndx]; in EmitVertex() 57 m_emitted.push_back(packet); in EmitVertex()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineReferenceRenderer.hpp | 68 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices() member in vkt::pipeline::ColorVertexShader::rr 70 readVertexAttrib(position, inputs[0], packet->instanceNdx, packet->vertexNdx); in shadeVertices() 71 readVertexAttrib(color, inputs[1], packet->instanceNdx, packet->vertexNdx); in shadeVertices() 73 packet->outputs[0] = position; in shadeVertices() 74 packet->outputs[1] = color; in shadeVertices() 75 packet->position = position; in shadeVertices() 106 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices() member in vkt::pipeline::ColorVertexShaderDualSource::rr 108 readVertexAttrib(position, inputs[0], packet in shadeVertices() 143 rr::VertexPacket* const packet = packets[packetNdx]; shadeVertices() member in vkt::pipeline::TexCoordVertexShader::rr 188 const rr::FragmentPacket& packet = packets[packetNdx]; shadeFragments() local 244 const rr::FragmentPacket& packet = packets[packetNdx]; shadeFragments() local 286 const rr::FragmentPacket& packet = packets[packetNdx]; shadeFragments() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
H A D | vktPipelineReferenceRenderer.hpp | 68 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices() member in vkt::pipeline::ColorVertexShader::rr 70 readVertexAttrib(position, inputs[0], packet->instanceNdx, packet->vertexNdx); in shadeVertices() 71 readVertexAttrib(color, inputs[1], packet->instanceNdx, packet->vertexNdx); in shadeVertices() 73 packet->outputs[0] = position; in shadeVertices() 74 packet->outputs[1] = color; in shadeVertices() 75 packet->position = position; in shadeVertices() 106 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices() member in vkt::pipeline::ColorVertexShaderDualSource::rr 108 readVertexAttrib(position, inputs[0], packet in shadeVertices() 143 rr::VertexPacket* const packet = packets[packetNdx]; shadeVertices() member in vkt::pipeline::TexCoordVertexShader::rr 188 const rr::FragmentPacket& packet = packets[packetNdx]; shadeFragments() local 244 const rr::FragmentPacket& packet = packets[packetNdx]; shadeFragments() local 286 const rr::FragmentPacket& packet = packets[packetNdx]; shadeFragments() local [all...] |
/third_party/pulseaudio/speex/libspeexdsp/ |
H A D | jitter.c | 83 int curr_count; /**< Number of packet timings we got (including those we discarded) */ 94 /* Add the timing of a new packet to the TimingBuffer */ 98 /* Discard packet that won't make it into the list because they're too early */ in tb_add() 138 spx_uint32_t last_returned_timestamp; /**< Useful for getting the next packet with the same timestamp (for fragmented media) */ 146 void (*destroy) (void *); /**< Callback for destroying a packet */ 149 spx_int32_t concealment_size; /**< Size of the packet loss concealment "units" */ 152 int late_cutoff; /**< How late must a packet be for it not to be considered at all */ 190 /* Number of packet timings we have received (including those we didn't keep) */ in compute_opt_delay() 197 /* Compute cost for one lost packet */ in compute_opt_delay() 245 /* For the next timing we will consider, there will be one more late packet t in compute_opt_delay() 366 jitter_buffer_put(JitterBuffer *jitter, const JitterBufferPacket *packet) jitter_buffer_put() argument 463 jitter_buffer_get(JitterBuffer *jitter, JitterBufferPacket *packet, spx_int32_t desired_span, spx_int32_t *start_offset) jitter_buffer_get() argument 676 jitter_buffer_get_another(JitterBuffer *jitter, JitterBufferPacket *packet) jitter_buffer_get_another() argument 712 _jitter_buffer_update_delay(JitterBuffer *jitter, JitterBufferPacket *packet, spx_int32_t *start_offset) _jitter_buffer_update_delay() argument 735 jitter_buffer_update_delay(JitterBuffer *jitter, JitterBufferPacket *packet, spx_int32_t *start_offset) jitter_buffer_update_delay() argument [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | iec61883.c | 50 * For DV, one packet corresponds exactly to one frame. 69 DVPacket *queue_first; ///< first element of packet queue 70 DVPacket *queue_last; ///< last element of packet queue 104 DVPacket *packet; in iec61883_callback() local 112 av_log(NULL, AV_LOG_ERROR, "DV packet queue overrun, dropping.\n"); in iec61883_callback() 117 packet = av_mallocz(sizeof(*packet)); in iec61883_callback() 118 if (!packet) { in iec61883_callback() 123 packet->buf = av_malloc(length + AV_INPUT_BUFFER_PADDING_SIZE); in iec61883_callback() 124 if (!packet in iec61883_callback() 192 DVPacket *packet; iec61883_parse_queue_dv() local 226 DVPacket *packet; iec61883_parse_queue_hdv() local 472 DVPacket *packet = dv->queue_first; iec61883_close() local [all...] |
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_cl.h | 221 #define cl_packet_header(packet) V3D21_ ## packet ## _header 222 #define cl_packet_length(packet) V3D21_ ## packet ## _length 223 #define cl_packet_pack(packet) V3D21_ ## packet ## _pack 224 #define cl_packet_struct(packet) V3D21_ ## packet 248 * uint8_t[cl_packet_length()] in the CL, not a cl_packet_struct(packet). 250 #define cl_emit(cl, packet, nam [all...] |
/third_party/musl/libc-test/src/regression/ |
H A D | dn_expand-ptr-0.c | 10 unsigned char packet[] = {2,'p','q',0xc0,5,0}; in main() local 15 r = dn_expand(packet, packet+6, packet, name, 3); in main() 22 memcpy(packet, "\xc0\2", 3); in main() 24 r = dn_expand(packet, packet+3, packet, name, 1); in main()
|
/third_party/ffmpeg/tools/ |
H A D | seek_print.c | 50 AVPacket packet; in main() local 80 ret = av_read_frame(avf, &packet); in main() 84 AVRational *tb = &avf->streams[packet.stream_index]->time_base; in main() 86 ret, packet.size, packet.stream_index, in main() 87 av_ts2str(packet.dts), av_ts2timestr(packet.dts, tb), in main() 88 av_ts2str(packet.pts), av_ts2timestr(packet.pts, tb)); in main() 89 av_packet_unref(&packet); in main() [all...] |
/third_party/pulseaudio/src/modules/raop/ |
H A D | raop-client.c | 64 #include "raop-packet-buffer.h" 134 /* Audio TCP packet header [16x8] (cf. rfc4571): 136 * [2,3] RTP packet size (following): 0x0000 (to be set) 150 /* Audio UDP packet header [12x8] (cf. rfc3550): 163 /* Audio retransmission UDP packet header [4x8]: 174 /* Sync packet header [8x8] (cf. rfc3550): 184 /* Timing packet header [8x8] (cf. rfc3550): 277 static size_t write_ALAC_data(uint8_t *packet, const size_t max, uint8_t *raw, size_t *length, bool compress) { in write_ALAC_data() argument 283 bp = packet; in write_ALAC_data() 284 pa_memzero(packet, ma in write_ALAC_data() 315 build_tcp_audio_packet(pa_raop_client *c, pa_memchunk *block, pa_memchunk *packet) build_tcp_audio_packet() argument 364 pa_memchunk *packet = NULL; send_tcp_audio_packet() local 406 build_udp_audio_packet(pa_raop_client *c, pa_memchunk *block, pa_memchunk *packet) build_udp_audio_packet() argument 455 pa_memchunk *packet = NULL; send_udp_audio_packet() local 490 rebuild_udp_audio_packet(pa_raop_client *c, uint16_t seq, pa_memchunk *packet) rebuild_udp_audio_packet() argument 512 pa_memchunk *packet = NULL; resend_udp_audio_packets() local 546 build_udp_sync_packet(pa_raop_client *c, uint32_t stamp, uint32_t **packet) build_udp_sync_packet() argument 574 uint32_t * packet = NULL; send_udp_sync_packet() local 587 handle_udp_control_packet(pa_raop_client *c, const uint8_t packet[], ssize_t size) handle_udp_control_packet() argument 618 build_udp_timing_packet(pa_raop_client *c, const uint32_t data[6], uint64_t received, uint32_t **packet) build_udp_timing_packet() argument 645 uint32_t * packet = NULL; send_udp_timing_packet() local 658 handle_udp_timing_packet(pa_raop_client *c, const uint8_t packet[], ssize_t size) handle_udp_timing_packet() argument 1806 pa_raop_client_handle_oob_packet(pa_raop_client *c, const int fd, const uint8_t packet[], ssize_t size) pa_raop_client_handle_oob_packet() argument [all...] |
/third_party/curl/tests/server/ |
H A D | mqttd.c | 239 unsigned char packet[]={ in connack() local 245 packet[3] = config.error_connack; in connack() 247 rc = swrite(fd, (char *)packet, sizeof(packet)); in connack() 250 loghex(packet, rc); in connack() 251 logprotocol(FROM_SERVER, "CONNACK", 2, dump, packet, sizeof(packet)); in connack() 253 if(rc == sizeof(packet)) { in connack() 262 unsigned char packet[]={ in suback() local 268 packet[ in suback() 285 unsigned char packet[]={ puback() local 308 unsigned char packet[]={ disconnect() local 397 unsigned char *packet; publish() local [all...] |
/third_party/curl/lib/ |
H A D | mqtt.c | 170 /* add the passwd to the CONNECT packet */ 189 /* add user to the CONNECT packet */ 207 /* add client ID to the CONNECT packet */ 219 /* Set initial values of CONNECT packet */ 220 static int init_connpack(char *packet, char *remain, int remain_pos) in init_connpack() argument 223 /* packet type */ in init_connpack() 224 packet[0] = MQTT_MSG_CONNECT; in init_connpack() 226 memcpy(&packet[1], remain, remain_pos); in init_connpack() 231 packet[remain_pos + 1] = 0x00; in init_connpack() 232 packet[remain_po in init_connpack() 263 char *packet = NULL; mqtt_connect() local 441 unsigned char *packet = NULL; mqtt_subscribe() local 630 unsigned char packet; mqtt_read_publish() local [all...] |
/third_party/libdrm/tests/amdgpu/ |
H A D | security_tests.c | 152 static void amdgpu_sdma_lcopy(uint32_t *packet, in amdgpu_sdma_lcopy() argument 158 /* Set the packet to Linear copy with TMZ set. in amdgpu_sdma_lcopy() 160 packet[0] = htole32(secure << 18 | 1); in amdgpu_sdma_lcopy() 161 packet[1] = htole32(size-1); in amdgpu_sdma_lcopy() 162 packet[2] = htole32(0); in amdgpu_sdma_lcopy() 163 packet[3] = htole32((uint32_t)(src & 0xFFFFFFFFU)); in amdgpu_sdma_lcopy() 164 packet[4] = htole32((uint32_t)(src >> 32)); in amdgpu_sdma_lcopy() 165 packet[5] = htole32((uint32_t)(dst & 0xFFFFFFFFU)); in amdgpu_sdma_lcopy() 166 packet[6] = htole32((uint32_t)(dst >> 32)); in amdgpu_sdma_lcopy() 169 static void amdgpu_sdma_nop(uint32_t *packet, uint32_ argument 197 uint32_t packet[PACKET_LCOPY_SIZE]; amdgpu_bo_lcopy() local 234 uint32_t packet[PACKET_NOP_SIZE]; amdgpu_bo_move() local [all...] |
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_perfetto.cc | 78 auto packet = ctx.NewTracePacket(); 79 packet->Finalize(); 93 auto packet = ctx.NewTracePacket(); in send_descriptors() local 95 packet->set_timestamp(0); in send_descriptors() 97 auto event = packet->set_gpu_render_stage_event(); in send_descriptors() 148 auto packet = tctx.NewTracePacket(); in stage_end() 152 packet->set_timestamp(p->start_ts[stage] + gpu_timestamp_offset); in stage_end() 153 packet->set_timestamp_clock_id(gpu_clock_id); in stage_end() 155 auto event = packet->set_gpu_render_stage_event(); in stage_end() 231 auto packet in sync_timestamp() [all...] |
/third_party/node/src/quic/ |
H A D | packet.cc | 3 #include "packet.h" 36 // logging debug information about the packet. It identifies 37 // the purpose of the packet. 152 auto packet = static_cast<Packet*>(obj.get()); in FromFreeList() local 153 packet->data_ = std::move(data); in FromFreeList() 154 packet->destination_ = destination; in FromFreeList() 155 packet->listener_ = listener; in FromFreeList() 156 return BaseObjectPtr<Packet>(packet); in FromFreeList() 209 // As a performance optimization, we add this packet to a freelist in Done() 250 auto packet in CreateRetryPacket() local 275 auto packet = Packet::Create( CreateConnectionClosePacket() local 292 auto packet = Packet::Create(env, CreateImmediateConnectionClosePacket() local 333 auto packet = Packet::Create(env, CreateStatelessResetPacket() local 381 auto packet = Packet::Create(env, CreateVersionNegotiationPacket() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | opusdec.c | 144 delayptr, silk_resample_delay[s->packet.bandwidth]); in opus_init_resample() 163 s->packet.stereo + 1, 240, in opus_decode_redundancy() 164 0, ff_celt_band_end[s->packet.bandwidth]); in opus_decode_redundancy() 176 int samples = s->packet.frame_duration; in opus_decode_frame() 187 if (s->packet.mode == OPUS_MODE_SILK || s->packet.mode == OPUS_MODE_HYBRID) { in opus_decode_frame() 195 FFMIN(s->packet.bandwidth, OPUS_BANDWIDTH_WIDEBAND), in opus_decode_frame() 196 s->packet.stereo + 1, in opus_decode_frame() 197 silk_frame_duration_ms[s->packet.config]); in opus_decode_frame() 203 (uint8_t**)s->cur_out, s->packet in opus_decode_frame() [all...] |
H A D | xma_parser.c | 37 int duration = 0, packet, nb_packets = buf_size / 2048; in xma_parse() local 39 for (packet = 0; packet < nb_packets; packet++) { in xma_parse() 41 duration += buf[packet * 2048] * 128; in xma_parse() 42 s->skip_packets = buf[packet * 2048 + 3] + 1; in xma_parse() 51 /* always return the full packet. this parser isn't doing any splitting or in xma_parse() 52 combining, only packet analysis */ in xma_parse()
|
H A D | libxavs2.c | 56 xavs2_outpacket_t packet; member 208 ret = cae->api->encoder_encode(cae->encoder, &pic, &cae->packet); in xavs2_encode_frame() 216 cae->api->encoder_encode(cae->encoder, NULL, &cae->packet); in xavs2_encode_frame() 219 if ((cae->packet.len) && (cae->packet.state != XAVS2_STATE_FLUSH_END)) { in xavs2_encode_frame() 220 if ((ret = ff_get_encode_buffer(avctx, pkt, cae->packet.len, 0)) < 0) { in xavs2_encode_frame() 221 cae->api->encoder_packet_unref(cae->encoder, &cae->packet); in xavs2_encode_frame() 225 pkt->pts = cae->packet.pts; in xavs2_encode_frame() 226 pkt->dts = cae->packet.dts; in xavs2_encode_frame() 228 if (cae->packet in xavs2_encode_frame() [all...] |
/third_party/mesa3d/src/tool/pps/ |
H A D | pps_datasource.cc | 113 auto packet = ctx.NewTracePacket(); in close_callback() local 114 packet->set_timestamp_clock_id(perfetto::protos::pbzero::BUILTIN_CLOCK_BOOTTIME); in close_callback() 115 packet->set_timestamp(perfetto::base::GetBootTimeNs().count()); in close_callback() 116 packet->Finalize(); in close_callback() 273 auto packet = ctx.NewTracePacket(); in trace() local 274 packet->set_timestamp_clock_id(perfetto::protos::pbzero::BUILTIN_CLOCK_BOOTTIME); in trace() 275 packet->set_timestamp(descriptor_timestamp); in trace() 276 packet->set_sequence_flags(TracePacket::SEQ_INCREMENTAL_STATE_CLEARED); in trace() 282 auto packet = ctx.NewTracePacket(); in trace() local 283 packet in trace() 295 auto packet = ctx.NewTracePacket(); trace() local 329 auto packet = ctx.NewTracePacket(); trace() local 342 auto packet = ctx.NewTracePacket(); trace() local [all...] |
/third_party/ltp/testcases/network/sctp/ |
H A D | sctp_big_chunk.c | 36 static uint8_t packet[IP_MAXPACKET]; variable 82 memcpy(packet + *off, buf, buf_len); in update_packet_field() 120 packet[off++] = 1; in setup_client() 121 packet[off++] = 0; in setup_client() 144 packet[off + 15] = 1; in setup_client() 151 memcpy(packet + cmn_hdr_off + 2, &chunk_len, 2); in setup_client() 154 uint32_t csum = tst_crc32c(packet + ip6_hdr_len, pkt_len - ip6_hdr_len); in setup_client() 156 memcpy(packet + ip6_hdr_len + 8, &csum, 4); in setup_client() 159 memcpy(packet, &ip6, ip6_hdr_len); in setup_client() 173 /* We don't fragment IPv6 packet her in setup() [all...] |