Lines Matching defs:bytes

89     int             sizebytes;          ///< how many bytes were reserved for the size
221 /* Used as temporary buffer to use the minimal amount of bytes
253 /** 2 bytes * 3 for EBML IDs, 3 1-byte EBML lengths, 8 bytes for 64 bit
254 * offset, 4 bytes for target EBML ID */
281 * @param bytes The number of bytes the size should occupy (maximum: 8).
283 static void put_ebml_size_unknown(AVIOContext *pb, int bytes)
285 av_assert0(bytes <= 8);
286 avio_w8(pb, 0x1ff >> bytes);
287 if (av_builtin_constant_p(bytes) && bytes == 1)
289 ffio_fill(pb, 0xff, bytes - 1);
293 * Returns how many bytes are needed to represent a number
298 int bytes = 0;
300 bytes++;
302 return bytes;
306 * Calculate how many bytes are needed to represent the length field
315 * Write a number as EBML variable length integer on `bytes` bytes.
316 * `bytes` is taken literally without checking.
318 static void put_ebml_num(AVIOContext *pb, uint64_t num, int bytes)
320 num |= 1ULL << bytes * 7;
321 for (int i = bytes - 1; i >= 0; i--)
328 * @param bytes The number of bytes that need to be used to write the number.
329 * If zero, the minimal number of bytes will be used.
331 static void put_ebml_length(AVIOContext *pb, uint64_t length, int bytes)
338 if (bytes == 0)
339 bytes = needed_bytes;
340 // The bytes needed to write the given size must not exceed
341 // the bytes that we ought to use.
342 av_assert0(bytes >= needed_bytes);
343 put_ebml_num(pb, length, bytes);
358 int i, bytes = 1;
361 bytes++;
364 put_ebml_length(pb, bytes, 0);
365 for (i = bytes - 1; i >= 0; i--)
394 * @param size The number of bytes to reserve, which must be at least 2.
402 // size we need to reserve so 2 cases, we use 8 bytes to store the
417 int bytes = expectedsize ? ebml_length_size(expectedsize) : 8;
420 put_ebml_size_unknown(pb, bytes);
421 return (ebml_master) { avio_tell(pb), bytes };
552 int bytes = 0;
554 bytes++;
556 return bytes;
855 // 21 bytes max for a Seek entry, 6 bytes max for the SeekHead ID
856 // and size, 6 bytes for a CRC32 element, and 2 bytes to guarantee
2734 // the first four bytes of the av1C.
2792 "%" PRId64 " at offset %" PRId64 " bytes\n",
2910 "Flushing cluster at offset %" PRIu64 " bytes\n",
3278 { "reserve_index_space", "Reserve a given amount of space (in bytes) at the beginning of the file for the index (cues).", OFFSET(reserve_cues_space), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, FLAGS },
3280 { "cluster_size_limit", "Store at most the provided amount of bytes in a cluster. ", OFFSET(cluster_size_limit), AV_OPT_TYPE_INT , { .i64 = -1 }, -1, INT_MAX, FLAGS },