Lines Matching refs:job

58     auto job = std::move(pending_yuv_jobs_.front());  in ~JpegCompressor()  local
59 job->output->stream_buffer.status = BufferStatus::kError; in ~JpegCompressor()
64 status_t JpegCompressor::QueueYUV420(std::unique_ptr<JpegYUV420Job> job) { in QueueYUV420() argument
67 if ((job->input.get() == nullptr) || (job->output.get() == nullptr) || in QueueYUV420()
68 (job->output->format != PixelFormat::BLOB) || in QueueYUV420()
69 (job->output->dataSpace != HAL_DATASPACE_V0_JFIF)) { in QueueYUV420()
76 pending_yuv_jobs_.push(std::move(job)); in QueueYUV420()
107 void JpegCompressor::CompressYUV420(std::unique_ptr<JpegYUV420Job> job) { in CompressYUV420() argument
112 if ((job->exif_utils.get() != nullptr) && in CompressYUV420()
113 (job->result_metadata.get() != nullptr)) { in CompressYUV420()
114 if (job->exif_utils->Initialize()) { in CompressYUV420()
120 auto ret = job->result_metadata->Get(ANDROID_JPEG_THUMBNAIL_SIZE, &entry); in CompressYUV420()
137 job->input->yuv_planes.img_y, job->input->yuv_planes.y_stride, in CompressYUV420()
138 job->input->yuv_planes.img_cb, job->input->yuv_planes.cbcr_stride, in CompressYUV420()
139 job->input->yuv_planes.img_cr, job->input->yuv_planes.cbcr_stride, in CompressYUV420()
140 job->input->width, job->input->height, thumb_planes.img_y, in CompressYUV420()
152 if (job->exif_utils->SetFromMetadata( in CompressYUV420()
153 *job->result_metadata, job->input->width, job->input->height)) { in CompressYUV420()
165 job->output->stream_buffer.status = BufferStatus::kOk; in CompressYUV420()
172 job->exif_utils->SetMake(exif_make_); in CompressYUV420()
173 job->exif_utils->SetModel(exif_model_); in CompressYUV420()
174 if (job->exif_utils->GenerateApp1(thumbnail_jpeg_buffer.empty() in CompressYUV420()
178 app1_buffer = job->exif_utils->GetApp1Buffer(); in CompressYUV420()
179 app1_buffer_size = job->exif_utils->GetApp1Length(); in CompressYUV420()
192 {.output_buffer = job->output->plane.img.img, in CompressYUV420()
193 .output_buffer_size = job->output->plane.img.buffer_size, in CompressYUV420()
194 .yuv_planes = job->input->yuv_planes, in CompressYUV420()
195 .width = job->input->width, in CompressYUV420()
196 .height = job->input->height, in CompressYUV420()
200 job->output->stream_buffer.status = BufferStatus::kOk; in CompressYUV420()
202 job->output->stream_buffer.status = BufferStatus::kError; in CompressYUV420()
207 job->output->plane.img.buffer_size - sizeof(struct camera3_jpeg_blob); in CompressYUV420()
210 reinterpret_cast<struct camera3_jpeg_blob*>(job->output->plane.img.img + in CompressYUV420()