/third_party/ffmpeg/libavformat/ |
D | oggenc.c | 40 int64_t granule; member 112 bytestream_put_le64(&ptr, page->granule); in ogg_write_page() 130 static int ogg_key_granule(OGGStreamContext *oggstream, int64_t granule) in ogg_key_granule() argument 132 return (oggstream->kfgshift && !(granule & ((1<<oggstream->kfgshift)-1))) || in ogg_key_granule() 133 (oggstream->isvp8 && !((granule >> 3) & 0x07ffffff)); in ogg_key_granule() 136 static int64_t ogg_granule_to_timestamp(OGGStreamContext *oggstream, int64_t granule) in ogg_granule_to_timestamp() argument 139 return (granule>>oggstream->kfgshift) + in ogg_granule_to_timestamp() 140 (granule & ((1<<oggstream->kfgshift)-1)); in ogg_granule_to_timestamp() 142 return granule >> 32; in ogg_granule_to_timestamp() 144 return granule; in ogg_granule_to_timestamp() [all …]
|
D | oggparsevp8.c | 80 uint64_t granule, int64_t *dts) in vp8_gptopts() argument 85 int invcnt = !((granule >> 30) & 3); in vp8_gptopts() 89 uint64_t pts = (granule >> 32) - invcnt; in vp8_gptopts() 90 uint32_t dist = (granule >> 3) & 0x07ffffff; in vp8_gptopts() 125 os->lastdts = vp8_gptopts(s, idx, os->granule, NULL) - duration; in vp8_packet()
|
D | oggparsespeex.c | 126 os->granule > 0) { in speex_packet() 130 spxp->final_packet_duration = os->granule - os->lastpts - in speex_packet() 134 if (!os->lastpts && os->granule > 0) in speex_packet() 136 os->lastpts = os->lastdts = os->granule - packet_size * in speex_packet()
|
D | oggparseopus.c | 122 if (os->granule > (1LL << 62)) { in opus_packet() 123 av_log(avf, AV_LOG_ERROR, "Unsupported huge granule pos %"PRId64 "\n", os->granule); in opus_packet() 152 os->lastdts = os->granule - duration; in opus_packet() 167 int64_t skip = priv->cur_dts - os->granule + priv->pre_skip; in opus_packet()
|
D | oggdec.c | 168 os->granule = -1; in ogg_reset() 462 os->granule = gp; in ogg_read_page() 561 if (os->granule == -1) in ogg_packet() 667 if (i >= 0 && ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0 && in ogg_get_length() 670 ogg_gptopts(s, i, ogg->streams[i].granule, NULL); in ogg_get_length() 793 if (os->granule != -1LL) { in ogg_calc_pts() 795 pts = ogg_gptopts(s, idx, os->granule, dts); in ogg_calc_pts() 797 os->lastpts = ogg_gptopts(s, idx, os->granule, &os->lastdts); in ogg_calc_pts() 798 os->granule = -1LL; in ogg_calc_pts()
|
D | oggparsevorbis.c | 425 …tpts || os->lastpts == AV_NOPTS_VALUE) && !(os->flags & OGG_FLAG_EOS) && (int64_t)os->granule>=0) { in vorbis_packet() 447 duration = os->granule; in vorbis_packet() 459 os->lastdts = os->granule - duration; in vorbis_packet() 461 if (!os->granule && duration) //hack to deal with broken files (Ticket3710) in vorbis_packet() 496 os->pduration = os->granule - priv->final_pts - priv->final_duration; in vorbis_packet()
|
D | oggparsedirac.c | 66 static uint64_t dirac_gptopts(AVFormatContext *s, int idx, uint64_t granule, in dirac_gptopts() argument 69 int64_t gp = granule; in dirac_gptopts()
|
D | oggdec.h | 70 uint64_t granule; member
|
D | oggparsetheora.c | 192 pts = theora_gptopts(s, idx, os->granule, NULL); in theora_packet()
|
/third_party/gstreamer/gstplugins_base/tests/check/pipelines/ |
D | oggmux.c | 91 gint64 granule; in validate_ogg_page() local 95 granule = ogg_page_granulepos (page); in validate_ogg_page() 98 fail_if (ogg_page_packets (page) == 0 && granule != -1, in validate_ogg_page() 100 granule); in validate_ogg_page() 108 state->last_granule = granule; in validate_ogg_page() 133 if (granule != -1) { in validate_ogg_page() 134 fail_unless (granule >= state->last_granule, in validate_ogg_page() 136 G_GINT64_FORMAT, serialno, state->last_granule, granule); in validate_ogg_page() 137 state->last_granule = granule; in validate_ogg_page()
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_live_var_analysis.cpp | 326 uint16_t granule = program->dev.sgpr_alloc_granule; in get_sgpr_alloc() local 327 return ALIGN_NPOT(std::max(sgprs, granule), granule); in get_sgpr_alloc() 334 uint16_t granule = program->dev.vgpr_alloc_granule; in get_vgpr_alloc() local 335 return align(std::max(addressable_vgprs, granule), granule); in get_vgpr_alloc()
|
/third_party/gstreamer/gstplugins_base/ext/ogg/ |
D | gstoggstream.c | 50 gint64 granule, gint64 keyframe_granule); 140 gst_ogg_stream_granule_to_time (GstOggStream * pad, gint64 granule) in gst_ogg_stream_granule_to_time() argument 142 if (granule == 0 || pad->granulerate_n == 0 || pad->granulerate_d == 0) in gst_ogg_stream_granule_to_time() 145 granule += pad->granule_offset; in gst_ogg_stream_granule_to_time() 146 if (granule < 0) in gst_ogg_stream_granule_to_time() 149 return gst_util_uint64_scale (granule, GST_SECOND * pad->granulerate_d, in gst_ogg_stream_granule_to_time() 183 gst_ogg_stream_granule_to_granulepos (GstOggStream * pad, gint64 granule, in gst_ogg_stream_granule_to_granulepos() argument 186 if (granule == -1 || granule == 0) { in gst_ogg_stream_granule_to_granulepos() 187 return granule; in gst_ogg_stream_granule_to_granulepos() 196 return mappers[pad->map].granule_to_granulepos_func (pad, granule, in gst_ogg_stream_granule_to_granulepos() [all …]
|
D | gstoggparse.c | 396 gint64 granule = ogg_page_granulepos (&page); in gst_ogg_parse_chain() local 412 granule); in gst_ogg_parse_chain() 415 keyframe = gst_ogg_stream_granulepos_is_key_frame (stream, granule); in gst_ogg_parse_chain() 437 granule, bos, startoffset, ogg->offset, keyframe); in gst_ogg_parse_chain() 638 if (granule == -1) { in gst_ogg_parse_chain()
|
D | gstoggstream.h | 126 GstClockTime gst_ogg_stream_granule_to_time (GstOggStream *pad, gint64 granule); 129 gint64 gst_ogg_stream_granule_to_granulepos (GstOggStream * pad, gint64 granule, gint64 keyframe_gr…
|
D | gstoggdemux.c | 680 gint64 granule = gst_ogg_stream_granulepos_to_granule (&pad->map, in gst_ogg_demux_chain_peer() local 682 if (granule < 0) { in gst_ogg_demux_chain_peer() 685 (gint64) packet->granulepos, (gint64) granule); in gst_ogg_demux_chain_peer() 688 pad->current_granule = granule; in gst_ogg_demux_chain_peer() 1002 gint64 granule; in gst_ogg_pad_submit_packet() local 1073 granule = in gst_ogg_pad_submit_packet() 1075 if (granule > 0) { in gst_ogg_pad_submit_packet() 1076 GST_DEBUG_OBJECT (ogg, "%p has granule %" G_GINT64_FORMAT, pad, granule); in gst_ogg_pad_submit_packet() 1077 pad->current_granule = granule; in gst_ogg_pad_submit_packet() 1078 } else if (granule == 0) { in gst_ogg_pad_submit_packet() [all …]
|
D | gstoggmux.c | 811 gint64 duration, granule, limit; in gst_ogg_mux_decorate_buffer() local 853 granule = 0; in gst_ogg_mux_decorate_buffer() 921 granule = pad->next_granule; in gst_ogg_mux_decorate_buffer() 932 granule, GST_TIME_ARGS (next_time), GST_STIME_ARGS (diff), in gst_ogg_mux_decorate_buffer() 938 granule = gst_util_uint64_scale_round (time, pad->map.granulerate_n, in gst_ogg_mux_decorate_buffer() 941 "resyncing to determined granule %" G_GINT64_FORMAT, granule); in gst_ogg_mux_decorate_buffer() 945 pad->next_granule = granule; in gst_ogg_mux_decorate_buffer() 947 granule += duration; in gst_ogg_mux_decorate_buffer() 948 pad->next_granule = granule; in gst_ogg_mux_decorate_buffer() 953 pad->keyframe_granule = granule; in gst_ogg_mux_decorate_buffer() [all …]
|
D | README | 19 The granule position is just a number; the only guarantee for a valid ogg 206 granule pos or a granulepos with the same timestamp.
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/ |
D | gstaudioencoder.c | 227 gboolean granule; member 446 enc->priv->granule = DEFAULT_GRANULE; in gst_audio_encoder_init() 1192 if (!enc->priv->granule) in gst_audio_encoder_set_base_gp() 2066 if (enc->priv->granule && !g_value_get_boolean (value)) in gst_audio_encoder_set_property() 2097 g_value_set_boolean (value, enc->priv->granule); in gst_audio_encoder_get_property() 2119 g_return_val_if_fail (!enc->priv->granule || enc->priv->perfect_ts, FALSE); in gst_audio_encoder_activate() 2433 enc->priv->granule = enabled; in gst_audio_encoder_set_mark_granule() 2455 result = enc->priv->granule; in gst_audio_encoder_get_mark_granule()
|
/third_party/mesa3d/docs/relnotes/ |
D | 20.0.0.rst | 2813 - aco: fix vgpr alloc granule with wave32
|
/third_party/gstreamer/gstplugins_base/ |
D | ChangeLog | 19131 ogg: Avoid undefined granule shift 19132 A granule is a 64bit signed integer, shifting by 63 or more is 41532 * And we start doing totally wrong granule/time/duration calculation 41625 Protect the code for that and return the granule value as-is 41630 oggdemux: Protect against invalid granule positions 44888 granule = -1 as an error code. 48055 If we can't find a valid granule near the end of the file, we 48064 This can be too small on some files to find a valid granule. 54200 opusenc: Disable granule position calculations by the base class 54202 are shifted by the pre-skip, the granule positions are not shifted. [all …]
|
/third_party/NuttX/ |
D | ReleaseNotes | 3116 * Memory Management: Added a new granule-based allocated that can be 7007 regions in the granule heap. (2) Add interfaces to support 7008 un-initializing a granule allocator. 7010 existing NuttX granule allocator. I am not certain if the granule 7615 - Granule Allocator: If the INTR granule allocator mode is enabled, 15668 granule allocator. This is the moral equivalent of mallinfo().
|
/third_party/gstreamer/gstplugins_bad/ |
D | ChangeLog | 84363 opusenc: Disable granule position calculations by the base class 84365 are shifted by the pre-skip, the granule positions are not shifted. 190952 schroenc: Keep track of granule offset
|