Home
last modified time | relevance | path

Searched refs:granulepos (Results 1 – 25 of 28) sorted by relevance

12

/third_party/gstreamer/gstplugins_base/tests/check/pipelines/
Dtheoraenc.c67 check_buffer_granulepos (GstBuffer * buffer, gint64 granulepos) in check_buffer_granulepos() argument
75 if (granulepos >> GRANULEPOS_SHIFT) in check_buffer_granulepos()
76 granulepos -= 1 << GRANULEPOS_SHIFT; in check_buffer_granulepos()
77 else if (granulepos) in check_buffer_granulepos()
78 granulepos -= 1; in check_buffer_granulepos()
81 fail_unless (GST_BUFFER_OFFSET_END (buffer) == granulepos, in check_buffer_granulepos()
84 granulepos, GST_BUFFER_OFFSET_END (buffer)); in check_buffer_granulepos()
89 framecount = granulepos >> GRANULEPOS_SHIFT; in check_buffer_granulepos()
90 framecount += granulepos & ((1 << GRANULEPOS_SHIFT) - 1); in check_buffer_granulepos()
109 gint64 granulepos, expected, framecount; in check_buffer_granulepos_from_starttime() local
[all …]
Dvorbisenc.c52 check_buffer_granulepos (GstBuffer * buffer, gint64 granulepos) in check_buffer_granulepos() argument
56 fail_unless (GST_BUFFER_OFFSET_END (buffer) == granulepos, in check_buffer_granulepos()
59 granulepos, GST_BUFFER_OFFSET_END (buffer)); in check_buffer_granulepos()
80 gint64 granulepos, expected; in check_buffer_granulepos_from_endtime() local
82 granulepos = GST_BUFFER_OFFSET_END (buffer); in check_buffer_granulepos_from_endtime()
85 fail_unless (granulepos == expected || granulepos == expected + 1, in check_buffer_granulepos_from_endtime()
89 expected, expected + 1, granulepos); in check_buffer_granulepos_from_endtime()
350 gint64 last_granulepos = 0, granulepos; in GST_START_TEST() local
355 granulepos = GST_BUFFER_OFFSET_END (buffer); in GST_START_TEST()
359 fail_unless (granulepos - last_granulepos > 1024, in GST_START_TEST()
[all …]
/third_party/gstreamer/gstplugins_base/ext/ogg/
DREADME7 ogg and the granulepos
10 An ogg stream contains pages with a serial number and a granulepos.
11 The granulepos is a 64 bit signed integer. It is a value that in some way
16 ogg has no notion of time: it only knows about bytes and granulepos values
22 While logically a granulepos value can be constructed for every ogg packet,
23 the page is marked with only one granulepos value: the granulepos of the
26 theora and the granulepos
29 The granulepos in theora is an encoding of the frame number of the last
31 ("p frame"). The granulepos is constructed as the sum of the first number,
33 granulepos = (pframe << granuleshift) + iframe
[all …]
Dgstoggstream.c46 gint64 granulepos);
48 gint64 granulepos);
54 gint64 granulepos);
69 gint64 granulepos);
106 if (packet->granulepos == -1) { in gst_ogg_stream_get_packet_start_time()
117 packet->granulepos) - duration); in gst_ogg_stream_get_packet_start_time()
122 gint64 granulepos) in gst_ogg_stream_get_start_time_for_granulepos() argument
128 gst_ogg_stream_granulepos_to_granule (pad, granulepos)); in gst_ogg_stream_get_start_time_for_granulepos()
133 gint64 granulepos) in gst_ogg_stream_get_end_time_for_granulepos() argument
136 gst_ogg_stream_granulepos_to_granule (pad, granulepos)); in gst_ogg_stream_get_end_time_for_granulepos()
[all …]
Dgstoggstream.h123 gint64 granulepos);
125 gint64 granulepos);
127 gint64 gst_ogg_stream_granulepos_to_granule (GstOggStream * pad, gint64 granulepos);
128 gint64 gst_ogg_stream_granulepos_to_key_granule (GstOggStream * pad, gint64 granulepos);
133 gint64 granulepos);
Dgstoggdemux.c679 if (packet->granulepos > -1) { in gst_ogg_demux_chain_peer()
681 packet->granulepos); in gst_ogg_demux_chain_peer()
685 (gint64) packet->granulepos, (gint64) granule); in gst_ogg_demux_chain_peer()
691 packet->granulepos); in gst_ogg_demux_chain_peer()
864 if (packet->granulepos < 0) in gst_ogg_demux_chain_peer()
869 packet->granulepos); in gst_ogg_demux_chain_peer()
1072 (gint64) packet->granulepos); in gst_ogg_pad_submit_packet()
1074 gst_ogg_stream_granulepos_to_granule (&pad->map, packet->granulepos); in gst_ogg_pad_submit_packet()
1083 (gint64) packet->granulepos, (gint64) granule); in gst_ogg_pad_submit_packet()
1116 if (packet->granulepos != -1) { in gst_ogg_pad_submit_packet()
[all …]
Dgstoggmux.c1243 packet->granulepos = 0; in gst_ogg_mux_create_header_packet_with_flags()
1692 gint64 granulepos = 0; in gst_ogg_mux_process_best_pad() local
1819 packet.granulepos = GST_BUFFER_OFFSET_END (buf); in gst_ogg_mux_process_best_pad()
1820 if (packet.granulepos == -1) in gst_ogg_mux_process_best_pad()
1821 packet.granulepos = 0; in gst_ogg_mux_process_best_pad()
1827 GST_GP_CAST (packet.granulepos), (gint64) packet.packetno, in gst_ogg_mux_process_best_pad()
1912 granulepos = GST_BUFFER_OFFSET_END (pad->buffer); in gst_ogg_mux_process_best_pad()
1918 granulepos, (gint64) packet.packetno, GST_TIME_ARGS (gp_time), in gst_ogg_mux_process_best_pad()
1935 granulepos, (gint64) packet.packetno, GST_TIME_ARGS (timestamp)); in gst_ogg_mux_process_best_pad()
1940 if (ogg_page_granulepos (&page) == granulepos) { in gst_ogg_mux_process_best_pad()
[all …]
Dgstoggaviparse.c313 GST_BUFFER_OFFSET_END (buffer) = packet->granulepos; in gst_ogg_avi_parse_push_packet()
/third_party/gstreamer/gstplugins_base/ext/vorbis/
Dgstvorbisparse.c228 packet.granulepos = GST_BUFFER_OFFSET_END (outbuf); in vorbis_parse_push_headers()
242 packet.granulepos = GST_BUFFER_OFFSET_END (outbuf); in vorbis_parse_push_headers()
254 packet.granulepos = GST_BUFFER_OFFSET_END (outbuf); in vorbis_parse_push_headers()
311 gint64 granulepos) in vorbis_parse_push_buffer() argument
318 GST_BUFFER_OFFSET_END (buf) = granulepos; in vorbis_parse_push_buffer()
320 GST_BUFFER_OFFSET (buf) = granulepos * GST_SECOND / parse->sample_rate; in vorbis_parse_push_buffer()
331 gint64 granulepos = MAX (parse->prev_granulepos, 0); in vorbis_parse_drain_queue_prematurely() local
347 granulepos += GST_BUFFER_OFFSET (buf); in vorbis_parse_drain_queue_prematurely()
348 ret = vorbis_parse_push_buffer (parse, buf, granulepos); in vorbis_parse_drain_queue_prematurely()
354 parse->prev_granulepos = granulepos; in vorbis_parse_drain_queue_prematurely()
[all …]
Dgstvorbisenc.c986 gint64 samples = op.granulepos - vorbisenc->samples_out; in gst_vorbis_enc_output_buffers()
998 (vorbisenc), buf, op.granulepos - vorbisenc->samples_out); in gst_vorbis_enc_output_buffers()
999 vorbisenc->samples_out = op.granulepos; in gst_vorbis_enc_output_buffers()
Dgstvorbisdec.c682 packet->granulepos = -1; in vorbis_dec_handle_frame()
/third_party/gstreamer/gstplugins_bad/ext/kate/
Dgstkateparse.c250 gint64 granulepos) in gst_kate_parse_push_buffer() argument
252 GST_LOG_OBJECT (parse, "granulepos %16" G_GINT64_MODIFIER "x", granulepos); in gst_kate_parse_push_buffer()
253 if (granulepos < 0) { in gst_kate_parse_push_buffer()
258 granulepos = in gst_kate_parse_push_buffer()
264 kate_granule_time (&parse->ki, granulepos) * GST_SECOND; in gst_kate_parse_push_buffer()
265 GST_BUFFER_OFFSET_END (buf) = granulepos; in gst_kate_parse_push_buffer()
305 gst_kate_parse_drain_queue (GstKateParse * parse, gint64 granulepos) in gst_kate_parse_drain_queue() argument
312 ret = gst_kate_parse_push_buffer (parse, buf, granulepos); in gst_kate_parse_drain_queue()
510 gint64 granulepos; in gst_kate_parse_src_query()
522 granulepos = parse->prev_granulepos; in gst_kate_parse_src_query()
[all …]
Dgstkateutil.c570 gst_kate_util_granule_time (kate_state * k, gint64 granulepos) in gst_kate_util_granule_time() argument
572 if (G_UNLIKELY (granulepos == -1)) in gst_kate_util_granule_time()
575 return kate_granule_time (k->ki, granulepos) * GST_SECOND; in gst_kate_util_granule_time()
Dgstkateenc.c1123 gst_kate_enc_granule_time (kate_state * k, gint64 granulepos) in gst_kate_enc_granule_time() argument
1127 if (granulepos == -1) in gst_kate_enc_granule_time()
1130 t = kate_granule_time (k->ki, granulepos); in gst_kate_enc_granule_time()
/third_party/gstreamer/gstplugins_base/ext/theora/
Dgsttheoraparse.c322 packet.granulepos = GST_BUFFER_OFFSET_END (buf); in theora_parse_set_streamheader()
428 parse_granulepos (GstTheoraParse * parse, gint64 granulepos, in parse_granulepos() argument
433 kf = granulepos >> parse->shift; in parse_granulepos()
441 *frame = kf + (granulepos & ((1 << parse->shift) - 1)); in parse_granulepos()
577 theora_parse_drain_queue (GstTheoraParse * parse, gint64 granulepos) in theora_parse_drain_queue() argument
582 parse_granulepos (parse, granulepos, &keyframe, &frame); in theora_parse_drain_queue()
588 ", frame %" G_GINT64_FORMAT, granulepos, keyframe, frame); in theora_parse_drain_queue()
Dgsttheoraenc.c141 granulepos_to_timestamp (GstTheoraEnc * theoraenc, ogg_int64_t granulepos) in granulepos_to_timestamp() argument
146 if (granulepos < 0) in granulepos_to_timestamp()
149 iframe = granulepos >> shift; in granulepos_to_timestamp()
150 pframe = granulepos - (iframe << shift); in granulepos_to_timestamp()
Dgsttheoradec.c863 packet.granulepos = -1; in theora_dec_decode_buffer()
/third_party/gstreamer/gstplugins_good/ext/vpx/
Dgstvp8enc.c417 guint64 granulepos; in _to_granulepos() local
422 granulepos = (frame_end_number << 32) | (inv << 30) | (keyframe_dist << 3); in _to_granulepos()
423 return granulepos; in _to_granulepos()
/third_party/ffmpeg/libavcodec/
Dlibtheoraenc.c351 avc_context->coded_frame->key_frame = !(o_packet.granulepos & h->keyframe_mask); in encode_frame()
354 if (!(o_packet.granulepos & h->keyframe_mask)) in encode_frame()
Dlibvorbisenc.c356 avpkt->pts = ff_samples_to_time_base(avctx, op.granulepos); in libvorbis_encode_frame()
/third_party/libsnd/src/
Dogg_opus.c825 op.granulepos = 0 ; in ogg_opus_write_header()
922 { odata->opacket.granulepos = (ogg_int64_t) last_granulepos ; in ogg_opus_flush()
926 odata->opacket.granulepos = (ogg_int64_t) oopus->pkt_pos ; in ogg_opus_flush()
960 oopus->pg_pos = odata->pkt [odata->pkt_len - 1].granulepos ; in ogg_opus_unpack_next_page()
967 oopus->pg_pos = odata->pkt [odata->pkt_len - 1].granulepos ; in ogg_opus_unpack_next_page()
1117 odata->opacket.granulepos = oopus->pkt_pos ; in ogg_opus_write_out()
Dogg_vorbis.c1005 last_gp = pkt->granulepos ; in vorbis_calculate_granulepos()
/third_party/gstreamer/gstplugins_base/docs/random/
DChangeLog-0.8571 Set granulepos and timestamp correctly for streams not
4062 Yay for non-lineair granulepos in theora.
5605 Make sure we never send -1 granulepos.
6982 uses the downstream element to convert granulepos to time.
7546 Fix theora granulepos calculation.
7549 Use granulepos of last packet to calculate position.
/third_party/gstreamer/gstplugins_bad/docs/random/
DChangeLog-0.82742 Set granulepos and timestamp correctly for streams not
6233 Yay for non-lineair granulepos in theora.
7776 Make sure we never send -1 granulepos.
9153 uses the downstream element to convert granulepos to time.
9717 Fix theora granulepos calculation.
9720 Use granulepos of last packet to calculate position.
/third_party/gstreamer/gstplugins_base/
DChangeLog12098 packet->granulepos);
12107 packet.granulepos);
42600 overflow into a huge timestamp which then propagates into the granulepos
54288 The granulepos does not have the pre-skip subtracted while timestamps do,
54289 and the last granulepos will be shorter by the number of samples that should
60847 The code was using the first nonnegative granulepos to seed the
60849 granulepos. However, this does not work for files with a hole at
65006 granulepos that's smaller than it would otherwise be. Use the
65008 granulepos.
65015 The end of a stream can be clipped by setting the granulepos of
[all …]

12