Lines Matching defs:object
557 void FLAC__format_entropy_coding_method_partitioned_rice_contents_init(FLAC__EntropyCodingMethod_PartitionedRiceContents *object)
559 FLAC__ASSERT(0 != object);
561 object->parameters = 0;
562 object->raw_bits = 0;
563 object->capacity_by_order = 0;
566 void FLAC__format_entropy_coding_method_partitioned_rice_contents_clear(FLAC__EntropyCodingMethod_PartitionedRiceContents *object)
568 FLAC__ASSERT(0 != object);
570 if(0 != object->parameters)
571 free(object->parameters);
572 if(0 != object->raw_bits)
573 free(object->raw_bits);
574 FLAC__format_entropy_coding_method_partitioned_rice_contents_init(object);
577 FLAC__bool FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size(FLAC__EntropyCodingMethod_PartitionedRiceContents *object, unsigned max_partition_order)
579 FLAC__ASSERT(0 != object);
581 FLAC__ASSERT(object->capacity_by_order > 0 || (0 == object->parameters && 0 == object->raw_bits));
583 if(object->capacity_by_order < max_partition_order) {
584 if(0 == (object->parameters = (unsigned*)realloc(object->parameters, sizeof(unsigned)*(1 << max_partition_order))))
586 if(0 == (object->raw_bits = (unsigned*)realloc(object->raw_bits, sizeof(unsigned)*(1 << max_partition_order))))
588 memset(object->raw_bits, 0, sizeof(unsigned)*(1 << max_partition_order));
589 object->capacity_by_order = max_partition_order;