Lines Matching defs:src

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