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()
422 size_t Encoder_libjpeg::encode(params* input) { in encode() argument
435 if (!input) { in encode()
439 out_width = input->out_width; in encode()
440 in_width = input->in_width; in encode()
441 out_height = input->out_height; in encode()
442 in_height = input->in_height; in encode()
443 right_crop = input->right_crop; in encode()
444 start_offset = input->start_offset; in encode()
445 src = input->src; in encode()
446 input->jpeg_size = 0; in encode()
448 libjpeg_destination_mgr dest_mgr(input->dst, input->dst_size); in encode()
452 (src == NULL) || (input->dst == NULL) || (input->quality < 1) || (input->src_size < 1) || in encode()
453 (input->dst_size < 1) || (input->format == NULL)) { in encode()
457 if (strcmp(input->format, android::CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { in encode()
460 resize_src = (uint8_t*) malloc(input->dst_size); in encode()
461 resize_nv12(input, resize_src); in encode()
464 } else if (strcmp(input->format, android::CameraParameters::PIXEL_FORMAT_YUV422I) && in encode()
465 strcmp(input->format, TICameraParameters::PIXEL_FORMAT_YUV422I_UYVY)) { in encode()
467 CAMHAL_LOGEB("Encoder: format not supported: %s", input->format); in encode()
470 CAMHAL_LOGEB("Encoder: resizing is not supported for this format: %s", input->format); in encode()
485 out_width, out_height, input->dst, in encode()
486 input->dst_size, src, input->format); in encode()
496 jpeg_set_quality(&cinfo, input->quality, TRUE); in encode()
509 if (strcmp(input->format, android::CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { in encode()
511 } else if (strcmp(input->format, TICameraParameters::PIXEL_FORMAT_YUV422I_UYVY) == 0) { in encode()
513 } else if (strcmp(input->format, android::CameraParameters::PIXEL_FORMAT_YUV422I) == 0) { in encode()
522 if (strcmp(input->format, android::CameraParameters::PIXEL_FORMAT_YUV420SP) == 0) { in encode()
538 input->jpeg_size = dest_mgr.jpegsize; in encode()