/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenc_block_sizes.cpp | 37 unsigned int block_mode, in decode_block_mode_2d() argument 44 unsigned int base_quant_mode = (block_mode >> 4) & 1; in decode_block_mode_2d() 45 unsigned int H = (block_mode >> 9) & 1; in decode_block_mode_2d() 46 unsigned int D = (block_mode >> 10) & 1; in decode_block_mode_2d() 47 unsigned int A = (block_mode >> 5) & 0x3; in decode_block_mode_2d() 52 if ((block_mode & 3) != 0) in decode_block_mode_2d() 54 base_quant_mode |= (block_mode & 3) << 1; in decode_block_mode_2d() 55 unsigned int B = (block_mode >> 7) & 3; in decode_block_mode_2d() 56 switch ((block_mode >> 2) & 3) in decode_block_mode_2d() 72 if (block_mode & 0x100) in decode_block_mode_2d() [all …]
|
D | astcenc_symbolic_physical.cpp | 150 const auto& bm = bsd.get_block_mode(scb.block_mode); in symbolic_to_physical() 197 write_bits(scb.block_mode, 11, 0, pcb.data); in symbolic_to_physical() 294 int block_mode = read_bits(11, 0, pcb.data); in physical_to_symbolic() local 295 if ((block_mode & 0x1FF) == 0x1FC) in physical_to_symbolic() 300 if (block_mode & 0x200) in physical_to_symbolic() 361 unsigned int packed_index = bsd.block_mode_packed_index[block_mode]; in physical_to_symbolic() 368 const auto& bm = bsd.get_block_mode(block_mode); in physical_to_symbolic() 379 scb.block_mode = static_cast<uint16_t>(block_mode); in physical_to_symbolic()
|
D | astcenc_decompress_symbolic.cpp | 278 const auto& bm = bsd.get_block_mode(scb.block_mode); in decompress_symbolic_block() 340 assert(scb.block_mode >= 0); in compute_symbolic_block_difference_2plane() 342 assert(bsd.get_block_mode(scb.block_mode).is_dual_plane == 1); in compute_symbolic_block_difference_2plane() 345 const block_mode& bm = bsd.get_block_mode(scb.block_mode); in compute_symbolic_block_difference_2plane() 427 assert(bsd.get_block_mode(scb.block_mode).is_dual_plane == 0); in compute_symbolic_block_difference_1plane() 435 assert(scb.block_mode >= 0); in compute_symbolic_block_difference_1plane() 442 const block_mode& bm = bsd.get_block_mode(scb.block_mode); in compute_symbolic_block_difference_1plane() 530 assert(scb.block_mode >= 0); in compute_symbolic_block_difference_1plane_1partition() 534 const block_mode& bm = bsd.get_block_mode(scb.block_mode); in compute_symbolic_block_difference_1plane_1partition()
|
D | astcenc_internal.h | 400 struct block_mode struct 574 block_mode block_modes[WEIGHTS_MAX_BLOCK_MODES]; 621 const block_mode& get_block_mode(unsigned int block_mode) const in get_block_mode() 623 unsigned int packed_index = this->block_mode_packed_index[block_mode]; in get_block_mode() 1068 uint16_t block_mode; member 1877 int block_mode[TUNE_MAX_TRIAL_CANDIDATES],
|
D | astcenc_compress_symbolic.cpp | 80 const block_mode& bm = bsd.get_block_mode(scb.block_mode); in realign_weights_undecimated() 200 const block_mode& bm = bsd.get_block_mode(scb.block_mode); in realign_weights_decimated() 449 const block_mode& bm = bsd.block_modes[i]; in compress_symbolic_block_for_partition_1plane() 516 const block_mode& qw_bm = bsd.block_modes[bm_packed_index]; in compress_symbolic_block_for_partition_1plane() 611 workscb.block_mode = qw_bm.mode_index; in compress_symbolic_block_for_partition_1plane() 814 const block_mode& bm = bsd.block_modes[i]; in compress_symbolic_block_for_partition_2planes() 897 const block_mode& qw_bm = bsd.block_modes[bm_packed_index]; in compress_symbolic_block_for_partition_2planes() 944 workscb.block_mode = qw_bm.mode_index; in compress_symbolic_block_for_partition_2planes() 1311 const auto& bm = bsd.get_block_mode(scb.block_mode); in compress_block()
|
D | astcenc_weight_align.cpp | 385 const block_mode& bm = bsd.block_modes[i]; in compute_angular_endpoints_1plane() 458 const block_mode& bm = bsd.block_modes[i]; in compute_angular_endpoints_2planes()
|
D | astcenc_entry.cpp | 1335 const block_mode& bm = bsd.get_block_mode(scb.block_mode); in astcenc_get_block_info()
|
D | astcenc_pick_best_endpoint_format.cpp | 1106 int block_mode[TUNE_MAX_TRIAL_CANDIDATES], in compute_ideal_endpoint_formats() 1340 block_mode[i] = best_error_weights[i]; in compute_ideal_endpoint_formats()
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | KeymasterHidlTest.cpp | 446 void KeymasterHidlTest::CheckAesIncrementalEncryptOperation(BlockMode block_mode, in CheckAesIncrementalEncryptOperation() argument 451 .BlockMode(block_mode) in CheckAesIncrementalEncryptOperation() 453 if (block_mode == BlockMode::GCM) { in CheckAesIncrementalEncryptOperation() 461 .BlockMode(block_mode) in CheckAesIncrementalEncryptOperation() 478 switch (block_mode) { in CheckAesIncrementalEncryptOperation() 494 switch (block_mode) { in CheckAesIncrementalEncryptOperation() 508 switch (block_mode) { in CheckAesIncrementalEncryptOperation() 512 ASSERT_TRUE(iv.isOk()) << "No IV for block mode " << block_mode; in CheckAesIncrementalEncryptOperation() 513 EXPECT_EQ(block_mode == BlockMode::GCM ? 12U : 16U, iv.value().size()); in CheckAesIncrementalEncryptOperation() 523 << "Decrypt begin() failed for block mode " << block_mode; in CheckAesIncrementalEncryptOperation() [all …]
|
D | KeymasterHidlTest.h | 171 void CheckAesIncrementalEncryptOperation(BlockMode block_mode, int message_size); 179 void CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, 193 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding); 194 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 196 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 198 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 204 string DecryptMessage(const string& ciphertext, BlockMode block_mode, PaddingMode padding_mode,
|
D | keymaster_hidl_hal_test.cpp | 3910 const BlockMode block_mode; member 4003 CheckTripleDesTestVector(test->purpose, test->block_mode, test->padding_mode, in TEST_P()
|
/hardware/interfaces/security/keymint/aidl/vts/functional/ |
D | KeyMintAidlTestBase.cpp | 735 void KeyMintAidlTestBase::CheckAesIncrementalEncryptOperation(BlockMode block_mode, in CheckAesIncrementalEncryptOperation() argument 740 .BlockMode(block_mode) in CheckAesIncrementalEncryptOperation() 742 if (block_mode == BlockMode::GCM) { in CheckAesIncrementalEncryptOperation() 749 auto params = AuthorizationSetBuilder().BlockMode(block_mode).Padding(PaddingMode::NONE); in CheckAesIncrementalEncryptOperation() 750 if (block_mode == BlockMode::GCM) { in CheckAesIncrementalEncryptOperation() 763 << "Error sending " << to_send << " with block mode " << block_mode; in CheckAesIncrementalEncryptOperation() 765 switch (block_mode) { in CheckAesIncrementalEncryptOperation() 779 switch (block_mode) { in CheckAesIncrementalEncryptOperation() 783 ASSERT_TRUE(iv) << "No IV for block mode " << block_mode; in CheckAesIncrementalEncryptOperation() 784 EXPECT_EQ(block_mode == BlockMode::GCM ? 12U : 16U, iv->get().size()); in CheckAesIncrementalEncryptOperation() [all …]
|
D | KeyMintAidlTestBase.h | 196 void CheckAesIncrementalEncryptOperation(BlockMode block_mode, int message_size); 198 void AesCheckEncryptOneByteAtATime(const string& key, BlockMode block_mode, 208 void CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, 227 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding); 228 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 230 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 232 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 234 string EncryptMessage(const string& message, BlockMode block_mode, PaddingMode padding, 240 string DecryptMessage(const string& ciphertext, BlockMode block_mode, PaddingMode padding_mode, 383 void CheckEncryptOneByteAtATime(BlockMode block_mode, const int block_size,
|
D | KeyMintTest.cpp | 684 for (auto block_mode : ValidBlockModes(Algorithm::AES)) { in TEST_P() local 685 for (auto padding_mode : ValidPaddingModes(Algorithm::AES, block_mode)) { in TEST_P() 687 << "AES-" << key_size << "-" << block_mode << "-" << padding_mode); in TEST_P() 692 .BlockMode(block_mode) in TEST_P() 695 if (block_mode == BlockMode::GCM) { in TEST_P() 723 for (auto block_mode : ValidBlockModes(Algorithm::AES)) { in TEST_P() local 724 for (auto padding_mode : ValidPaddingModes(Algorithm::AES, block_mode)) { in TEST_P() 726 << "AES-" << key_size << "-" << block_mode << "-" << padding_mode); in TEST_P() 731 .BlockMode(block_mode) in TEST_P() 734 if (block_mode == BlockMode::GCM) { in TEST_P() [all …]
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | authorization_set.h | 398 for (auto block_mode : block_modes) { in BlockMode() local 399 Authorization(TAG_BLOCK_MODE, block_mode); in BlockMode()
|
D | keymaster_tags.h | 370 inline const char* stringify(BlockMode block_mode) { 371 switch (block_mode) {
|
D | keymaster_hidl_hal_test.cpp | 3076 for (auto block_mode : block_modes) { in TEST_P() local 3079 .BlockMode(block_mode) in TEST_P() 3094 switch (block_mode) { in TEST_P() 3110 switch (block_mode) { in TEST_P() 3124 switch (block_mode) { in TEST_P() 3128 ASSERT_TRUE(iv.isOk()) << "No IV for block mode " << block_mode; in TEST_P() 3129 EXPECT_EQ(block_mode == BlockMode::GCM ? 12U : 16U, iv.value().size()); in TEST_P() 3139 << "Decrypt begin() failed for block mode " << block_mode; in TEST_P() 3149 << "Decryption failed for block mode " << block_mode << " and increment " in TEST_P() 3153 << block_mode << " and increment " << increment; in TEST_P()
|
/hardware/google/graphics/common/libhwjpeg/ |
D | ExynosJpegEncoderForCamera.cpp | 380 bool block_mode = !TestState(STATE_HWFC_ENABLED); in encode() local 425 ssize_t mainlen = GetCompressor().Compress(&thumblen, block_mode); in encode()
|
D | hwjpeg-v4l2.cpp | 412 ssize_t CHWJpegV4L2Compressor::Compress(size_t *secondary_stream_size, bool block_mode) { in Compress() argument 449 return block_mode ? DQBuf(secondary_stream_size) : 0; in Compress()
|
/hardware/google/graphics/common/libhwjpeg/include/ |
D | exynos-hwjpeg.h | 328 virtual ssize_t Compress(size_t *secondary_stream_size = NULL, bool block_mode = true) = 0;
|