Lines Matching refs:mInfo
24 JpegWriter::JpegWriter() : mInfo(), in JpegWriter()
56 SetupErrMgr(reinterpret_cast<j_common_ptr>(&mInfo), &mErrorManager); in setup()
64 jpeg_create_compress(&mInfo); in setup()
67 int32_t flags = MakeDst(&mInfo, env, out); in setup()
73 mInfo.image_width = width; in setup()
74 mInfo.image_height = height; in setup()
78 mInfo.input_components = 1; in setup()
79 mInfo.in_color_space = JCS_GRAYSCALE; in setup()
83 mInfo.input_components = 3; in setup()
84 mInfo.in_color_space = JCS_RGB; in setup()
91 jpeg_set_defaults(&mInfo); in setup()
92 mInfo.density_unit = DEFAULT_DENSITY_UNIT; // JFIF code for pixel size units: in setup()
94 mInfo.X_density = DEFAULT_X_DENSITY; // Horizontal pixel density in setup()
95 mInfo.Y_density = DEFAULT_Y_DENSITY; // Vertical pixel density in setup()
98 jpeg_set_quality(&mInfo, quality, TRUE); in setup()
105 mScanlineBuf = (JSAMPLE *) (mInfo.mem->alloc_small)( in setup()
106 reinterpret_cast<j_common_ptr>(&mInfo), JPOOL_PERMANENT, in setup()
111 jpeg_start_compress(&mInfo, TRUE); in setup()
133 while (mInfo.next_scanline < mInfo.image_height) { in write()
153 if (jpeg_write_scanlines(&mInfo, row_pointer, 1) != 1) { in write()
160 jpeg_finish_compress(&mInfo); in write()
203 UpdateDstEnv(&mInfo, env); in updateEnv()
212 CleanDst(&mInfo); in reset()
214 jpeg_destroy_compress(&mInfo); in reset()