jpeg_start_decompress (j_decompress_ptr cinfo)分析
来源:互联网 发布:泰兴减速机js txjsj 编辑:程序博客网 时间:2024/06/04 19:10
GLOBAL(boolean)jpeg_start_decompress (j_decompress_ptr cinfo){ if (cinfo->global_state == DSTATE_READY)
{ /* First call: initialize master control, select active modules ;初始化参数*/ jinit_master_decompress(cinfo); if (cinfo->buffered_image)
{ /* No more work here; expecting jpeg_start_output next */ cinfo->global_state = DSTATE_BUFIMAGE; return TRUE; } cinfo->global_state = DSTATE_PRELOAD; } if (cinfo->global_state == DSTATE_PRELOAD) { /* If file has multiple scans, absorb them all into the coef buffer */ if (cinfo->inputctl->has_multiple_scans) {#ifdef D_MULTISCAN_FILES_SUPPORTED for (;;) {int retcode;/* Call progress monitor hook if present */if (cinfo->progress != NULL) (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);/* Absorb some more input */retcode = (*cinfo->inputctl->consume_input) (cinfo);if (retcode == JPEG_SUSPENDED) return FALSE;if (retcode == JPEG_REACHED_EOI) break;/* Advance progress counter if appropriate */if (cinfo->progress != NULL && (retcode == JPEG_ROW_COMPLETED || retcode == JPEG_REACHED_SOS)) { if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { /* jdmaster underestimated number of scans; ratchet up one scan */ cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; }} }#else ERREXIT(cinfo, JERR_NOT_COMPILED);#endif /* D_MULTISCAN_FILES_SUPPORTED */ } cinfo->output_scan_number = cinfo->input_scan_number; } else if (cinfo->global_state != DSTATE_PRESCAN) ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); /* Perform any dummy output passes, and set up for the final pass */ return output_pass_setup(cinfo);}
0 0
- jpeg_start_decompress (j_decompress_ptr cinfo)分析
- gcc -D:gcc的预定义功能 [gcc -o cinfo -DDEBU cinfo.c / gcc -o cinfo -D DEBU cinfo.c]
- Run-Time Check Failure #2 - Stack around the variable 'cinfo' was corrupted.问题
- 【有用】ITM : cinfo 显示进程报错 1355 :lie node not unexpected
- 分析
- 分析
- 分析
- 分析
- 分析
- 分析
- 分析
- 分析
- 分析
- 大家帮忙分析分析!
- FFMpeg分析详细分析
- FFMpeg分析详细分析
- core 分析的分析
- 写给自己,分析分析
- 数塔--免费馅饼
- 哪种PDF转换器简单好用
- test
- Stack应用====表达式计算(中缀变后缀)
- x230黑苹果的一点经验
- jpeg_start_decompress (j_decompress_ptr cinfo)分析
- objc NSDateformatter使用小插曲
- Android属性allowBackup安全风险浅析
- java获取properties文件
- 数据库 - 数据查询
- 2014上海邀请赛D Battle ships(最大二分匹配)
- 使用navigator.userAgent来判断浏览器类型
- 简述maven,make,ant,jenkins,jenkins plugin, maven plugin之间的关系
- 归并排序代码实现