Home
last modified time | relevance | path

Searched refs:seg (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/third_party/ffmpeg/libavformat/
Dsegment.c146 SegmentContext *seg = s->priv_data; in segment_mux_init() local
151 ret = avformat_alloc_output_context2(&seg->avf, seg->oformat, NULL, NULL); in segment_mux_init()
154 oc = seg->avf; in segment_mux_init()
197 SegmentContext *seg = s->priv_data; in set_segment_filename() local
198 AVFormatContext *oc = seg->avf; in set_segment_filename()
204 if (seg->segment_idx_wrap) in set_segment_filename()
205 seg->segment_idx %= seg->segment_idx_wrap; in set_segment_filename()
206 if (seg->use_strftime) { in set_segment_filename()
216 s->url, seg->segment_idx) < 0) { in set_segment_filename()
227 if (seg->entry_prefix) in set_segment_filename()
[all …]
Dhls.c894 struct segment *seg; in parse_playlist() local
898 seg = av_malloc(sizeof(struct segment)); in parse_playlist()
899 if (!seg) { in parse_playlist()
904 memcpy(seg->iv, iv, sizeof(iv)); in parse_playlist()
907 memset(seg->iv, 0, sizeof(seg->iv)); in parse_playlist()
908 AV_WB64(seg->iv + 8, seq); in parse_playlist()
915 av_free(seg); in parse_playlist()
918 seg->key = av_strdup(tmp_str); in parse_playlist()
919 if (!seg->key) { in parse_playlist()
920 av_free(seg); in parse_playlist()
[all …]
/third_party/ffmpeg/libavfilter/
Daf_afir.c86 AudioFIRSegment *seg = &s->seg[segment]; in fir_quantum() local
87 float *src = (float *)seg->input->extended_data[ch]; in fir_quantum()
88 float *dst = (float *)seg->output->extended_data[ch]; in fir_quantum()
89 float *sum = (float *)seg->sum->extended_data[ch]; in fir_quantum()
92 … s->fdsp->vector_fmul_scalar(src + seg->input_offset, in, s->dry_gain, FFALIGN(nb_samples, 4)); in fir_quantum()
96 src[seg->input_offset + n] = in[n] * s->dry_gain; in fir_quantum()
99 seg->output_offset[ch] += s->min_part_size; in fir_quantum()
100 if (seg->output_offset[ch] == seg->part_size) { in fir_quantum()
101 seg->output_offset[ch] = 0; in fir_quantum()
103 … memmove(src, src + s->min_part_size, (seg->input_size - s->min_part_size) * sizeof(*src)); in fir_quantum()
[all …]
/third_party/lwip/src/core/
Dtcp_out.c97 #define TCP_DATA_COPY(dst, src, len, seg) do { \ argument
99 len, &seg->chksum, &seg->chksum_swapped); \
100 seg->flags |= TF_SEG_DATA_CHECKSUMMED; } while(0)
104 #define TCP_DATA_COPY(dst, src, len, seg) MEMCPY(dst, src, len) argument
128 static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif);
160 struct tcp_seg *seg; in tcp_create_segment() local
168 if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) { in tcp_create_segment()
173 seg->flags = optflags; in tcp_create_segment()
174 seg->next = NULL; in tcp_create_segment()
175 seg->p = p; in tcp_create_segment()
[all …]
/third_party/qrcodegen/c/
Dqrcodegen-test.c821 struct qrcodegen_Segment seg = qrcodegen_makeBytes(NULL, 0, NULL); in testMakeBytes() local
822 assert(seg.mode == qrcodegen_Mode_BYTE); in testMakeBytes()
823 assert(seg.numChars == 0); in testMakeBytes()
824 assert(seg.bitLength == 0); in testMakeBytes()
830 struct qrcodegen_Segment seg = qrcodegen_makeBytes(data, 1, buf); in testMakeBytes() local
831 assert(seg.numChars == 1); in testMakeBytes()
832 assert(seg.bitLength == 8); in testMakeBytes()
833 assert(seg.data[0] == 0x00); in testMakeBytes()
839 struct qrcodegen_Segment seg = qrcodegen_makeBytes(data, 3, buf); in testMakeBytes() local
840 assert(seg.numChars == 3); in testMakeBytes()
[all …]
/third_party/flutter/skia/src/core/
DSkContourMeasure.cpp185 SkContourMeasure::Segment* seg = fSegments.append(); in compute_quad_segs() local
186 seg->fDistance = distance; in compute_quad_segs()
187 seg->fPtIndex = ptIndex; in compute_quad_segs()
188 seg->fType = kQuad_SegType; in compute_quad_segs()
189 seg->fTValue = maxt; in compute_quad_segs()
213 SkContourMeasure::Segment* seg = fSegments.append(); in compute_conic_segs() local
214 seg->fDistance = distance; in compute_conic_segs()
215 seg->fPtIndex = ptIndex; in compute_conic_segs()
216 seg->fType = kConic_SegType; in compute_conic_segs()
217 seg->fTValue = maxt; in compute_conic_segs()
[all …]
/third_party/skia/src/core/
DSkContourMeasure.cpp223 SkContourMeasure::Segment* seg = fSegments.append(); in compute_quad_segs() local
224 seg->fDistance = distance; in compute_quad_segs()
225 seg->fPtIndex = ptIndex; in compute_quad_segs()
226 seg->fType = kQuad_SegType; in compute_quad_segs()
227 seg->fTValue = maxt; in compute_quad_segs()
251 SkContourMeasure::Segment* seg = fSegments.append(); in compute_conic_segs() local
252 seg->fDistance = distance; in compute_conic_segs()
253 seg->fPtIndex = ptIndex; in compute_conic_segs()
254 seg->fType = kConic_SegType; in compute_conic_segs()
255 seg->fTValue = maxt; in compute_conic_segs()
[all …]
/third_party/boost/libs/geometry/test/algorithms/
Dcomparable_distance.cpp87 bg::model::referring_segment<P const> const seg(s1, s2); in test_distance_segment() local
89 coordinate_type d1 = bg::comparable_distance(p1, seg); BOOST_CHECK_CLOSE(d1, 8.0, 0.001); in test_distance_segment()
90 coordinate_type d2 = bg::comparable_distance(p2, seg); BOOST_CHECK_CLOSE(d2, 2.0, 0.001); in test_distance_segment()
91 coordinate_type d3 = bg::comparable_distance(p3, seg); BOOST_CHECK_CLOSE(d3, 0.02, 0.001); in test_distance_segment()
92 coordinate_type d4 = bg::comparable_distance(p4, seg); BOOST_CHECK_CLOSE(d4, 0.02, 0.001); in test_distance_segment()
93 coordinate_type d5 = bg::comparable_distance(p5, seg); BOOST_CHECK_CLOSE(d5, 0.0, 0.001); in test_distance_segment()
96 coordinate_type dr1 = bg::comparable_distance(seg, p1); BOOST_CHECK_CLOSE(dr1, d1, 0.001); in test_distance_segment()
97 coordinate_type dr2 = bg::comparable_distance(seg, p2); BOOST_CHECK_CLOSE(dr2, d2, 0.001); in test_distance_segment()
183 segment_type seg; in apply() local
184 bg::read_wkt("LINESTRING(1 1,4 4)", seg); in apply()
[all …]
/third_party/elfio/elfio/
Delfio.hpp286 const segment* seg = segments[h]; in validate() local
287 if ( seg->get_type() == PT_LOAD && seg->get_file_size() > 0 ) { in validate()
288 auto sec = find_prog_section_for_offset( seg->get_offset() ); in validate()
290 auto sec_addr = get_virtual_addr( seg->get_offset(), sec ); in validate()
291 if ( sec_addr != seg->get_virtual_address() ) { in validate()
292 …Virtual address of segment " + std::to_string( h ) + " (" + to_hex_string( seg->get_virtual_addres… in validate()
294 + " at offset " + to_hex_string( seg->get_offset() ) + "\n"; in validate()
490 segment* seg; in load_segments() local
494 seg = new segment_impl<Elf64_Phdr>( &convertor ); in load_segments()
497 seg = new segment_impl<Elf32_Phdr>( &convertor ); in load_segments()
[all …]
/third_party/pulseaudio/src/pulsecore/
Dg711.c98 short seg; in st_13linear2alaw() local
115 seg = search(pcm_val, seg_aend, 8); in st_13linear2alaw()
119 if (seg >= 8) /* out of range, return maximum value. */ in st_13linear2alaw()
122 aval = (unsigned char) seg << SEG_SHIFT; in st_13linear2alaw()
123 if (seg < 2) in st_13linear2alaw()
126 aval |= (pcm_val >> seg) & QUANT_MASK; in st_13linear2alaw()
139 int16_t seg; in st_alaw2linear16() local
144 seg = ((unsigned)a_val & SEG_MASK) >> SEG_SHIFT; in st_alaw2linear16()
145 switch (seg) { in st_alaw2linear16()
154 t <<= seg - 1; in st_alaw2linear16()
[all …]
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Dgstvp9parser.c274 parse_segmentation (GstVp9SegmentationInfo * seg, GstBitReader * br) in parse_segmentation() argument
278 seg->update_map = FALSE; in parse_segmentation()
279 seg->update_data = FALSE; in parse_segmentation()
281 seg->enabled = gst_vp9_read_bit (br); in parse_segmentation()
282 if (!seg->enabled) in parse_segmentation()
286 seg->update_map = gst_vp9_read_bit (br); in parse_segmentation()
287 if (seg->update_map) { in parse_segmentation()
289 seg->update_tree_probs[i] = gst_vp9_read_bit (br); in parse_segmentation()
290 seg->tree_probs[i] = seg->update_tree_probs[i] ? in parse_segmentation()
294 seg->temporal_update = gst_vp9_read_bit (br); in parse_segmentation()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/
Dafcjk.c191 AF_Segment seg, limit, link; in af_cjk_metrics_init_widths() local
211 seg = axhints->segments; in af_cjk_metrics_init_widths()
212 limit = seg + axhints->num_segments; in af_cjk_metrics_init_widths()
214 for ( ; seg < limit; seg++ ) in af_cjk_metrics_init_widths()
216 link = seg->link; in af_cjk_metrics_init_widths()
219 if ( link && link->link == seg && link > seg ) in af_cjk_metrics_init_widths()
224 dist = seg->pos - link->pos; in af_cjk_metrics_init_widths()
811 AF_Segment seg; in af_cjk_hints_compute_segments() local
820 for ( seg = segments; seg < segment_limit; seg++ ) in af_cjk_hints_compute_segments()
822 AF_Point pt = seg->first; in af_cjk_hints_compute_segments()
[all …]
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafcjk.c185 AF_Segment seg, limit, link; in af_cjk_metrics_init_widths() local
205 seg = axhints->segments; in af_cjk_metrics_init_widths()
206 limit = seg + axhints->num_segments; in af_cjk_metrics_init_widths()
208 for ( ; seg < limit; seg++ ) in af_cjk_metrics_init_widths()
210 link = seg->link; in af_cjk_metrics_init_widths()
213 if ( link && link->link == seg && link > seg ) in af_cjk_metrics_init_widths()
218 dist = seg->pos - link->pos; in af_cjk_metrics_init_widths()
804 AF_Segment seg; in af_cjk_hints_compute_segments() local
813 for ( seg = segments; seg < segment_limit; seg++ ) in af_cjk_hints_compute_segments()
815 AF_Point pt = seg->first; in af_cjk_hints_compute_segments()
[all …]
/third_party/freetype/src/autofit/
Dafcjk.c190 AF_Segment seg, limit, link; in af_cjk_metrics_init_widths() local
210 seg = axhints->segments; in af_cjk_metrics_init_widths()
211 limit = seg + axhints->num_segments; in af_cjk_metrics_init_widths()
213 for ( ; seg < limit; seg++ ) in af_cjk_metrics_init_widths()
215 link = seg->link; in af_cjk_metrics_init_widths()
218 if ( link && link->link == seg && link > seg ) in af_cjk_metrics_init_widths()
223 dist = seg->pos - link->pos; in af_cjk_metrics_init_widths()
810 AF_Segment seg; in af_cjk_hints_compute_segments() local
819 for ( seg = segments; seg < segment_limit; seg++ ) in af_cjk_hints_compute_segments()
821 AF_Point pt = seg->first; in af_cjk_hints_compute_segments()
[all …]
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
Dstreamname.py55 def normalize_segment(seg, prefix=None): argument
70 if not seg:
73 seg = prefix
85 seg = ''.join(replace_if_invalid(ch, i == 0) for i, ch in enumerate(seg))
87 if _SEGMENT_RE.match(seg) is None:
88 raise AssertionError('Normalized segment is still invalid: %r' % seg)
90 return seg
109 normalize_segment(seg, prefix=prefix) for seg in v.split(_STREAM_SEP))
/third_party/ltp/testcases/kernel/syscalls/modify_ldt/
Dmodify_ldt02.c95 int seg[4]; in main() local
104 seg[0] = 12345; in main()
105 if (create_segment(seg, sizeof(seg)) == -1) { in main()
111 if (val != seg[0]) { in main()
113 val, seg[0]); in main()
145 int create_segment(void *seg, size_t size) in create_segment() argument
150 entry.base_addr = (unsigned long)seg; in create_segment()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/mpegts/
Dgst-atsc-section.c594 _gst_mpegts_atsc_string_segment_copy (GstMpegtsAtscStringSegment * seg) in _gst_mpegts_atsc_string_segment_copy() argument
598 copy = g_slice_dup (GstMpegtsAtscStringSegment, seg); in _gst_mpegts_atsc_string_segment_copy()
604 _gst_mpegts_atsc_string_segment_free (GstMpegtsAtscStringSegment * seg) in _gst_mpegts_atsc_string_segment_free() argument
606 g_free (seg->cached_string); in _gst_mpegts_atsc_string_segment_free()
607 g_slice_free (GstMpegtsAtscStringSegment, seg); in _gst_mpegts_atsc_string_segment_free()
611 _gst_mpegts_atsc_string_segment_decode_string (GstMpegtsAtscStringSegment * seg) in _gst_mpegts_atsc_string_segment_decode_string() argument
615 g_return_if_fail (seg->cached_string == NULL); in _gst_mpegts_atsc_string_segment_decode_string()
617 if (seg->compression_type != 0) { in _gst_mpegts_atsc_string_segment_decode_string()
623 switch (seg->mode) { in _gst_mpegts_atsc_string_segment_decode_string()
632 if (from_encoding != NULL && seg->compressed_data_size > 0) { in _gst_mpegts_atsc_string_segment_decode_string()
[all …]
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/
DREADME41 anon <seg-name> <seg-size>[k|m|g|p] [<seg-share>] -
43 <seg-share> := private|shared - default = private
45 file <pathname> [<offset>[k|m|g|p] <length>[k|m|g|p]] [<seg-share>] -
49 <seg-share> := private|shared - default = private
51 shm <seg-name> <seg-size>[k|m|g|p] -
56 remove <seg-name> [<seg-name> ...] - remove the named segment[s]
58 map <seg-name> [<offset>[k|m|g|p] <length>[k|m|g|p]] [<seg-share>] -
65 unmap <seg-name> - unmap specified segment, but remember name/size/...
67 touch <seg-name> [<offset>[k|m|g|p] <length>[k|m|g|p]] [read|write] -
72 mbind <seg-name> [<offset>[k|m|g|p] <length>[k|m|g|p]]
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/data/unit/
Des_AR.txt48 dnam{"seg."}
49 one{"{0}seg."}
50 other{"{0}seg."}
69 dnam{"seg."}
70 one{"{0} seg."}
71 other{"{0} seg."}
72 per{"{0}/seg."}
/third_party/icu/icu4c/source/data/unit/
Des_AR.txt44 dnam{"seg."}
45 one{"{0}seg."}
46 other{"{0}seg."}
65 dnam{"seg."}
66 one{"{0} seg."}
67 other{"{0} seg."}
68 per{"{0}/seg."}
/third_party/skia/third_party/externals/icu/source/data/unit/
Des_AR.txt44 dnam{"seg."}
45 one{"{0}seg."}
46 other{"{0}seg."}
65 dnam{"seg."}
66 one{"{0} seg."}
67 other{"{0} seg."}
68 per{"{0}/seg."}
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrBulkMemory.td39 (ins i32imm_op:$seg, i32imm_op:$idx, I32:$dest,
41 (outs), (ins i32imm_op:$seg, i32imm_op:$idx),
42 [(int_wasm_memory_init (i32 timm:$seg), (i32 timm:$idx), I32:$dest,
45 "memory.init\t$seg, $idx, $dest, $offset, $size",
46 "memory.init\t$seg, $idx", 0x08>;
50 BULK_I<(outs), (ins i32imm_op:$seg), (outs), (ins i32imm_op:$seg),
51 [(int_wasm_data_drop (i32 timm:$seg))],
52 "data.drop\t$seg", "data.drop\t$seg", 0x09>;
/third_party/skia/samplecode/
DSampleVariableWidthStroker.cpp465 std::vector<PathSegment> strokeSegment(const PathSegment& seg,
483 static SkPoint unitNormal(const PathSegment& seg, float t, SkPoint* tangentOut);
486 static int segmentDegree(const PathSegment& seg);
489 static void splitSegment(const PathSegment& seg, float t, PathSegment* segA, PathSegment* segB);
495 static void approximateSegment(const PathSegment& seg,
532 for (const PathSegment& seg : strokes.fOuter) { in getFillPath() local
533 fOuter.quadTo(seg.fPoints[1], seg.fPoints[2]); in getFillPath()
536 for (const PathSegment& seg : strokes.fInner) { in getFillPath() local
537 fInner.quadTo(seg.fPoints[1], seg.fPoints[2]); in getFillPath()
639 const PathSegment& seg, const ScalarBezCurve& distanceFunc) const { in strokeSegment() argument
[all …]
/third_party/boost/libs/geometry/test/geometries/
Dsegment.cpp64 refseg_t seg(p1, p2); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() local
76 S seg; in test_custom() local
77 bg::set<0,0>(seg, 1); in test_custom()
78 bg::set<0,1>(seg, 2); in test_custom()
79 bg::set<1,0>(seg, 3); in test_custom()
80 bg::set<1,1>(seg, 4); in test_custom()
82 out << bg::dsv(seg); in test_custom()
/third_party/ffmpeg/libavcodec/
Dac3.c192 int i, seg, delta; in ff_ac3_bit_alloc_calc_mask() local
196 for (seg = 0; seg < dba_nsegs; seg++) { in ff_ac3_bit_alloc_calc_mask()
197 band += dba_offsets[seg]; in ff_ac3_bit_alloc_calc_mask()
198 if (band >= AC3_CRITICAL_BANDS || dba_lengths[seg] > AC3_CRITICAL_BANDS-band) in ff_ac3_bit_alloc_calc_mask()
200 if (dba_values[seg] >= 4) { in ff_ac3_bit_alloc_calc_mask()
201 delta = (dba_values[seg] - 3) * 128; in ff_ac3_bit_alloc_calc_mask()
203 delta = (dba_values[seg] - 4) * 128; in ff_ac3_bit_alloc_calc_mask()
205 for (i = 0; i < dba_lengths[seg]; i++) { in ff_ac3_bit_alloc_calc_mask()

12345678910>>...14