Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/hardware/interfaces/sensors/1.0/default/
Dconvert.cpp27 void convertFromSensor(const sensor_t &src, SensorInfo *dst) { in convertFromSensor() argument
28 dst->name = src.name; in convertFromSensor()
29 dst->vendor = src.vendor; in convertFromSensor()
30 dst->version = src.version; in convertFromSensor()
31 dst->sensorHandle = src.handle; in convertFromSensor()
32 dst->type = (SensorType)src.type; in convertFromSensor()
33 dst->maxRange = src.maxRange; in convertFromSensor()
34 dst->resolution = src.resolution; in convertFromSensor()
35 dst->power = src.power; in convertFromSensor()
36 dst->minDelay = src.minDelay; in convertFromSensor()
[all …]
/hardware/interfaces/camera/device/3.2/default/
Dconvert.cpp34 bool convertFromHidl(const CameraMetadata &src, const camera_metadata_t** dst) { in convertFromHidl() argument
37 *dst = nullptr; in convertFromHidl()
54 *dst = (camera_metadata_t*) data; in convertFromHidl()
59 void convertToHidl(const camera_metadata_t *src, CameraMetadata* dst) { in convertToHidl() argument
64 dst->setToExternal((uint8_t *) src, size); in convertToHidl()
68 void convertFromHidl(const Stream &src, Camera3Stream* dst) { in convertFromHidl() argument
69 dst->mId = src.id; in convertFromHidl()
70 dst->stream_type = (int) src.streamType; in convertFromHidl()
71 dst->width = src.width; in convertFromHidl()
72 dst->height = src.height; in convertFromHidl()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format_yuv.c49 float *dst = dst_row; in util_format_r8g8_b8g8_unorm_unpack_rgba_float() local
62 dst[0] = r; /* r */ in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
63 dst[1] = g0; /* g */ in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
64 dst[2] = b; /* b */ in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
65 dst[3] = 1.0f; /* a */ in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
66 dst += 4; in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
68 dst[0] = r; /* r */ in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
69 dst[1] = g1; /* g */ in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
70 dst[2] = b; /* b */ in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
71 dst[3] = 1.0f; /* a */ in util_format_r8g8_b8g8_unorm_unpack_rgba_float()
[all …]
Du_format_other.c41 float *dst = dst_row; in util_format_r9g9b9e5_float_unpack_rgba_float() local
45 rgb9e5_to_float3(value, dst); in util_format_r9g9b9e5_float_unpack_rgba_float()
46 dst[3] = 1; /* a */ in util_format_r9g9b9e5_float_unpack_rgba_float()
48 dst += 4; in util_format_r9g9b9e5_float_unpack_rgba_float()
60 uint8_t *dst = dst_row; in util_format_r9g9b9e5_float_pack_rgba_float() local
63 *(uint32_t *)dst = value; in util_format_r9g9b9e5_float_pack_rgba_float()
65 dst += 4; in util_format_r9g9b9e5_float_pack_rgba_float()
76 float *dst = in_dst; in util_format_r9g9b9e5_float_fetch_rgba() local
78 rgb9e5_to_float3(value, dst); in util_format_r9g9b9e5_float_fetch_rgba()
79 dst[3] = 1; /* a */ in util_format_r9g9b9e5_float_fetch_rgba()
[all …]
Du_format_latc.c33 util_format_latc1_unorm_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsig… in util_format_latc1_unorm_fetch_rgba_8unorm() argument
39 util_format_unsigned_fetch_texel_rgtc(0, src, i, j, dst, 1); in util_format_latc1_unorm_fetch_rgba_8unorm()
40 dst[1] = dst[0]; in util_format_latc1_unorm_fetch_rgba_8unorm()
41 dst[2] = dst[0]; in util_format_latc1_unorm_fetch_rgba_8unorm()
42 dst[3] = 255; in util_format_latc1_unorm_fetch_rgba_8unorm()
69 float *dst = (float *)((uint8_t *)dst_row + (y + j)*dst_stride + (x + i)*16); in util_format_latc1_unorm_unpack_rgba_float() local
72 dst[0] = in util_format_latc1_unorm_unpack_rgba_float()
73 dst[1] = in util_format_latc1_unorm_unpack_rgba_float()
74 dst[2] = ubyte_to_float(tmp_r); in util_format_latc1_unorm_unpack_rgba_float()
75 dst[3] = 1.0; in util_format_latc1_unorm_unpack_rgba_float()
[all …]
Du_format_s3tc.c46 util_format_dxt1_rgb_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigned… in util_format_dxt1_rgb_fetch_rgba_8unorm() argument
48 util_format_dxt1_rgb_fetch(0, src, i, j, dst); in util_format_dxt1_rgb_fetch_rgba_8unorm()
52 util_format_dxt1_rgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigne… in util_format_dxt1_rgba_fetch_rgba_8unorm() argument
54 util_format_dxt1_rgba_fetch(0, src, i, j, dst); in util_format_dxt1_rgba_fetch_rgba_8unorm()
58 util_format_dxt3_rgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigne… in util_format_dxt3_rgba_fetch_rgba_8unorm() argument
60 util_format_dxt3_rgba_fetch(0, src, i, j, dst); in util_format_dxt3_rgba_fetch_rgba_8unorm()
64 util_format_dxt5_rgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigne… in util_format_dxt5_rgba_fetch_rgba_8unorm() argument
66 util_format_dxt5_rgba_fetch(0, src, i, j, dst); in util_format_dxt5_rgba_fetch_rgba_8unorm()
72 float *dst = in_dst; in util_format_dxt1_rgb_fetch_rgba() local
75 dst[0] = ubyte_to_float(tmp[0]); in util_format_dxt1_rgb_fetch_rgba()
[all …]
Du_format_rgtc.c32 util_format_rgtc1_unorm_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsig… in util_format_rgtc1_unorm_fetch_rgba_8unorm() argument
34 util_format_unsigned_fetch_texel_rgtc(0, src, i, j, dst, 1); in util_format_rgtc1_unorm_fetch_rgba_8unorm()
35 dst[1] = 0; in util_format_rgtc1_unorm_fetch_rgba_8unorm()
36 dst[2] = 0; in util_format_rgtc1_unorm_fetch_rgba_8unorm()
37 dst[3] = 255; in util_format_rgtc1_unorm_fetch_rgba_8unorm()
54 uint8_t *dst = dst_row + (y + j)*dst_stride/sizeof(*dst_row) + (x + i)*comps; in util_format_rgtc1_unorm_unpack_r_8unorm() local
55 util_format_unsigned_fetch_texel_rgtc(0, src, i, j, dst, 1); in util_format_rgtc1_unorm_unpack_r_8unorm()
78 uint8_t *dst = dst_row + (y + j)*dst_stride/sizeof(*dst_row) + (x + i)*comps; in util_format_rgtc1_unorm_unpack_rgba_8unorm() local
79 util_format_unsigned_fetch_texel_rgtc(0, src, i, j, dst, 1); in util_format_rgtc1_unorm_unpack_rgba_8unorm()
80 dst[1] = 0; in util_format_rgtc1_unorm_unpack_rgba_8unorm()
[all …]
Du_format_zs.c146 float *dst = dst_row; in util_format_z16_unorm_unpack_z_float() local
149 *dst++ = z16_unorm_to_z32_float(*src++); in util_format_z16_unorm_unpack_z_float()
164 uint16_t *dst = (uint16_t *)dst_row; in util_format_z16_unorm_pack_z_float() local
166 *dst++ = z32_float_to_z16_unorm(*src++); in util_format_z16_unorm_pack_z_float()
180 uint32_t *dst = dst_row; in util_format_z16_unorm_unpack_z_32unorm() local
183 *dst++ = z16_unorm_to_z32_unorm(*src++); in util_format_z16_unorm_unpack_z_32unorm()
198 uint16_t *dst = (uint16_t *)dst_row; in util_format_z16_unorm_pack_z_32unorm() local
200 *dst++ = z32_unorm_to_z16_unorm(*src++); in util_format_z16_unorm_pack_z_32unorm()
214 float *dst = dst_row; in util_format_z32_unorm_unpack_z_float() local
217 *dst++ = z32_unorm_to_z32_float(*src++); in util_format_z32_unorm_unpack_z_float()
[all …]
Du_format_etc.c41 float *dst = (float *)((uint8_t *)dst_row + (y + j) * dst_stride + x * comps * 4); in util_format_etc1_rgb8_unpack_rgba_float() local
46 dst[0] = ubyte_to_float(tmp[0]); in util_format_etc1_rgb8_unpack_rgba_float()
47 dst[1] = ubyte_to_float(tmp[1]); in util_format_etc1_rgb8_unpack_rgba_float()
48 dst[2] = ubyte_to_float(tmp[2]); in util_format_etc1_rgb8_unpack_rgba_float()
49 dst[3] = 1.0f; in util_format_etc1_rgb8_unpack_rgba_float()
50 dst += comps; in util_format_etc1_rgb8_unpack_rgba_float()
72 float *dst = in_dst; in util_format_etc1_rgb8_fetch_rgba() local
81 dst[0] = ubyte_to_float(tmp[0]); in util_format_etc1_rgb8_fetch_rgba()
82 dst[1] = ubyte_to_float(tmp[1]); in util_format_etc1_rgb8_fetch_rgba()
83 dst[2] = ubyte_to_float(tmp[2]); in util_format_etc1_rgb8_fetch_rgba()
[all …]
Du_format_s3tc.h53 uint8_t *dst );
60 uint8_t *dst,
78 util_format_dxt1_rgb_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigned…
87 util_format_dxt1_rgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigne…
96 util_format_dxt3_rgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigne…
105 util_format_dxt5_rgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigne…
114 util_format_dxt1_srgb_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsigne…
123 util_format_dxt1_srgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsign…
132 util_format_dxt3_srgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsign…
141 util_format_dxt5_srgba_fetch_rgba_8unorm(uint8_t *restrict dst, const uint8_t *restrict src, unsign…
[all …]
/hardware/interfaces/sensors/aidl/convert/
Dconvert.cpp67 void convertToSensor(const SensorInfo& src, sensor_t* dst) { in convertToSensor() argument
68 dst->name = strdup(src.name.c_str()); in convertToSensor()
69 dst->vendor = strdup(src.vendor.c_str()); in convertToSensor()
70 dst->version = src.version; in convertToSensor()
71 dst->handle = src.sensorHandle; in convertToSensor()
72 dst->type = (int)src.type; in convertToSensor()
73 dst->maxRange = src.maxRange; in convertToSensor()
74 dst->resolution = src.resolution; in convertToSensor()
75 dst->power = src.power; in convertToSensor()
76 dst->minDelay = src.minDelayUs; in convertToSensor()
[all …]
/hardware/interfaces/sensors/common/utils/
DconvertV2_1.h80 inline void convertToSensor(const V2_1::SensorInfo& src, sensor_t* dst) { in convertToSensor() argument
81 dst->name = strdup(src.name.c_str()); in convertToSensor()
82 dst->vendor = strdup(src.vendor.c_str()); in convertToSensor()
83 dst->version = src.version; in convertToSensor()
84 dst->handle = src.sensorHandle; in convertToSensor()
85 dst->type = (int)src.type; in convertToSensor()
86 dst->maxRange = src.maxRange; in convertToSensor()
87 dst->resolution = src.resolution; in convertToSensor()
88 dst->power = src.power; in convertToSensor()
89 dst->minDelay = src.minDelay; in convertToSensor()
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/
DCopyBitsTest.cpp25 uint32_t dst; in TEST() member
40 uint32_t dst = test_vector.dst; in TEST() local
41 copyBits(&(test_vector.src), &dst, sizeof(dst), in TEST()
44 EXPECT_EQ(test_vector.expected_dst, dst); in TEST()
51 uint32_t dst; in TEST() member
66 uint32_t dst = test_vector.dst; in TEST() local
67 copyBits(&(test_vector.src), &dst, sizeof(dst), in TEST()
70 EXPECT_EQ(test_vector.expected_dst, dst); in TEST()
/hardware/google/gfxstream/guest/mesa/src/util/
Dbigmath.h34 _ubm_add_u32arr(uint32_t *dst, unsigned dst_len, in _ubm_add_u32arr() argument
45 dst[i] = sum; in _ubm_add_u32arr()
63 #define ubm_add_u32arr(dst, a, b) \ argument
64 _ubm_add_u32arr(dst, ARRAY_SIZE(dst), a, ARRAY_SIZE(a), b, ARRAY_SIZE(b))
67 _ubm_mul_u32arr(uint32_t *dst, unsigned dst_len, in _ubm_mul_u32arr() argument
71 memset(dst, 0, dst_len * sizeof(*dst)); in _ubm_mul_u32arr()
92 tmp += dst[i + j]; in _ubm_mul_u32arr()
93 dst[i + j] = tmp; in _ubm_mul_u32arr()
102 dst[i + b_len] = carry; in _ubm_mul_u32arr()
109 #define ubm_mul_u32arr(dst, a, b) \ argument
[all …]
/hardware/interfaces/camera/device/3.3/default/
Dconvert.cpp33 void convertToHidl(const Camera3Stream* src, HalStream* dst) { in convertToHidl() argument
34 dst->overrideDataSpace = src->data_space; in convertToHidl()
35 dst->v3_2.id = src->mId; in convertToHidl()
36 dst->v3_2.overrideFormat = (PixelFormat) src->format; in convertToHidl()
37 dst->v3_2.maxBuffers = src->max_buffers; in convertToHidl()
39 dst->v3_2.consumerUsage = (BufferUsageFlags)0; in convertToHidl()
40 dst->v3_2.producerUsage = (BufferUsageFlags)src->usage; in convertToHidl()
42 dst->v3_2.producerUsage = (BufferUsageFlags)0; in convertToHidl()
43 dst->v3_2.consumerUsage = (BufferUsageFlags)src->usage; in convertToHidl()
52 void convertToHidl(const camera3_stream_configuration_t& src, HalStreamConfiguration* dst) { in convertToHidl() argument
[all …]
/hardware/google/graphics/common/libion/test/
Dion_device_test.cpp55 char *dst = new char[size]; in TEST_F() local
60 ionTestReadKernel(fd, dst, size, 0); in TEST_F()
62 EXPECT_TRUE(check(dst, size, 0)); in TEST_F()
64 delete [] dst; in TEST_F()
93 void *dst = ionMmap(fd, size); in TEST_F() local
96 dirtyCache(dst, size); in TEST_F()
100 EXPECT_TRUE(check(dst, size, 0)); in TEST_F()
104 ionMunmap(dst, size); in TEST_F()
130 char *dst = new char[size]; in TEST_F() local
135 ionTestReadKernel(fd, dst, size, 0); in TEST_F()
[all …]
/hardware/google/gfxstream/host/apigen-codec-common/X11/
DXpoll.h132 #define XFD_COPYSET(src,dst) { \ argument
135 __XFDS_BITS((dst), __i__) = __XFDS_BITS((src), __i__); \
137 #define XFD_ANDSET(dst,b1,b2) { \ argument
140 __XFDS_BITS((dst), __i__) = ((__XFDS_BITS((b1), __i__)) & (__XFDS_BITS((b2), __i__))); \
142 #define XFD_ORSET(dst,b1,b2) { \ argument
145 __XFDS_BITS((dst), __i__) = ((__XFDS_BITS((b1), __i__)) | (__XFDS_BITS((b2), __i__))); \
147 #define XFD_UNSET(dst,b1) { \ argument
150 __XFDS_BITS((dst), __i__) &= ~(__XFDS_BITS((b1), __i__)); \
171 #define XFD_COPYSET(src,dst) { \ argument
173 FD_ZERO(dst); \
[all …]
/hardware/interfaces/camera/device/3.4/default/
Dconvert.cpp34 void convertToHidl(const Camera3Stream* src, HalStream* dst) { in convertToHidl() argument
35 V3_3::implementation::convertToHidl(src, &dst->v3_3); in convertToHidl()
36 dst->physicalCameraId = src->physical_camera_id; in convertToHidl()
39 void convertToHidl(const camera3_stream_configuration_t& src, HalStreamConfiguration* dst) { in convertToHidl() argument
40 dst->streams.resize(src.num_streams); in convertToHidl()
42 convertToHidl(static_cast<Camera3Stream*>(src.streams[i]), &dst->streams[i]); in convertToHidl()
47 void convertFromHidl(const Stream &src, Camera3Stream* dst) { in convertFromHidl() argument
48 V3_2::implementation::convertFromHidl(src.v3_2, dst); in convertFromHidl()
50 dst->physical_camera_id = nullptr; in convertFromHidl()
/hardware/interfaces/automotive/evs/common/utils/default/
DFormatConvert.cpp79 uint32_t* dst, unsigned dstStridePixels, in copyNV21toRGB32() argument
98 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32()
111 uint32_t* dst, unsigned dstStridePixels, in copyYV12toRGB32() argument
135 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32()
146 uint32_t* dst, unsigned dstStridePixels, in copyYUYVtoRGB32() argument
165 *(dst+0) = yuvToRgbx(Y1, U, V, bgrxFormat); in copyYUYVtoRGB32()
166 *(dst+1) = yuvToRgbx(Y2, U, V, bgrxFormat); in copyYUYVtoRGB32()
167 dst += 2; in copyYUYVtoRGB32()
172 dst += dstRowPadding32; in copyYUYVtoRGB32()
179 uint32_t* dst, unsigned dstStridePixels) in copyNV21toBGR32() argument
[all …]
/hardware/google/graphics/gs201/libhwc2.1/libresource/
DExynosMPPModule.cpp38 const struct exynos_image &dst) { in checkSpecificRestriction() argument
49 if (src.h >= 2600 && src.w >= 1450 && src.h > dst.h && (dst.h * 100 / src.h) < 67) { in checkSpecificRestriction()
52 } else if (src.w >= 1680 && src.h > dst.h && (dst.h * 100 / src.h) < 60) { in checkSpecificRestriction()
58 return ExynosMPP::checkSpecificRestriction(refreshRate, src, dst); in checkSpecificRestriction()
63 struct exynos_image &dst) { in isSupported() argument
67 if (checkSpecificRestriction(refreshRate, src, dst)) { in isSupported()
72 return ExynosMPP::isSupported(display, src, dst); in isSupported()
/hardware/interfaces/camera/device/3.2/default/include/
Dconvert.h42 bool convertFromHidl(const CameraMetadata &src, const camera_metadata_t** dst);
43 void convertToHidl(const camera_metadata_t* src, CameraMetadata* dst);
45 void convertFromHidl(const Stream &src, Camera3Stream* dst);
46 void convertToHidl(const Camera3Stream* src, HalStream* dst);
50 camera3_stream_buffer_t* dst);
52 void convertToHidl(const camera3_stream_configuration_t& src, HalStreamConfiguration* dst);
57 void convertToHidl(const camera3_notify_msg* src, NotifyMsg* dst);
/hardware/qcom/display/msm8226/liboverlay/
DoverlayMdpRot.cpp40 return mRotDataInfo.dst.memory_id; in getDstMemId()
44 return mRotDataInfo.dst.offset; in getDstOffset()
48 return mRotImgInfo.dst.format; in getDstFormat()
54 int halFormat = ovutils::getHALFormat(mRotImgInfo.dst.format); in getDstWhf()
55 getBufferSizeAndDimensions(mRotImgInfo.dst.width, mRotImgInfo.dst.height, in getDstWhf()
57 return utils::Whf(alW, alH, mRotImgInfo.dst.format); in getDstWhf()
63 int halFormat = ovutils::getHALFormat(mRotImgInfo.dst.format); in getDstDimensions()
64 getBufferSizeAndDimensions(mRotImgInfo.dst.width, mRotImgInfo.dst.height, in getDstDimensions()
112 mRotImgInfo.dst.width = whf.w; in setSource()
113 mRotImgInfo.dst.height = whf.h; in setSource()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_meta_private.h44 vk_meta_rendering_info_copy(struct vk_meta_rendering_info *dst, in vk_meta_rendering_info_copy() argument
47 dst->view_mask = src->view_mask; in vk_meta_rendering_info_copy()
48 dst->samples = src->samples; in vk_meta_rendering_info_copy()
49 dst->color_attachment_count = src->color_attachment_count; in vk_meta_rendering_info_copy()
51 dst->color_attachment_formats[a] = src->color_attachment_formats[a]; in vk_meta_rendering_info_copy()
52 dst->depth_attachment_format = src->depth_attachment_format; in vk_meta_rendering_info_copy()
53 dst->stencil_attachment_format = src->stencil_attachment_format; in vk_meta_rendering_info_copy()
/hardware/interfaces/automotive/evs/common/utils/default/include/
DFormatConvert.h38 uint32_t* dst, unsigned dstStridePixels,
43 uint32_t* dst, unsigned dstStridePixels);
53 uint32_t* dst, unsigned dstStridePixels,
58 uint32_t* dst, unsigned dstStridePixels);
66 uint32_t* dst, unsigned dstStrideBytes,
71 uint32_t* dst, unsigned dstStrideBytes);
79 void* dst, unsigned dstStridePixels,
/hardware/interfaces/broadcastradio/1.1/default/
DBroadcastRadio.cpp174 V1_0::BandConfig dst; in getAmFmBands() local
176 dst.type = src.type; in getAmFmBands()
177 dst.antennaConnected = true; in getAmFmBands()
178 dst.lowerLimit = src.lowerLimit; in getAmFmBands()
179 dst.upperLimit = src.upperLimit; in getAmFmBands()
180 dst.spacings = src.spacings; in getAmFmBands()
183 dst.ext.am.stereo = true; in getAmFmBands()
185 dst.ext.fm.deemphasis = static_cast<Deemphasis>(Deemphasis::D50 | Deemphasis::D75); in getAmFmBands()
186 dst.ext.fm.stereo = true; in getAmFmBands()
187 dst.ext.fm.rds = static_cast<Rds>(Rds::WORLD | Rds::US); in getAmFmBands()
[all …]

12345678910>>...17