Lines Matching refs:dst

34 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()
73 dst->format = (int) src.format; in convertFromHidl()
74 dst->data_space = (android_dataspace_t) src.dataSpace; in convertFromHidl()
75 dst->rotation = (int) src.rotation; in convertFromHidl()
76 dst->usage = (uint32_t) src.usage; in convertFromHidl()
78 dst->max_buffers = 0; in convertFromHidl()
79 dst->priv = 0; in convertFromHidl()
83 void convertToHidl(const Camera3Stream* src, HalStream* dst) { in convertToHidl() argument
84 dst->id = src->mId; in convertToHidl()
85 dst->overrideFormat = (PixelFormat) src->format; in convertToHidl()
86 dst->maxBuffers = src->max_buffers; in convertToHidl()
88 dst->consumerUsage = (BufferUsageFlags)0; in convertToHidl()
89 dst->producerUsage = (BufferUsageFlags)src->usage; in convertToHidl()
91 dst->producerUsage = (BufferUsageFlags)0; in convertToHidl()
92 dst->consumerUsage = (BufferUsageFlags)src->usage; in convertToHidl()
101 void convertToHidl(const camera3_stream_configuration_t& src, HalStreamConfiguration* dst) { in convertToHidl() argument
102 dst->streams.resize(src.num_streams); in convertToHidl()
104 convertToHidl(static_cast<Camera3Stream*>(src.streams[i]), &dst->streams[i]); in convertToHidl()
111 camera3_stream_buffer_t* dst) { in convertFromHidl() argument
112 dst->stream = stream; in convertFromHidl()
113 dst->buffer = bufPtr; in convertFromHidl()
114 dst->status = (int) status; in convertFromHidl()
115 dst->acquire_fence = acquireFence; in convertFromHidl()
116 dst->release_fence = -1; // meant for HAL to fill in in convertFromHidl()
119 void convertToHidl(const camera3_notify_msg* src, NotifyMsg* dst) { in convertToHidl() argument
120 dst->type = (MsgType) src->type; in convertToHidl()
129 dst->msg.error.frameNumber = src->message.error.frame_number; in convertToHidl()
130 dst->msg.error.errorStreamId = (stream != nullptr) ? stream->mId : -1; in convertToHidl()
131 dst->msg.error.errorCode = (ErrorCode) src->message.error.error_code; in convertToHidl()
135 dst->msg.shutter.frameNumber = src->message.shutter.frame_number; in convertToHidl()
136 dst->msg.shutter.timestamp = src->message.shutter.timestamp; in convertToHidl()