/third_party/ffmpeg/libavformat/ |
H A D | oggenc.c | 43 int64_t granule; member 56 /** for theora granule */ 60 /* for VP8 granule */ 66 int64_t last_granule; ///< last packet granule 114 bytestream_put_le64(&ptr, page->granule); in ogg_write_page() 132 static int ogg_key_granule(OGGStreamContext *oggstream, int64_t granule) in ogg_key_granule() argument 134 return (oggstream->kfgshift && !(granule & ((1<<oggstream->kfgshift)-1))) || in ogg_key_granule() 135 (oggstream->isvp8 && !((granule >> 3) & 0x07ffffff)); in ogg_key_granule() 138 static int64_t ogg_granule_to_timestamp(OGGStreamContext *oggstream, int64_t granule) in ogg_granule_to_timestamp() argument 141 return (granule>>oggstrea in ogg_granule_to_timestamp() 199 ogg_buffer_data(AVFormatContext *s, AVStream *st, const uint8_t *data, unsigned size, int64_t granule, int header) ogg_buffer_data() argument 639 int64_t granule; ogg_write_packet_internal() local [all...] |
H A D | oggparsevp8.c | 80 uint64_t granule, int64_t *dts) in vp8_gptopts() 85 int invcnt = !((granule >> 30) & 3); in vp8_gptopts() 86 // If page granule is that of an invisible vp8 frame, its pts will be 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() 79 vp8_gptopts(AVFormatContext *s, int idx, uint64_t granule, int64_t *dts) vp8_gptopts() argument
|
H A D | oggparsespeex.c | 121 os->granule > 0) { in speex_packet() 124 granule position. */ in speex_packet() 125 spxp->final_packet_duration = os->granule - os->lastpts - in speex_packet() 129 if (!os->lastpts && os->granule > 0) in speex_packet() 131 os->lastpts = os->lastdts = os->granule - packet_size * in speex_packet()
|
H A 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()
|
H A D | oggdec.c | 168 os->granule = -1; in ogg_reset() 461 os->granule = gp; in ogg_read_page() 561 if (os->granule == -1) in ogg_packet() 563 "Page at %"PRId64" is missing granule\n", in ogg_packet() 627 // if not, the page's granule will apply to this packet 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() 787 if (os->granule != -1LL) { in ogg_calc_pts() 789 pts = ogg_gptopts(s, idx, os->granule, dt in ogg_calc_pts() [all...] |
H A D | oggparsevorbis.c | 421 * the total duration to the page granule to find the encoder delay and in vorbis_packet() 423 if ((!os->lastpts || os->lastpts == AV_NOPTS_VALUE) && !(os->flags & OGG_FLAG_EOS) && (int64_t)os->granule>=0) { in vorbis_packet() 445 duration = os->granule; in vorbis_packet() 457 os->lastdts = os->granule - duration; in vorbis_packet() 459 if (!os->granule && duration) //hack to deal with broken files (Ticket3710) in vorbis_packet() 487 * to the page granule to find the duration of the final packet */ in vorbis_packet() 494 int64_t skip = priv->final_pts + priv->final_duration + os->pduration - os->granule; in vorbis_packet() 497 os->pduration = os->granule - priv->final_pts - priv->final_duration; in vorbis_packet()
|
H A D | oggparsedirac.c | 65 // various undocumented things: granule is signed (only for Dirac!) 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()
|
H A D | oggdec.h | 43 * Translate a granule into a timestamp. 49 * 1 if granule is the start time of the associated packet. 50 * 0 if granule is the end time of the associated packet. 69 uint64_t granule; member
|
H A D | oggparsetheora.c | 179 the total duration to the page granule to find the encoder delay and in theora_packet() 192 pts = theora_gptopts(s, idx, os->granule, NULL); in theora_packet()
|
/third_party/astc-encoder/Source/ |
H A D | astcenc_internal_entry.h | 78 * uint base_index = manager->get_tasks(<granule>, task_count); 80 * // Process any tasks we were given (task_count <= granule size) 203 * Assign up to @c granule tasks to the caller for processing. 205 * @param granule Maximum number of tasks that can be assigned. 210 unsigned int get_task_assignment(unsigned int granule, unsigned int& count) in get_task_assignment() argument 212 unsigned int base = m_start_count.fetch_add(granule, std::memory_order_relaxed); in get_task_assignment() 219 count = astc::min(m_task_count - base, granule); in get_task_assignment()
|
/third_party/mesa3d/src/amd/compiler/ |
H A 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()
|