/device/generic/goldfish/camera/ |
D | yuv.cpp | 28 void copyCbCrPlane(uint8_t* dst, const size_t width, size_t height, in copyCbCrPlane() argument 33 for (size_t rem = width & 15; rem; --rem, ++dst, p += srcStep) { in copyCbCrPlane() 34 *dst = *p; in copyCbCrPlane() 38 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane() 39 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane() 40 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane() 41 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane() 42 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane() 43 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane() 44 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane() [all …]
|
/device/generic/goldfish-opengl/system/hwc3/ |
D | GuestFrameComposer.cpp | 72 typedef int (*ConverterFunction)(const BufferSpec& src, const BufferSpec& dst, bool v_flip); 73 int DoCopy(const BufferSpec& src, const BufferSpec& dst, bool vFlip); 74 int ConvertFromRGB565(const BufferSpec& src, const BufferSpec& dst, bool vFlip); 75 int ConvertFromYV12(const BufferSpec& src, const BufferSpec& dst, bool vFlip); 164 int DoFill(const BufferSpec& dst, const Color& color) { in DoFill() argument 176 uint8_t* dstBuffer = dst.buffer + dst.cropY * dst.strideBytes + dst.cropX * dst.sampleBytes; in DoFill() 178 libyuv::SetPlane(dstBuffer, static_cast<int>(dst.strideBytes), static_cast<int>(dst.cropWidth), in DoFill() 179 static_cast<int>(dst.cropHeight), rgba); in DoFill() 183 int ConvertFromRGB565(const BufferSpec& src, const BufferSpec& dst, bool vFlip) { in ConvertFromRGB565() argument 189 uint8_t* dstBuffer = dst.buffer + dst.cropY * dst.strideBytes + dst.cropX * dst.sampleBytes; in ConvertFromRGB565() [all …]
|
/device/google/contexthub/firmware/lib/libc/ |
D | bcopy.c | 70 char *dst = dst0; in memcpy() local 74 if (length == 0 || dst == src) /* nothing to do */ in memcpy() 83 if ((unsigned long)dst < (unsigned long)src) { in memcpy() 88 if ((t | (uintptr_t)dst) & wmask) { in memcpy() 93 if ((t ^ (uintptr_t)dst) & wmask || length < wsize) in memcpy() 98 TLOOP1(*dst++ = *src++); in memcpy() 104 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize); in memcpy() 106 TLOOP(*dst++ = *src++); in memcpy() 114 dst += length; in memcpy() 116 if ((t | (uintptr_t)dst) & wmask) { in memcpy() [all …]
|
D | memset.c | 67 u_char *dst; in bzero() local 69 dst = dst0; in bzero() 85 *dst++ = VAL; in bzero() 103 if ((t = (long)dst & wmask) != 0) { in bzero() 107 *dst++ = VAL; in bzero() 114 *(u_int *)dst = WIDEVAL; in bzero() 115 dst += wsize; in bzero() 122 *dst++ = VAL; in bzero()
|
D | strncpy.c | 42 strncpy(char *dst, const char *src, size_t n) in strncpy() argument 45 char *d = dst; in strncpy() 57 return (dst); in strncpy()
|
/device/google/cuttlefish/guest/hals/camera/ |
D | vsock_frame_provider.cpp | 73 bool VsockFrameProvider::copyYUVFrame(uint32_t w, uint32_t h, YCbCrLayout dst) { in copyYUVFrame() argument 83 if (dst.y == nullptr) { in copyYUVFrame() 94 uint8_t* dst_y = static_cast<uint8_t*>(dst.y); in copyYUVFrame() 96 uint8_t* dst_cb = static_cast<uint8_t*>(dst.cb); in copyYUVFrame() 98 uint8_t* dst_cr = static_cast<uint8_t*>(dst.cr); in copyYUVFrame() 99 libyuv::CopyPlane(src_y, src.yStride, dst_y, dst.yStride, w, h); in copyYUVFrame() 100 if (dst.chromaStep == 1) { in copyYUVFrame() 102 libyuv::CopyPlane(src_cb, src.cStride, dst_cb, dst.cStride, w / 2, h / 2); in copyYUVFrame() 103 libyuv::CopyPlane(src_cr, src.cStride, dst_cr, dst.cStride, w / 2, h / 2); in copyYUVFrame() 104 } else if (dst.chromaStep == 2 && dst_cr - dst_cb == 1) { in copyYUVFrame() [all …]
|
/device/google/contexthub/lib/nanohub/ |
D | aes.c | 204 void aesEncr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst) in aesEncr() argument 249 *dst++ = *k++ ^ in aesEncr() 255 *dst++ = *k++ ^ in aesEncr() 261 *dst++ = *k++ ^ in aesEncr() 267 *dst++ = *k++ ^ in aesEncr() 274 void aesDecr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst) in aesDecr() argument 319 *dst++ = *k++ ^ in aesDecr() 325 *dst++ = *k++ ^ in aesDecr() 331 *dst++ = *k++ ^ in aesDecr() 337 *dst++ = *k++ ^ in aesDecr() [all …]
|
D | nanoapp.c | 46 bool readFile(void *dst, uint32_t len, const char *fileName) in readFile() argument 54 if (len != fread(dst, 1, len, f)) in readFile() 71 uint8_t *dst = NULL; in loadFile() local 81 len += grow; dst = reallocOrDie(dst, len); in loadFile() 83 block = fread(dst + total, 1, grow, f); in loadFile() 91 free(dst); in loadFile() 93 dst = NULL; in loadFile() 98 return dst; in loadFile()
|
/device/google/atv/audio_proxy/service/ |
D | RingBufferUtil.cpp | 22 int8_t* dst = nullptr; member 50 cp2 = {cp1.dst + cp1.len, srcBuf2, dstLen1 - srcLen1}; in copyRingBuffer() 54 cp2 = {cp1.dst + cp1.len, srcBuf2, srcLen2}; in copyRingBuffer() 61 cp3 = {cp2.dst + cp2.len, srcBuf2, srcLen2}; in copyRingBuffer() 65 DCHECK(cp1.dst); in copyRingBuffer() 67 std::memcpy(cp1.dst, cp1.src, cp1.len); in copyRingBuffer() 71 DCHECK(cp2.dst); in copyRingBuffer() 73 std::memcpy(cp2.dst, cp2.src, cp2.len); in copyRingBuffer() 77 DCHECK(cp3.dst); in copyRingBuffer() 79 std::memcpy(cp3.dst, cp3.src, cp3.len); in copyRingBuffer()
|
/device/google/contexthub/firmware/os/core/ |
D | bl.c | 128 static bool blProgramFlash(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key1, uint32… in blProgramFlash() argument 135 ((0xFFFFFFFF - (uint32_t)dst) < (length - 1)) || in blProgramFlash() 136 ((dst < mBlFlashTable[0].address)) || in blProgramFlash() 137 ((dst + length) > (mBlFlashTable[sector_cnt-1].address + in blProgramFlash() 144 if (dst >= mBlFlashTable[i].address && in blProgramFlash() 145 dst < (mBlFlashTable[i].address + mBlFlashTable[i].length)) { in blProgramFlash() 153 offset = (uint32_t)(dst - mBlFlashTable[i].address); in blProgramFlash() 170 if (!blPlatProgramFlash(dst, src, length, key1, key2)) in blProgramFlash() 173 return !memcmp(dst, src, length); in blProgramFlash() 181 static bool blProgramTypedArea(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t type, ui… in blProgramTypedArea() argument [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | pdu_parser.cpp | 273 std::string dst; in BCDToString() local 282 dst += data[i + 1]; in BCDToString() 283 dst += data[i]; in BCDToString() 286 if (dst[length -1] == 'F') { in BCDToString() 287 dst.replace(length -1, length, "\0"); in BCDToString() 289 return dst; in BCDToString() 294 std::string dst; in StringToBCD() local 301 dst += data[i + 1]; in StringToBCD() 303 dst += 'F'; in StringToBCD() 305 dst += data[i]; in StringToBCD() [all …]
|
/device/google/cuttlefish/host/frontend/webrtc_operator/ |
D | utils.cpp | 63 uint8_t *dst = static_cast<uint8_t *>(_dst); in SET_U16() local 64 dst[0] = x >> 8; in SET_U16() 65 dst[1] = x & 0xff; in SET_U16() 69 uint8_t *dst = static_cast<uint8_t *>(_dst); in SET_U32() local 70 dst[0] = x >> 24; in SET_U32() 71 dst[1] = (x >> 16) & 0xff; in SET_U32() 72 dst[2] = (x >> 8) & 0xff; in SET_U32() 73 dst[3] = x & 0xff; in SET_U32()
|
/device/google/contexthub/firmware/os/inc/ |
D | bl.h | 54 …bool (*blProgramShared)(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key… 56 …bool (*blProgramEe)(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key1, u… 68 void (*blAesEncr)(struct AesContext *ctx, const uint32_t *src, uint32_t *dst); 69 void (*blAesDecr)(struct AesContext *ctx, const uint32_t *src, uint32_t *dst); 72 void (*blAesCbcEncr)(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst); 73 void (*blAesCbcDecr)(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst); 92 bool blPlatProgramFlash(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key1, uint32_t …
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | crt_stm32.c | 128 uint32_t *dst, *src, *end; in ResetISR() local 131 dst = __data_start; in ResetISR() 134 while(dst != end) in ResetISR() 135 *dst++ = *src++; in ResetISR() 138 dst = __bss_start; in ResetISR() 140 while(dst != end) in ResetISR() 141 *dst++ = 0; in ResetISR()
|
D | bl.c | 283 static void blWriteBytes(uint8_t *dst, const uint8_t *src, uint32_t length) in blWriteBytes() argument 302 if (dst[i] != src[i]) in blWriteBytes() 303 func(&dst[i], src[i], &flash->SR); in blWriteBytes() 310 bool blPlatProgramFlash(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key1, uint32_t … in blPlatProgramFlash() argument 345 blWriteBytes(dst, src, length); in blPlatProgramFlash()
|
/device/google/trout/agl_services_build/yocto-layer/meta-google/recipes-trout/agl-services/ |
D | sources.inc | 58 def force_create_symlink(src, dst): 59 src = os.path.relpath(src, os.path.dirname(dst)) 60 tmplink = '{}.templink'.format(dst) 62 os.rename(tmplink, dst) 67 for src, dst in map(lambda x: x.split(':'), linkfile_rules): 68 force_create_symlink(src, dst)
|
D | common.inc | 27 src, dst = entry.split(':') 28 force_create_symlink(src, dst) 30 dst = entry 31 os.system('install -m 0755 {} {}'.format(dst, install_dir))
|
/device/generic/goldfish-opengl/system/codecs/omx/plugin/ |
D | GoldfishVideoDecoderOMXComponent.cpp | 316 uint8_t *dst, const uint8_t *srcY, const uint8_t *srcU, const uint8_t *srcV, in copyYV12FrameToOutputBuffer() argument 324 uint8_t *dstStart = dst; in copyYV12FrameToOutputBuffer() 327 memcpy(dst, srcY, mWidth * bpp); in copyYV12FrameToOutputBuffer() 329 dst += dstYStride; in copyYV12FrameToOutputBuffer() 332 dst = dstStart + dstYStride * dstHeight; in copyYV12FrameToOutputBuffer() 334 memcpy(dst, srcU, mWidth / 2 * bpp); in copyYV12FrameToOutputBuffer() 336 dst += dstUVStride; in copyYV12FrameToOutputBuffer() 339 dst = dstStart + (5 * dstYStride * dstHeight) / 4; in copyYV12FrameToOutputBuffer() 341 memcpy(dst, srcV, mWidth / 2 * bpp); in copyYV12FrameToOutputBuffer() 343 dst += dstUVStride; in copyYV12FrameToOutputBuffer()
|
/device/generic/goldfish-opengl/system/codecs/omx/avcdec/ |
D | MediaH264Decoder.cpp | 149 …uint8_t* dst = transport->getInputAddr(mAddressOffSet); // Note: reuse the same addr for input and… in getImage() local 151 transport->writeParam(transport->offsetOf((uint64_t)(dst)) - mAddressOffSet, 1, mAddressOffSet); in getImage() 158 res.data = dst; in getImage() 187 …uint8_t* dst = transport->getInputAddr(mAddressOffSet); // Note: reuse the same addr for input and… in renderOnHostAndReturnImageMetadata() local 189 transport->writeParam(transport->offsetOf((uint64_t)(dst)) - mAddressOffSet, 1, mAddressOffSet); in renderOnHostAndReturnImageMetadata() 196 res.data = dst; // note: the data could be junk in renderOnHostAndReturnImageMetadata()
|
/device/google/contexthub/lib/include/nanohub/ |
D | aes.h | 37 void aesEncr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst); //encrypts AES_BLOCK_WORD… 38 void aesDecr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst); //deencrypts AES_BLOCK_WO… 48 void aesCbcEncr(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst); //encrypts AES_BLOC… 49 void aesCbcDecr(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst); //encrypts AES_BLOC…
|
/device/generic/goldfish-opengl/system/codecs/c2/decoders/hevcdec/ |
D | MediaHevcDecoder.cpp | 165 uint8_t *dst = transport->getInputAddr( in getImage() local 168 transport->writeParam(transport->offsetOf((uint64_t)(dst)) - mAddressOffSet, in getImage() 176 res.data = dst; in getImage() 205 uint8_t *dst = transport->getInputAddr( in renderOnHostAndReturnImageMetadata() local 208 transport->writeParam(transport->offsetOf((uint64_t)(dst)) - mAddressOffSet, in renderOnHostAndReturnImageMetadata() 216 res.data = dst; // note: the data could be junk in renderOnHostAndReturnImageMetadata()
|
/device/generic/goldfish-opengl/system/codecs/c2/decoders/avcdec/ |
D | MediaH264Decoder.cpp | 165 uint8_t *dst = transport->getInputAddr( in getImage() local 168 transport->writeParam(transport->offsetOf((uint64_t)(dst)) - mAddressOffSet, in getImage() 176 res.data = dst; in getImage() 205 uint8_t *dst = transport->getInputAddr( in renderOnHostAndReturnImageMetadata() local 208 transport->writeParam(transport->offsetOf((uint64_t)(dst)) - mAddressOffSet, in renderOnHostAndReturnImageMetadata() 216 res.data = dst; // note: the data could be junk in renderOnHostAndReturnImageMetadata()
|
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/ |
D | arm_math.h | 543 q31_t * dst, in arm_recip_q31() argument 582 *dst = out; in arm_recip_q31() 594 q15_t * dst, in arm_recip_q15() argument 632 *dst = out; in arm_recip_q15() 5231 arm_matrix_instance_f32 * dst); 5244 arm_matrix_instance_f64 * dst); 6199 int32_t * dst, in arm_circularRead_f32() argument 6219 *dst = circBuffer[rOffset]; in arm_circularRead_f32() 6222 dst += dstInc; in arm_circularRead_f32() 6224 if(dst == (int32_t *) dst_end) in arm_circularRead_f32() [all …]
|
/device/google/gs-common/gear/dumpstate/ |
D | pixel_dump.cpp | 99 std::ofstream dst(DestDir, std::ios::binary); in copyFile() local 100 dst << src.rdbuf(); in copyFile() 102 dst.close(); in copyFile()
|
/device/generic/goldfish-opengl/system/codecs/omx/vpxdec/ |
D | GoldfishVPX.cpp | 211 uint8_t *dst = outHeader->pBuffer; in outputBuffers() local 212 memcpy(dst, mCtx->dst, outHeader->nFilledLen); in outputBuffers() 453 void* dst = NULL; in internalSetParameter() local 462 (OMX_U8*)dst); in internalSetParameter()
|