Lines Matching refs:input

63     libjpeg_destination_mgr(uint8_t* input, int size);
91 libjpeg_destination_mgr::libjpeg_destination_mgr(uint8_t* input, int size) { in libjpeg_destination_mgr() argument
96 this->buf = input; in libjpeg_destination_mgr()
354 size_t Encoder_libjpeg::encode(params* input) { in encode() argument
367 if (!input) { in encode()
371 out_width = input->out_width; in encode()
372 in_width = input->in_width; in encode()
373 out_height = input->out_height; in encode()
374 in_height = input->in_height; in encode()
375 right_crop = input->right_crop; in encode()
376 start_offset = input->start_offset; in encode()
377 src = input->src; in encode()
378 input->jpeg_size = 0; in encode()
380 libjpeg_destination_mgr dest_mgr(input->dst, input->dst_size); in encode()
384 (src == NULL) || (input->dst == NULL) || (input->quality < 1) || (input->src_size < 1) || in encode()
385 (input->dst_size < 1) || (input->format == NULL)) { in encode()
389 if (strcmp(input->format, CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { in encode()
392 resize_src = (uint8_t*) malloc(input->dst_size); in encode()
393 resize_nv12(input, resize_src); in encode()
397 CAMHAL_LOGEB("Encoder: resizing is not supported for this format: %s", input->format); in encode()
399 } else if (strcmp(input->format, CameraParameters::PIXEL_FORMAT_YUV422I)) { in encode()
401 CAMHAL_LOGEB("Encoder: format not supported: %s", input->format); in encode()
415 out_width, out_height, input->dst, in encode()
416 input->dst_size, src); in encode()
426 jpeg_set_quality(&cinfo, input->quality, TRUE); in encode()
439 if (strcmp(input->format, CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { in encode()
450 if (strcmp(input->format, CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { in encode()
466 input->jpeg_size = dest_mgr.jpegsize; in encode()