2010-05-18 17:58:33 +02:00
|
|
|
/*
|
2010-09-09 14:16:39 +02:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 17:58:33 +02:00
|
|
|
*
|
2010-06-18 18:39:21 +02:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 22:19:40 +02:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 18:39:21 +02:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 22:19:40 +02:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 17:58:33 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* This code is in the public domain.
|
|
|
|
** Version: 1.1 Author: Walt Karas
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hmm_intrnl.h"
|
|
|
|
|
2012-07-14 00:21:29 +02:00
|
|
|
U(size_aau) U(true_size)(void *payload_ptr) {
|
|
|
|
register head_record *head_ptr = PTR_REC_TO_HEAD(payload_ptr);
|
2010-05-18 17:58:33 +02:00
|
|
|
|
|
|
|
#ifdef HMM_AUDIT_FAIL
|
2012-07-14 00:21:29 +02:00
|
|
|
AUDIT_BLOCK(head_ptr)
|
2010-05-18 17:58:33 +02:00
|
|
|
#endif
|
|
|
|
|
2012-07-14 00:21:29 +02:00
|
|
|
/* Convert block size from BAUs to AAUs. Subtract head size, leaving
|
|
|
|
** payload size.
|
|
|
|
*/
|
|
|
|
return(
|
|
|
|
(BLOCK_BAUS(head_ptr) * ((U(size_aau)) HMM_BLOCK_ALIGN_UNIT)) -
|
|
|
|
HEAD_AAUS);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|