Lines Matching defs:size
95 int frame_size; ///< frame size in bytes
97 int max_gop; ///< maximum gop size, used by mpeg-2 descriptor
459 // Determine the best BER size
460 int size = klv_ber_length(len);
461 if (size == 1) {
467 size --;
469 avio_w8(pb, 0x80 + size);
470 while(size) {
471 size--;
472 avio_w8(pb, len >> 8 * size & 0xff);
567 avio_wb32(pb, 18); // item size, always 18 according to the specs
577 static void mxf_write_local_tag(AVFormatContext *s, int size, int tag)
587 avio_wb16(pb, size);
690 uint64_t size = 0;
695 size++;
697 size += 2;
702 size += 1;
703 return size;
711 uint64_t size;
716 size = mxf_utf16len(utf8_str);
717 if (size >= UINT16_MAX/2) {
718 av_log(NULL, AV_LOG_ERROR, "utf16 local tag size %"PRIx64" invalid (too large), ignoring\n", size);
722 return 4 + size * 2;
731 uint64_t size = mxf_utf16len(value);
733 if (size >= UINT16_MAX/2) {
734 av_log(NULL, AV_LOG_ERROR, "utf16 local tag size %"PRIx64" invalid (too large), ignoring\n", size);
738 mxf_write_local_tag(s, size*2, tag);
1334 int size = cur_pos - pos;
1336 klv_encode_ber4_length(pb, size);
1732 static unsigned klv_fill_size(uint64_t size)
1734 unsigned pad = KAG_SIZE - (size & (KAG_SIZE-1));
1800 avio_wb32(pb, 6); // size of one entry
1817 avio_wb32(pb, KAG_SIZE); // system item size including klv fill
1832 avio_wb32(pb, 15); // size of one entry
1980 // mark the start of the headermetadata and calculate metadata size
2035 sc->frame_size = pkt->size;
2076 if (pkt->size < 43)
2107 sc->frame_size = pkt->size;
2148 // Check for minimal frame size
2149 if (pkt->size < 120000)
2194 sc->frame_size = pkt->size;
2239 const uint8_t *buf_end = pkt->data + pkt->size;
2312 frame_size = pkt->size + extra_size;
2322 sc->frame_size = pkt->size;
2386 for(i = 0; i < pkt->size - 4; i++) {
2393 } else if (i + 5 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x80) { // pict coding ext
2808 int frame_size = pkt->size / st->codecpar->block_align;
2810 const uint8_t *const end = pkt->data + pkt->size;
2880 avio_write(pb, pkt->data, pkt->size);
2881 mxf->body_offset += pkt->size;
2960 if (pkt->size != sc->frame_size && st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
2961 av_log(s, AV_LOG_ERROR, "track %d: frame size does not match index unit size, %d != %d\n",
2962 st->index, pkt->size, sc->frame_size);
3003 mxf->body_offset += KAG_SIZE; // size of system element
3021 klv_encode_ber4_length(pb, pkt->size); // write length
3022 avio_write(pb, pkt->data, pkt->size);
3023 mxf->body_offset += 16+4+pkt->size + klv_fill_size(16+4+pkt->size);