asm_dec_offsets.c 1.85 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
Johann's avatar
Johann committed
2
 *  Copyright (c) 2011 The WebM project authors. All Rights Reserved.
John Koleszar's avatar
John Koleszar committed
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5 6
 *  that can be found in the LICENSE file in the root of the source
 *  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.
John Koleszar's avatar
John Koleszar committed
9 10 11
 */


Johann's avatar
Johann committed
12
#include "vpx_ports/asm_offsets.h"
John Koleszar's avatar
John Koleszar committed
13 14
#include "onyxd_int.h"

Johann's avatar
Johann committed
15
BEGIN
John Koleszar's avatar
John Koleszar committed
16 17

DEFINE(detok_scan,                              offsetof(DETOK, scan));
Johann's avatar
Johann committed
18 19
DEFINE(detok_ptr_block2leftabove,               offsetof(DETOK, ptr_block2leftabove));
DEFINE(detok_coef_tree_ptr,                     offsetof(DETOK, vp8_coef_tree_ptr));
Johann's avatar
Johann committed
20
DEFINE(detok_norm_ptr,                          offsetof(DETOK, norm_ptr));
Johann's avatar
Johann committed
21
DEFINE(detok_ptr_coef_bands_x,                  offsetof(DETOK, ptr_coef_bands_x));
John Koleszar's avatar
John Koleszar committed
22

Johann's avatar
Johann committed
23 24
DEFINE(detok_A,                                 offsetof(DETOK, A));
DEFINE(detok_L,                                 offsetof(DETOK, L));
John Koleszar's avatar
John Koleszar committed
25

Johann's avatar
Johann committed
26 27 28
DEFINE(detok_qcoeff_start_ptr,                  offsetof(DETOK, qcoeff_start_ptr));
DEFINE(detok_current_bc,                        offsetof(DETOK, current_bc));
DEFINE(detok_coef_probs,                        offsetof(DETOK, coef_probs));
John Koleszar's avatar
John Koleszar committed
29 30
DEFINE(detok_eob,                               offsetof(DETOK, eob));

31 32
DEFINE(bool_decoder_user_buffer_end,            offsetof(BOOL_DECODER, user_buffer_end));
DEFINE(bool_decoder_user_buffer,                offsetof(BOOL_DECODER, user_buffer));
John Koleszar's avatar
John Koleszar committed
33 34
DEFINE(bool_decoder_value,                      offsetof(BOOL_DECODER, value));
DEFINE(bool_decoder_count,                      offsetof(BOOL_DECODER, count));
35
DEFINE(bool_decoder_range,                      offsetof(BOOL_DECODER, range));
John Koleszar's avatar
John Koleszar committed
36

Johann's avatar
Johann committed
37 38 39 40
END

/* add asserts for any offset that is not supported by assembly code */
/* add asserts for any size that is not supported by assembly code */