Searched refs:row_bytes (Results 1 - 3 of 3) sorted by relevance

/frameworks/ml/nn/common/operations/
H A DEmbeddingLookup.cpp37 const int row_bytes = total_bytes/row_size; local
45 memcpy(output_->buffer + i * row_bytes, value_->buffer + idx * row_bytes,
46 row_bytes);
H A DHashtableLookup.cpp46 const int row_bytes = sizeOfData(value_->type, value_->dimensions) / num_rows; local
59 memset(output_->buffer + i * row_bytes, 0, row_bytes);
62 memcpy(output_->buffer + i * row_bytes, value_->buffer + idx * row_bytes,
63 row_bytes);
/frameworks/base/tools/aapt2/compile/
H A DPngCrunch.cpp263 const size_t row_bytes = png_get_rowbytes(read_ptr, info_ptr); local
264 CHECK(row_bytes == 4 * width); // RGBA
267 output_image->data = std::unique_ptr<uint8_t[]>(new uint8_t[height * row_bytes]);
272 output_image->rows[h] = output_image->data.get() + (h * row_bytes);

Completed in 41 milliseconds