2010-05-18 11:58:33 -04:00
|
|
|
/*
|
2010-09-09 08:16:39 -04:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 11:58:33 -04:00
|
|
|
*
|
2010-06-18 12:39:21 -04:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 16:19:40 -04: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 12:39:21 -04:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 16:19:40 -04:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 11:58:33 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* This code is in the public domain.
|
|
|
|
** Version: 1.1 Author: Walt Karas
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hmm_intrnl.h"
|
|
|
|
|
2012-07-13 15:21:29 -07:00
|
|
|
U(size_aau) U(true_size)(void *payload_ptr) {
|
|
|
|
register head_record *head_ptr = PTR_REC_TO_HEAD(payload_ptr);
|
2010-05-18 11:58:33 -04:00
|
|
|
|
|
|
|
#ifdef HMM_AUDIT_FAIL
|
2012-07-13 15:21:29 -07:00
|
|
|
AUDIT_BLOCK(head_ptr)
|
2010-05-18 11:58:33 -04:00
|
|
|
#endif
|
|
|
|
|
2012-07-13 15:21:29 -07: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 11:58:33 -04:00
|
|
|
}
|