Lines Matching refs:stub
26 extern "C" void JpegStub_init(JpegStub* stub, int* strides) { in JpegStub_init() argument
27 stub->mInternalEncoder = (void*) new Yuv420SpToJpegEncoder(strides); in JpegStub_init()
28 stub->mInternalStream = (void*)new SkDynamicMemoryWStream(); in JpegStub_init()
31 extern "C" void JpegStub_cleanup(JpegStub* stub) { in JpegStub_cleanup() argument
32 delete((Yuv420SpToJpegEncoder*)stub->mInternalEncoder); in JpegStub_cleanup()
33 delete((SkDynamicMemoryWStream*)stub->mInternalStream); in JpegStub_cleanup()
36 extern "C" int JpegStub_compress(JpegStub* stub, const void* image, in JpegStub_compress() argument
45 (Yuv420SpToJpegEncoder*)stub->mInternalEncoder; in JpegStub_compress()
47 (SkDynamicMemoryWStream*)stub->mInternalStream; in JpegStub_compress()
59 extern "C" void JpegStub_getCompressedImage(JpegStub* stub, void* buff) { in JpegStub_getCompressedImage() argument
61 (SkDynamicMemoryWStream*)stub->mInternalStream; in JpegStub_getCompressedImage()
65 extern "C" size_t JpegStub_getCompressedSize(JpegStub* stub) { in JpegStub_getCompressedSize() argument
67 (SkDynamicMemoryWStream*)stub->mInternalStream; in JpegStub_getCompressedSize()