Added vp8_update_zbin_extra
[libvpx.git] / vpx_mem / memory_manager / hmm_true.c
blob3f7be8f70eeba05ac49217f3b6c29f289d17cb6c
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
12 /* This code is in the public domain.
13 ** Version: 1.1 Author: Walt Karas
16 #include "hmm_intrnl.h"
18 U(size_aau) U(true_size)(void *payload_ptr)
20 register head_record *head_ptr = PTR_REC_TO_HEAD(payload_ptr);
22 #ifdef HMM_AUDIT_FAIL
23 AUDIT_BLOCK(head_ptr)
24 #endif
26 /* Convert block size from BAUs to AAUs. Subtract head size, leaving
27 ** payload size.
29 return(
30 (BLOCK_BAUS(head_ptr) * ((U(size_aau)) HMM_BLOCK_ALIGN_UNIT)) -
31 HEAD_AAUS);