Home
last modified time | relevance | path

Searched refs:pc (Results 1 – 25 of 1597) sorted by relevance

12345678910>>...64

/third_party/ffmpeg/libavcodec/
Ddirac_parser.c56 static int find_frame_end(DiracParseContext *pc, in find_frame_end() argument
59 uint32_t state = pc->state; in find_frame_end()
62 if (!pc->is_synced) { in find_frame_end()
67 pc->is_synced = 1; in find_frame_end()
68 pc->header_bytes_needed = 9; in find_frame_end()
69 pc->sync_offset = i; in find_frame_end()
75 if (pc->is_synced) { in find_frame_end()
76 pc->sync_offset = 0; in find_frame_end()
79 if ((buf_size - i) >= pc->header_bytes_needed) { in find_frame_end()
80 pc->state = -1; in find_frame_end()
[all …]
Ddvbsub_parser.c49 DVBSubParseContext *pc = s->priv_data; in dvbsub_parse() local
74 if (pc->packet_index != pc->packet_start) in dvbsub_parse()
77 pc->packet_index - pc->packet_start); in dvbsub_parse()
80 pc->packet_start = 0; in dvbsub_parse()
81 pc->packet_index = 0; in dvbsub_parse()
90 pc->in_packet = 1; in dvbsub_parse()
92 if (pc->packet_start != 0) in dvbsub_parse()
94 if (pc->packet_index != pc->packet_start) in dvbsub_parse()
96 memmove(pc->packet_buf, pc->packet_buf + pc->packet_start, in dvbsub_parse()
97 pc->packet_index - pc->packet_start); in dvbsub_parse()
[all …]
Ddvdsub_parser.c40 DVDSubParseContext *pc = s->priv_data; in dvdsub_parse() local
45 if (pc->packet_index == 0) { in dvdsub_parse()
51 pc->packet_len = AV_RB16(buf); in dvdsub_parse()
52 if (pc->packet_len == 0) /* HD-DVD subpicture packet */ in dvdsub_parse()
53 pc->packet_len = AV_RB32(buf+2); in dvdsub_parse()
54 av_freep(&pc->packet); in dvdsub_parse()
55 if ((unsigned)pc->packet_len > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in dvdsub_parse()
56 av_log(avctx, AV_LOG_ERROR, "packet length %d is invalid\n", pc->packet_len); in dvdsub_parse()
59 pc->packet = av_malloc(pc->packet_len + AV_INPUT_BUFFER_PADDING_SIZE); in dvdsub_parse()
61 if (pc->packet) { in dvdsub_parse()
[all …]
Dparser.c238 int ff_combine_frame(ParseContext *pc, int next, in ff_combine_frame() argument
241 if (pc->overread) { in ff_combine_frame()
243 pc->overread, pc->state, next, pc->index, pc->overread_index); in ff_combine_frame()
249 for (; pc->overread > 0; pc->overread--) in ff_combine_frame()
250 pc->buffer[pc->index++] = pc->buffer[pc->overread_index++]; in ff_combine_frame()
259 pc->last_index = pc->index; in ff_combine_frame()
263 void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, in ff_combine_frame()
264 *buf_size + pc->index + in ff_combine_frame()
268 …av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", *buf_size + pc->index + A… in ff_combine_frame()
269 pc->index = 0; in ff_combine_frame()
[all …]
Dpnm_parser.c29 ParseContext pc; member
39 ParseContext *pc = &pnmpc->pc; in pnm_parse() local
44 if (pc->overread > 0) { in pnm_parse()
45 memmove(pc->buffer + pc->index, pc->buffer + pc->overread_index, pc->overread); in pnm_parse()
46 pc->index += pc->overread; in pnm_parse()
47 pc->overread_index += pc->overread; in pnm_parse()
48 pc->overread = 0; in pnm_parse()
62 if (pc->index) { in pnm_parse()
64 pnmctx.bytestream = pc->buffer; in pnm_parse()
65 pnmctx.bytestream_end = pc->buffer + pc->index; in pnm_parse()
[all …]
Djpeg2000_parser.c37 ParseContext pc; member
52 ParseContext *pc = &m->pc; in reset_context() local
54 pc->frame_start_found= 0; in reset_context()
55 pc->state = 0; in reset_context()
85 ParseContext *pc= &m->pc; in find_frame_end() local
89 state= pc->state; in find_frame_end()
90 state64 = pc->state64; in find_frame_end()
117 if (pc->frame_start_found) { in find_frame_end()
118 pc->frame_start_found = 0; in find_frame_end()
122 pc->frame_start_found = 1; in find_frame_end()
[all …]
Dwebp_parser.c32 ParseContext pc; member
42 uint64_t state = ctx->pc.state64; in webp_parse()
50 if (ctx->pc.frame_start_found <= 8) { in webp_parse()
53 if (ctx->pc.frame_start_found == 0) { in webp_parse()
57 ctx->pc.frame_start_found = 1; in webp_parse()
61 } else if (ctx->pc.frame_start_found == 8) { in webp_parse()
63 ctx->pc.frame_start_found = 0; in webp_parse()
66 ctx->pc.frame_start_found++; in webp_parse()
68 if (ctx->pc.index + i > 15) { in webp_parse()
73 ctx->pc.state64 = 0; in webp_parse()
[all …]
Dbmp_parser.c33 ParseContext pc; member
43 uint64_t state = bpc->pc.state64; in bmp_parse()
51 if (bpc->pc.frame_start_found <= 2+4+4) { in bmp_parse()
54 if (bpc->pc.frame_start_found == 0) { in bmp_parse()
58 bpc->pc.frame_start_found = 1; in bmp_parse()
60 } else if (bpc->pc.frame_start_found == 2+4+4) { in bmp_parse()
64 bpc->pc.frame_start_found = 0; in bmp_parse()
67 bpc->pc.frame_start_found++; in bmp_parse()
70 if (bpc->pc.index + i > 17) { in bmp_parse()
75 bpc->pc.state64 = 0; in bmp_parse()
[all …]
Dsbc_parser.c27 ParseContext pc; member
78 SBCParseContext *pc = s->priv_data; in sbc_parse() local
84 if (pc->header_size) { in sbc_parse()
85 memcpy(pc->header + pc->header_size, buf, in sbc_parse()
86 sizeof(pc->header) - pc->header_size); in sbc_parse()
87 next = sbc_parse_header(s, avctx, pc->header, sizeof(pc->header)) in sbc_parse()
88 - pc->buffered_size; in sbc_parse()
89 pc->header_size = 0; in sbc_parse()
97 pc->header_size = FFMIN(sizeof(pc->header), buf_size); in sbc_parse()
98 memcpy(pc->header, buf, pc->header_size); in sbc_parse()
[all …]
Dtak_parser.c32 ParseContext pc; member
42 ParseContext *pc = &t->pc; in tak_parse() local
62 while (buf_size || t->index + needed <= pc->index) { in tak_parse()
63 if (buf_size && t->index + TAK_MAX_FRAME_HEADER_BYTES > pc->index) { in tak_parse()
68 if (ff_combine_frame(pc, END_NOT_FOUND, &tmp_buf, &tmp_buf_size) != -1) in tak_parse()
75 for (; t->index + needed <= pc->index; t->index++) { in tak_parse()
76 if (pc->buffer[ t->index ] == 0xFF && in tak_parse()
77 pc->buffer[ t->index + 1 ] == 0xA0) { in tak_parse()
80 if ((ret = init_get_bits8(&gb, pc->buffer + t->index, in tak_parse()
81 pc->index - t->index)) < 0) in tak_parse()
[all …]
Dmpegvideo_parser.c28 ParseContext pc; member
39 struct MpvParseContext *pc = s->priv_data; in mpegvideo_extract_headers() local
69 pc->width = (buf[0] << 4) | (buf[1] >> 4); in mpegvideo_extract_headers()
70 pc->height = ((buf[1] & 0x0f) << 8) | buf[2]; in mpegvideo_extract_headers()
72 set_dim_ret = ff_set_dimensions(avctx, pc->width, pc->height); in mpegvideo_extract_headers()
77 pc->frame_rate = avctx->framerate = ff_mpeg12_frame_rate_tab[frame_rate_index]; in mpegvideo_extract_headers()
94 pc->progressive_sequence = buf[1] & (1 << 3); in mpegvideo_extract_headers()
104 pc->width = (pc->width & 0xFFF) | (horiz_size_ext << 12); in mpegvideo_extract_headers()
105 pc->height = (pc->height& 0xFFF) | ( vert_size_ext << 12); in mpegvideo_extract_headers()
108 set_dim_ret = ff_set_dimensions(avctx, pc->width, pc->height); in mpegvideo_extract_headers()
[all …]
Dmpeg4video_parser.c32 ParseContext pc; member
37 int ff_mpeg4_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size) in ff_mpeg4_find_frame_end() argument
42 vop_found = pc->frame_start_found; in ff_mpeg4_find_frame_end()
43 state = pc->state; in ff_mpeg4_find_frame_end()
66 pc->frame_start_found = 0; in ff_mpeg4_find_frame_end()
67 pc->state = -1; in ff_mpeg4_find_frame_end()
72 pc->frame_start_found = vop_found; in ff_mpeg4_find_frame_end()
73 pc->state = state; in ff_mpeg4_find_frame_end()
81 struct Mp4vParseContext *pc = s1->priv_data; in mpeg4_decode_header() local
82 Mpeg4DecContext *dec_ctx = &pc->dec_ctx; in mpeg4_decode_header()
[all …]
Dmlp_parser.c37 ParseContext pc; member
78 mp->pc.state = (mp->pc.state << 8) | buf[i]; in mlp_parse()
79 if ((mp->pc.state & 0xfffffffe) == 0xf8726fba && in mlp_parse()
81 mp->pc.index + i >= 7) { in mlp_parse()
89 if (ff_combine_frame(&mp->pc, END_NOT_FOUND, &buf, &buf_size) != -1) in mlp_parse()
94 if ((ret = ff_combine_frame(&mp->pc, i - 7, &buf, &buf_size)) < 0) { in mlp_parse()
106 for(; mp->pc.overread>0; mp->pc.overread--) { in mlp_parse()
107 mp->pc.buffer[mp->pc.index++]= mp->pc.buffer[mp->pc.overread_index++]; in mlp_parse()
110 if (mp->pc.index + buf_size < 2) { in mlp_parse()
111 if (ff_combine_frame(&mp->pc, END_NOT_FOUND, &buf, &buf_size) != -1) in mlp_parse()
[all …]
Ddpx_parser.c33 ParseContext pc; member
45 uint32_t state = d->pc.state; in dpx_parse()
55 if (!d->pc.frame_start_found) { in dpx_parse()
60 d->pc.frame_start_found = 1; in dpx_parse()
66 d->pc.state = state; in dpx_parse()
76 for (; d->pc.frame_start_found && i < buf_size; i++) { in dpx_parse()
77 d->pc.state = (d->pc.state << 8) | buf[i]; in dpx_parse()
80 d->fsize = d->is_be ? d->pc.state : av_bswap32(d->pc.state); in dpx_parse()
82 d->pc.frame_start_found = 0; in dpx_parse()
92 if (d->pc.state == MKBETAG('S','D','P','X') || in dpx_parse()
[all …]
/third_party/grpc/test/core/end2end/fixtures/
Dproxy.cc140 static void unrefpc(proxy_call* pc, const char* /*reason*/) { in unrefpc() argument
141 if (gpr_unref(&pc->refs)) { in unrefpc()
142 grpc_call_unref(pc->c2p); in unrefpc()
143 grpc_call_unref(pc->p2s); in unrefpc()
144 grpc_metadata_array_destroy(&pc->c2p_initial_metadata); in unrefpc()
145 grpc_metadata_array_destroy(&pc->p2s_initial_metadata); in unrefpc()
146 grpc_metadata_array_destroy(&pc->p2s_trailing_metadata); in unrefpc()
147 grpc_slice_unref(pc->p2s_status_details); in unrefpc()
148 gpr_free(pc); in unrefpc()
152 static void refpc(proxy_call* pc, const char* /*reason*/) { in refpc() argument
[all …]
/third_party/mesa3d/src/glx/
Dpackrender.h58 GLubyte *pc, *pixelHeaderPC; \
63 pc = gc->pc; \
77 if (pc + (size) > gc->bufEnd) { \
78 pc = __glXFlushRenderBuffer(gc, pc); \
84 pc = __glXFlushRenderBuffer(gc, pc); \
89 if (pc + (size) > gc->bufEnd) { \
90 pc = __glXFlushRenderBuffer(gc, pc); \
94 pc += __GLX_RENDER_HDR_SIZE; \
95 pixelHeaderPC = pc; \
96 pc += __GLX_PIXEL_HDR_SIZE
[all …]
/third_party/FreeBSD/stand/usb/
Dusb_busdma_loader.c35 static void usb_pc_common_mem_cb(struct usb_page_cache *pc,
66 usbd_get_page(struct usb_page_cache *pc, usb_frlength_t offset, in usbd_get_page() argument
71 if (pc->page_start) { in usbd_get_page()
74 if (pc->buffer) { in usbd_get_page()
78 res->buffer = USB_ADD_BYTES(pc->buffer, offset); in usbd_get_page()
80 offset += pc->page_offset_buf; in usbd_get_page()
84 page = pc->page_start; in usbd_get_page()
86 if (pc->ismultiseg) { in usbd_get_page()
98 if (!pc->buffer) { in usbd_get_page()
109 res->buffer = USB_ADD_BYTES(pc->buffer, offset); in usbd_get_page()
[all …]
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-raw-proxy/
Dminimal-ws-raw-proxy.c76 proxy_conn_t *pc = (proxy_conn_t *)lws_get_opaque_user_data(wsi); in callback_proxy_ws_server() local
85 pc = malloc(sizeof(*pc)); in callback_proxy_ws_server()
86 memset(pc, 0, sizeof(*pc)); in callback_proxy_ws_server()
89 lws_set_opaque_user_data(wsi, pc); in callback_proxy_ws_server()
91 pc->wsi_ws = wsi; in callback_proxy_ws_server()
108 i.opaque_user_data = pc; in callback_proxy_ws_server()
110 i.pwsi = &pc->wsi_raw; in callback_proxy_ws_server()
125 lws_dll2_foreach_safe(&pc->pending_msg_to_ws, NULL, in callback_proxy_ws_server()
132 pc->wsi_ws = NULL; in callback_proxy_ws_server()
135 if (!pc->wsi_raw) { in callback_proxy_ws_server()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/indices/
Du_primconvert.c66 struct primconvert_context *pc = CALLOC_STRUCT(primconvert_context); in util_primconvert_create_config() local
67 if (!pc) in util_primconvert_create_config()
69 pc->pipe = pipe; in util_primconvert_create_config()
70 pc->cfg = *cfg; in util_primconvert_create_config()
71 return pc; in util_primconvert_create_config()
82 util_primconvert_destroy(struct primconvert_context *pc) in util_primconvert_destroy() argument
84 FREE(pc); in util_primconvert_destroy()
88 util_primconvert_save_rasterizer_state(struct primconvert_context *pc, in util_primconvert_save_rasterizer_state() argument
92 util_primconvert_save_flatshade_first(pc, rast->flatshade_first); in util_primconvert_save_rasterizer_state()
96 util_primconvert_save_flatshade_first(struct primconvert_context *pc, bool flatshade_first) in util_primconvert_save_flatshade_first() argument
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i965/
DgenX_pipe_control.c465 brw_batch_emit(brw, GENX(PIPE_CONTROL), pc) { in genX()
467 pc.FlushLLC = 0; in genX()
470 pc.LRIPostSyncOperation = NoLRIOperation; in genX()
471 pc.PipeControlFlushEnable = flags & PIPE_CONTROL_FLUSH_ENABLE; in genX()
472 pc.DCFlushEnable = flags & PIPE_CONTROL_DATA_CACHE_FLUSH; in genX()
475 pc.StoreDataIndex = 0; in genX()
476 pc.CommandStreamerStallEnable = flags & PIPE_CONTROL_CS_STALL; in genX()
477 pc.GlobalSnapshotCountReset = in genX()
479 pc.TLBInvalidate = flags & PIPE_CONTROL_TLB_INVALIDATE; in genX()
480 pc.GenericMediaStateClear = flags & PIPE_CONTROL_MEDIA_STATE_CLEAR; in genX()
[all …]
/third_party/boost/libs/pool/test/
Dtest_simple_seg_storage.cpp108 char* const pc = track_allocator::malloc(block_size); in main() local
110 BOOST_ASSERT(pc); in main()
112 void* const pvret = test_simp_seg_store::segregate(pc, block_size, in main()
116 BOOST_TEST(pvret == pc); in main()
131 + partition_sz, pc + block_size)); in main()
148 char* const pc = track_allocator::malloc(block_size); in main() local
149 tstore.add_block(pc, block_size, partition_sz); in main()
152 BOOST_TEST(tstore.get_first() == pc); in main()
175 char* const pc = track_allocator::malloc(partition_sz); in main() local
176 tstore.add_block(pc, partition_sz, partition_sz); in main()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_perfcounter.c37 lookup_counter(struct r600_perfcounters *pc, unsigned index, in lookup_counter() argument
40 struct r600_perfcounter_block *block = pc->blocks; in lookup_counter()
44 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { in lookup_counter()
60 lookup_group(struct r600_perfcounters *pc, unsigned *index) in lookup_group() argument
63 struct r600_perfcounter_block *block = pc->blocks; in lookup_group()
65 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { in lookup_group()
130 struct r600_perfcounters *pc = ctx->screen->perfcounters; in r600_pc_query_emit_start() local
137 pc->emit_shaders(ctx, query->shaders); in r600_pc_query_emit_start()
145 pc->emit_instance(ctx, group->se, group->instance); in r600_pc_query_emit_start()
148 pc->emit_select(ctx, block, group->num_counters, group->selectors); in r600_pc_query_emit_start()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/buffer/
Dbuffered_piece_collection.hpp543 piece& pc = *it; in update_piece_administration() local
544 piece_border_type& border = pc.m_piece_border; in update_piece_administration()
545 buffered_ring<Ring> const& ring = offsetted_rings[pc.first_seg_id.multi_index]; in update_piece_administration()
547 if (pc.offsetted_count > 0) in update_piece_administration()
549 if (pc.type != strategy::buffer::buffered_concave) in update_piece_administration()
551 border.set_offsetted(ring, pc.first_seg_id.segment_index, in update_piece_administration()
552 pc.beyond_last_segment_index); in update_piece_administration()
556 …border.get_properties_of_border(pc.type == geometry::strategy::buffer::buffered_point, pc.m_center… in update_piece_administration()
557 if (! pc.is_flat_end && ! pc.is_flat_start) in update_piece_administration()
799 piece pc; in create_piece() local
[all …]
/third_party/boost/libs/spirit/example/x3/calc/calc9/
Dvm.cpp14 , std::vector<int>::const_iterator pc in execute() argument
20 while (pc != code.end()) in execute()
22 BOOST_ASSERT(pc != code.end()); in execute()
24 switch (*pc++) in execute()
95 *stack_ptr++ = frame_ptr[*pc++]; in execute()
100 frame_ptr[*pc++] = stack_ptr[0]; in execute()
104 *stack_ptr++ = *pc++; in execute()
116 pc += *pc; in execute()
121 pc += *pc; in execute()
123 ++pc; in execute()
[all …]
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/calc8/
Dvm.cpp19 , std::vector<int>::const_iterator pc in execute() argument
25 while (pc != code.end()) in execute()
27 BOOST_ASSERT(pc != code.end()); in execute()
29 switch (*pc++) in execute()
100 *stack_ptr++ = frame_ptr[*pc++]; in execute()
105 frame_ptr[*pc++] = stack_ptr[0]; in execute()
109 *stack_ptr++ = *pc++; in execute()
121 pc += *pc; in execute()
126 pc += *pc; in execute()
128 ++pc; in execute()
[all …]

12345678910>>...64