michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: michael@0: #ifndef __INC_BITSTREAM_H michael@0: #define __INC_BITSTREAM_H michael@0: michael@0: #if HAVE_EDSP michael@0: void vp8cx_pack_tokens_armv5(vp8_writer *w, const TOKENEXTRA *p, int xcount, michael@0: const vp8_token *, michael@0: const vp8_extra_bit_struct *, michael@0: const vp8_tree_index *); michael@0: void vp8cx_pack_tokens_into_partitions_armv5(VP8_COMP *, michael@0: unsigned char * cx_data, michael@0: const unsigned char *cx_data_end, michael@0: int num_parts, michael@0: const vp8_token *, michael@0: const vp8_extra_bit_struct *, michael@0: const vp8_tree_index *); michael@0: void vp8cx_pack_mb_row_tokens_armv5(VP8_COMP *cpi, vp8_writer *w, michael@0: const vp8_token *, michael@0: const vp8_extra_bit_struct *, michael@0: const vp8_tree_index *); michael@0: # define pack_tokens(a,b,c) \ michael@0: vp8cx_pack_tokens_armv5(a,b,c,vp8_coef_encodings,vp8_extra_bits,vp8_coef_tree) michael@0: # define pack_tokens_into_partitions(a,b,c,d) \ michael@0: vp8cx_pack_tokens_into_partitions_armv5(a,b,c,d,vp8_coef_encodings,vp8_extra_bits,vp8_coef_tree) michael@0: # define pack_mb_row_tokens(a,b) \ michael@0: vp8cx_pack_mb_row_tokens_armv5(a,b,vp8_coef_encodings,vp8_extra_bits,vp8_coef_tree) michael@0: #else michael@0: michael@0: void vp8_pack_tokens_c(vp8_writer *w, const TOKENEXTRA *p, int xcount); michael@0: michael@0: # define pack_tokens(a,b,c) vp8_pack_tokens_c(a,b,c) michael@0: # define pack_tokens_into_partitions(a,b,c,d) pack_tokens_into_partitions_c(a,b,c,d) michael@0: # define pack_mb_row_tokens(a,b) pack_mb_row_tokens_c(a,b) michael@0: #endif michael@0: michael@0: #endif