Searched refs:VCDiffCodeTableData (Results 1 - 14 of 14) sorted by relevance

/external/chromium/sdch/open-vcdiff/src/
H A Dcodetable.h52 // struct VCDiffCodeTableData:
74 struct VCDiffCodeTableData { struct in namespace:open_vcdiff
77 static const VCDiffCodeTableData kDefaultCodeTableData;
79 // Validates that the data contained in the VCDiffCodeTableData structure
H A Ddecodetable.cc17 // as VCDIFF instruction types, based on a VCDiffCodeTableData structure.
29 : code_table_data_(&VCDiffCodeTableData::kDefaultCodeTableData),
39 const VCDiffCodeTableData& code_table_data, unsigned char max_mode) {
42 non_default_code_table_data_.reset(new VCDiffCodeTableData);
H A Ddecodetable.h52 bool UseCodeTable(const VCDiffCodeTableData& code_table_data,
128 const VCDiffCodeTableData* code_table_data_;
137 std::auto_ptr<VCDiffCodeTableData> non_default_code_table_data_;
H A Dinstruction_map.cc31 VCDiffCodeTableData::kDefaultCodeTableData,
38 const unsigned char size_array[VCDiffCodeTableData::kCodeTableSize]) {
40 for (int i = 1; i < VCDiffCodeTableData::kCodeTableSize; ++i) {
90 for (int opcode = 0; opcode < VCDiffCodeTableData::kCodeTableSize; ++opcode) {
152 const VCDiffCodeTableData& code_table_data,
159 for (int opcode = 0; opcode < VCDiffCodeTableData::kCodeTableSize; ++opcode) {
179 for (int opcode = 0; opcode < VCDiffCodeTableData::kCodeTableSize; ++opcode) {
H A Dinstruction_map.h17 // VCDiffCodeTableData is the same as the format given in section 7
22 // using a VCDiffCodeTableData. For a custom code table, it is recommended
23 // that the VCDiffCodeTableData be defined as a static struct and that the
35 // An alternate representation of the data in a VCDiffCodeTableData that
49 VCDiffInstructionMap(const VCDiffCodeTableData& code_table_data,
191 OpcodeOrNone** second_opcodes_[VCDiffCodeTableData::kCodeTableSize];
H A Dcodetable_test.cc16 // Unit tests for struct VCDiffCodeTableData, found in codetable.h.
29 : code_table_data_(VCDiffCodeTableData::kDefaultCodeTableData) { }
54 g_exercise_code_table_ = new VCDiffCodeTableData;
82 CHECK_EQ(VCDiffCodeTableData::kCodeTableSize, opcode);
84 EXPECT_TRUE(VCDiffCodeTableData::kDefaultCodeTableData.Validate());
120 static VCDiffCodeTableData* g_exercise_code_table_;
123 VCDiffCodeTableData code_table_data_;
126 VCDiffCodeTableData* CodeTableTest::g_exercise_code_table_ = NULL;
H A Dencodetable.h72 const VCDiffCodeTableData& code_table_data,
194 const VCDiffCodeTableData* code_table_data_;
H A Ddecodetable_test.cc57 g_exercise_code_table_ = new VCDiffCodeTableData;
83 CHECK_EQ(VCDiffCodeTableData::kCodeTableSize, opcode);
84 EXPECT_TRUE(VCDiffCodeTableData::kDefaultCodeTableData.Validate());
148 static VCDiffCodeTableData* g_exercise_code_table_;
164 VCDiffCodeTableData* DecodeTableTest::g_exercise_code_table_ = NULL;
167 VCDiffCodeTableData::kCodeTableSize *
392 for (int opcode = 0; opcode < VCDiffCodeTableData::kCodeTableSize; ++opcode) {
448 CHECK_EQ(VCDiffCodeTableData::kCodeTableSize, opcode);
H A Dencodetable.cc44 code_table_data_(&VCDiffCodeTableData::kDefaultCodeTableData),
57 const VCDiffCodeTableData& code_table_data,
72 if (code_table_data_ != &VCDiffCodeTableData::kDefaultCodeTableData) {
90 if (code_table_data_ == &VCDiffCodeTableData::kDefaultCodeTableData) {
H A Dcodetable.cc51 // struct VCDiffCodeTableData), which allows for a compact
54 const VCDiffCodeTableData VCDiffCodeTableData::kDefaultCodeTableData =
188 bool VCDiffCodeTableData::ValidateOpcode(int opcode,
233 bool VCDiffCodeTableData::Validate(unsigned char max_mode) const {
275 bool VCDiffCodeTableData::Validate() const {
H A Dvcdecoder4_test.cc837 (sizeof(VCDiffCodeTableData) >> 7) | 0x80, // First byte of table length
838 sizeof(VCDiffCodeTableData) & 0x7F, // Second byte of table length
841 (sizeof(VCDiffCodeTableData) >> 7) | 0x80, // First byte of table length
842 sizeof(VCDiffCodeTableData) & 0x7F, // Second byte of table length
937 VCDiffCodeTableData custom_code_table(
938 VCDiffCodeTableData::kDefaultCodeTableData);
947 &VCDiffCodeTableData::kDefaultCodeTableData),
948 sizeof(VCDiffCodeTableData::kDefaultCodeTableData));
954 const VCDiffCodeTableData* decoded_table =
955 reinterpret_cast<const VCDiffCodeTableData*>(output
[all...]
H A Dencodetable_test.cc66 g_exercise_code_table_ = new VCDiffCodeTableData;
94 CHECK_EQ(VCDiffCodeTableData::kCodeTableSize, opcode);
145 static VCDiffCodeTableData* g_exercise_code_table_;
163 VCDiffCodeTableData* CodeTableWriterTest::g_exercise_code_table_;
H A Dinstruction_map_test.cc65 static VCDiffCodeTableData* g_exercise_code_table_;
76 VCDiffCodeTableData* InstructionMapTest::g_exercise_code_table_ = NULL;
81 g_exercise_code_table_ = new VCDiffCodeTableData;
109 CHECK_EQ(VCDiffCodeTableData::kCodeTableSize, opcode);
111 EXPECT_TRUE(VCDiffCodeTableData::kDefaultCodeTableData.Validate());
623 CHECK_EQ(VCDiffCodeTableData::kCodeTableSize, opcode);
H A Dvcdecoder.cc103 bool UseCodeTable(const VCDiffCodeTableData& code_table_data,
553 std::auto_ptr<VCDiffCodeTableData> custom_code_table_;
758 custom_code_table_.reset(new struct VCDiffCodeTableData);
759 memset(custom_code_table_.get(), 0, sizeof(struct VCDiffCodeTableData));
774 &VCDiffCodeTableData::kDefaultCodeTableData),
775 sizeof(VCDiffCodeTableData::kDefaultCodeTableData));

Completed in 95 milliseconds