Lines Matching refs:src
33 bool convertFromHidl(const CameraMetadata &src, const camera_metadata_t** dst) { in convertFromHidl() argument
34 if (src.size() == 0) { in convertFromHidl()
40 const uint8_t* data = src.data(); in convertFromHidl()
42 if (get_camera_metadata_size((camera_metadata_t*)data) != src.size()) { in convertFromHidl()
51 void convertToHidl(const camera_metadata_t *src, CameraMetadata* dst) { in convertToHidl() argument
52 if (src == nullptr) { in convertToHidl()
55 size_t size = get_camera_metadata_size(src); in convertToHidl()
56 dst->setToExternal((uint8_t *) src, size); in convertToHidl()
60 void convertFromHidl(const Stream &src, Camera3Stream* dst) { in convertFromHidl() argument
61 dst->mId = src.id; in convertFromHidl()
62 dst->stream_type = (int) src.streamType; in convertFromHidl()
63 dst->width = src.width; in convertFromHidl()
64 dst->height = src.height; in convertFromHidl()
65 dst->format = (int) src.format; in convertFromHidl()
66 dst->data_space = (android_dataspace_t) src.dataSpace; in convertFromHidl()
67 dst->rotation = (int) src.rotation; in convertFromHidl()
68 dst->usage = (uint32_t) src.usage; in convertFromHidl()
75 void convertToHidl(const Camera3Stream* src, HalStream* dst) { in convertToHidl() argument
76 dst->id = src->mId; in convertToHidl()
77 dst->overrideFormat = (PixelFormat) src->format; in convertToHidl()
78 dst->maxBuffers = src->max_buffers; in convertToHidl()
79 if (src->stream_type == CAMERA3_STREAM_OUTPUT) { in convertToHidl()
81 dst->producerUsage = (BufferUsageFlags)src->usage; in convertToHidl()
82 } else if (src->stream_type == CAMERA3_STREAM_INPUT) { in convertToHidl()
84 dst->consumerUsage = (BufferUsageFlags)src->usage; in convertToHidl()
89 __FUNCTION__, src->stream_type); in convertToHidl()
93 void convertToHidl(const camera3_stream_configuration_t& src, HalStreamConfiguration* dst) { in convertToHidl() argument
94 dst->streams.resize(src.num_streams); in convertToHidl()
95 for (uint32_t i = 0; i < src.num_streams; i++) { in convertToHidl()
96 convertToHidl(static_cast<Camera3Stream*>(src.streams[i]), &dst->streams[i]); in convertToHidl()
111 void convertToHidl(const camera3_notify_msg* src, NotifyMsg* dst) { in convertToHidl() argument
112 dst->type = (MsgType) src->type; in convertToHidl()
113 switch (src->type) { in convertToHidl()
120 src->message.error.error_stream); in convertToHidl()
121 dst->msg.error.frameNumber = src->message.error.frame_number; in convertToHidl()
123 dst->msg.error.errorCode = (ErrorCode) src->message.error.error_code; in convertToHidl()
127 dst->msg.shutter.frameNumber = src->message.shutter.frame_number; in convertToHidl()
128 dst->msg.shutter.timestamp = src->message.shutter.timestamp; in convertToHidl()
132 __FUNCTION__, src->type); in convertToHidl()