Lines Matching defs:kag_size
88 int32_t kag_size;
483 partition->kag_size = avio_rb32(pb);
578 if (partition->kag_size <= 0 || partition->kag_size > (1 << 20)) {
580 partition->kag_size);
583 partition->kag_size = 512;
585 partition->kag_size = 1;
587 av_log(mxf->fc, AV_LOG_WARNING, "%"PRId32"\n", partition->kag_size);
1999 static int64_t round_to_kag(int64_t position, int kag_size)
2002 /* NOTE: kag_size may be any integer between 1 - 2^10 */
2003 int64_t ret = (position / kag_size) * kag_size;
2004 return ret == position ? ret : ret + kag_size;
2129 mxf->current_partition->pack_length, mxf->current_partition->kag_size) +
2130 round_to_kag(mxf->current_partition->header_byte_count, mxf->current_partition->kag_size) +
2131 round_to_kag(mxf->current_partition->index_byte_count, mxf->current_partition->kag_size);