Lines Matching refs:main_jpeg
36 void AppCallbackNotifierEncoderCallback(void* main_jpeg,
46 cb->EncoderDoneCb(main_jpeg, thumb_jpeg, type, cookie2, cookie3);
49 if (main_jpeg) {
50 free(main_jpeg);
63 void AppCallbackNotifier::EncoderDoneCb(void* main_jpeg, void* thumb_jpeg, CameraFrame::FrameType type, void* cookie1, void* cookie2)
78 if (!main_jpeg) {
83 main_param = (Encoder_libjpeg::params *) main_jpeg;
901 Encoder_libjpeg::params *main_jpeg = NULL, *tn_jpeg = NULL;
928 main_jpeg = (Encoder_libjpeg::params*)
938 if (main_jpeg) {
939 main_jpeg->src = (uint8_t*) frame->mBuffer;
940 main_jpeg->src_size = frame->mLength;
941 main_jpeg->dst = (uint8_t*) buf;
942 main_jpeg->dst_size = frame->mLength;
943 main_jpeg->quality = encode_quality;
944 main_jpeg->in_width = frame->mAlignment/2; // use stride here
945 main_jpeg->in_height = frame->mHeight;
946 main_jpeg->out_width = frame->mAlignment/2;
947 main_jpeg->out_height = frame->mHeight;
948 main_jpeg->right_crop = rightCrop;
949 main_jpeg->start_offset = frame->mOffset;
950 main_jpeg->format = CameraParameters::PIXEL_FORMAT_YUV422I;
983 sp<Encoder_libjpeg> encoder = new Encoder_libjpeg(main_jpeg,