JunkBox_Lib 1.10.1
|
JPEG TOOL HEADER. More...
Go to the source code of this file.
Data Structures | |
struct | JPEGImage |
struct | my_mem_destination_mgr |
Typedefs | |
typedef my_mem_destination_mgr * | my_mem_dest_ptr |
Functions | |
JPEGImage | read_jpeg_file (const char *fname) |
int | write_jpeg_file (const char *fname, JPEGImage *jp, int qulty) |
int | write_jpeg_mem (unsigned char **buf, unsigned long *len, JPEGImage *jp, int qulty) |
WSGraph | JPEGImage2WSGraph (JPEGImage jp) |
BSGraph | JPEGImage2BSGraph (JPEGImage jp) |
JPEGImage | WSGraph2JPEGImage (WSGraph vp) |
JPEGImage | BSGraph2JPEGImage (BSGraph vp) |
JPEGImage | make_JPEGImage (int xs, int ys, int col) |
void | free_JPEGImage (JPEGImage *jp) |
METHODDEF (void) mem_init_destination(j_compress_ptr cinfo) | |
METHODDEF (boolean) mem_empty_output_buffer(j_compress_ptr cinfo) | |
GLOBAL (void) jpeg_mem_dest(j_compress_ptr cinfo | |
Variables | |
unsigned char ** | buf |
unsigned char unsigned long * | len |
Definition in file jpeg_tool.h.
typedef my_mem_destination_mgr* my_mem_dest_ptr |
Definition at line 71 of file jpeg_tool.h.
JPEGImage BSGraph2JPEGImage(BSGraph vp)
Definition at line 325 of file jpeg_tool.c.
References BSGraph::gp, JPEGImage::gp, JPEGImage::img, JBXL_GRAPH_NODATA_ERROR, make_JPEGImage(), JPEGImage::state, BSGraph::xs, BSGraph::ys, and BSGraph::zs.
void free_JPEGImage | ( | JPEGImage * | jp | ) |
void free_JPEGImage(JPEGImage* jp)
Definition at line 396 of file jpeg_tool.c.
References JPEGImage::col, freeNull, JPEGImage::gp, JPEGImage::img, JPEGImage::xs, and JPEGImage::ys.
GLOBAL | ( | void | ) |
BSGraph JPEGImage2BSGraph(JPEGImage jp)
JPEGデータをチャンネル分解して,BSGraphに格納する.
Definition at line 262 of file jpeg_tool.c.
References JPEGImage::col, BSGraph::gp, JPEGImage::gp, JPEGImage::img, JBXL_GRAPH_NODATA_ERROR, JBXL_NORMAL, make_BSGraph(), BSGraph::state, JPEGImage::xs, and JPEGImage::ys.
WSGraph JPEGImage2WSGraph(JPEGImage jp)
JPEGデータをチャンネル分解して,WSGraphに格納する.
Definition at line 228 of file jpeg_tool.c.
References JPEGImage::col, WSGraph::gp, JPEGImage::gp, JPEGImage::img, JBXL_GRAPH_NODATA_ERROR, JBXL_NORMAL, make_WSGraph(), WSGraph::state, JPEGImage::xs, and JPEGImage::ys.
JPEGImage make_JPEGImage | ( | int | xs, |
int | ys, | ||
int | col ) |
JPEGImage make_JPEGImage(int xs, int ys, int col)
Definition at line 356 of file jpeg_tool.c.
References JPEGImage::col, freeNull, JPEGImage::gp, JPEGImage::img, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JPEGImage::state, JPEGImage::xs, and JPEGImage::ys.
Referenced by BSGraph2JPEGImage(), read_jpeg_file(), and WSGraph2JPEGImage().
METHODDEF | ( | boolean | ) |
Definition at line 421 of file jpeg_tool.c.
References my_mem_destination_mgr::buffer, my_mem_destination_mgr::bufsize, FALSE, my_mem_destination_mgr::newbuffer, my_mem_destination_mgr::pub, and TRUE.
METHODDEF | ( | void | ) |
Definition at line 415 of file jpeg_tool.c.
References UNUSED.
JPEGImage read_jpeg_file | ( | const char * | fname | ) |
JPEGImage read_jpeg_file(const char* fname)
JPEGファイルを読み込んで,JPEGImage構造体へデータを格納する.
fname | 読み込むファイル名 |
JBXL_GRAPH_OPFILE_ERROR | state: ファイルオープンエラー |
JBXL_GRAPH_HEADER_ERROR | state: 不正ファイル(JPEGファイルでない?) |
JBXL_GRAPH_MEMORY_ERROR | state: メモリエラー |
Definition at line 31 of file jpeg_tool.c.
References JPEGImage::gp, JPEGImage::img, JBXL_GRAPH_HEADER_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_GRAPH_OPFILE_ERROR, make_JPEGImage(), JPEGImage::state, and TRUE.
int write_jpeg_file | ( | const char * | fname, |
JPEGImage * | jp, | ||
int | qulty ) |
int write_jpeg_file(const char* fname, JPEGImage* jp, int qulty)
jp の画像データを fnameに書き出す.
fname | ファイル名 |
jp | 保存する JPEGデータ |
qulty | 保存のクオリティ 0-100 100が最高画質 |
0 | 正常終了 |
JBXL_GRAPH_OPFILE_ERROR | ファイルオープンエラー |
JBXL_GRAPH_HEADER_ERROR | 不正ファイル(JPEGファイルでない?) |
JBXL_GRAPH_MEMORY_ERROR | メモリエラー |
JBXL_GRAPH_NODATA_ERROR | jp にデータが無い |
JBXL_GRAPH_IVDARH_ERROR | ファイル名が NULL |
JBXL_GRAPH_IVDCOLOR_ERROR | サポート外のチャンネル数(現在の所チャンネル数は 1か 3のみをサポート) |
Definition at line 108 of file jpeg_tool.c.
References JPEGImage::col, JPEGImage::gp, JPEGImage::img, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_IVDCOLOR_ERROR, JBXL_GRAPH_NODATA_ERROR, JBXL_GRAPH_OPFILE_ERROR, TRUE, JPEGImage::xs, and JPEGImage::ys.
int write_jpeg_mem | ( | unsigned char ** | buf, |
unsigned long * | len, | ||
JPEGImage * | jp, | ||
int | qulty ) |
int write_jpeg_mem(unsigned char** buf, unsigned long* len, JPEGImage* jp, int qulty)
jp の画像データを *bufに書き出す.*bufは要 free
[out] | buf | 画像データが格納される.要 free |
[out] | len | buf の長さ(Byte)が格納される. |
jp | 保存する JPEGデータ | |
qulty | 保存のクオリティ 0〜100 100が最高画質 |
JBXL_GRAPH_OPFILE_ERROR | ファイルオープンエラー |
JBXL_GRAPH_HEADER_ERROR | 不正ファイル(JPEGファイルでない?) |
JBXL_GRAPH_MEMORY_ERROR | メモリエラー |
JBXL_GRAPH_NODATA_ERROR | jp にデータが無い |
JBXL_GRAPH_IVDARG_ERROR | buf が NULL |
JBXL_GRAPH_IVDCOLOR_ERROR | サポート外のチャンネル数(現在の所チャンネル数は 1か 3のみをサポート) |
Definition at line 175 of file jpeg_tool.c.
References buf, JPEGImage::col, freeNull, JPEGImage::gp, JPEGImage::img, JBXL_GRAPH_ERROR, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_IVDCOLOR_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_GRAPH_NODATA_ERROR, len, TRUE, JPEGImage::xs, and JPEGImage::ys.
JPEGImage WSGraph2JPEGImage(WSGraph vp)
Definition at line 294 of file jpeg_tool.c.
References WSGraph::gp, JPEGImage::gp, JPEGImage::img, JBXL_GRAPH_NODATA_ERROR, make_JPEGImage(), JPEGImage::state, WSGraph::xs, WSGraph::ys, and WSGraph::zs.
unsigned char** buf |
Definition at line 96 of file jpeg_tool.h.
Referenced by _DER_parse_children(), _json_to_Buffer(), _replace_all_node_byid_rcsv(), _replace_all_node_contents_rcsv(), _xml_to_Buffer(), add_form_urlenc(), add_indent_Buffer(), asn1_print_tag_value(), awk(), awk_Buffer(), awk_Buffer_dim(), awk_Buffer_tList(), bin2int_DER(), buffer_key_tList(), buffer_key_value_tList(), cat_b2Buffer(), cat_Buffer(), cawk(), cawk_Buffer(), cawk_Buffer_dim(), cawk_Buffer_tList(), check_auth(), check_server_spki(), chomp(), command_KEYEX(), command_USERID(), comp_hostport(), copy_b2Buffer(), copy_Buffer(), count_lines(), cut_str(), decode_base64(), decode_base64_filename(), decode_EVPAPI_Buffer(), decode_mime_rfc2047(), decode_mime_rfc2231(), decode_mime_string(), decode_quoted_printable(), decode_runlength(), decode_urlenc(), decomp_hostport(), decompline_Buffer_dim(), del_Buffer(), del_Buffer_dim(), DER_parse(), double_bs(), dump_Buffer(), dup_Buffer(), dup_str(), encode_base64(), encode_base64_Buffer(), encode_base64_filename(), encode_base64_filename_Buffer(), encode_EVPAPI_Buffer(), encode_mime_string(), encode_quoted_printable(), encode_runlength(), encode_urlenc(), encrypt_Base64(), encrypt_Buffer(), erase_bBuffer(), expand_Buffer(), fgets_mstream_Buffer(), file_from_to(), fp_from_to(), free_Buffer(), get_Buffer_dim_tList(), get_Buffer_dim_tList_value(), get_Buffer_from_json(), get_Buffer_join_tList(), get_Buffer_ringBuffer(), get_comment(), get_crypt_Buffer(), get_crypt_message(), get_crypt_sBuffer(), get_DER_size(), get_dir_files(), get_double_param_tList(), get_float_param_tList(), get_gmt_timestamp(), get_http_header_date(), get_http_version_num(), get_int_param_tList(), get_jp2k_format(), get_line(), get_line_Buffer(), get_local_timestamp(), get_mime_boundary(), get_mime_filename(), get_plain_Buffer(), get_plain_message(), get_plain_sBuffer(), get_protocol_header_list(), get_protocol_header_list_file(), get_protocol_header_list_seq(), get_runlength_byte(), get_seq_data(), get_seq_data_Buffer(), get_sip_via_address(), get_sockaddr_in_Buffer(), get_str_join_tList(), get_str_param_tList(), get_tiff_ifd(), get_tList_line_Buffer(), get_tList_seq_data_Buffer(), get_xml_double_attr(), get_xml_double_attr_bystr(), get_xml_int_attr(), get_xml_int_attr_bystr(), GLOBAL(), gz_decode_gzfp(), gz_encode_file(), gz_encode_gzfp(), init_Buffer(), insert_sip_via(), isText_Buffer(), join_Buffer_dim(), json_append_array_key(), json_append_obj_key(), json_inverse_parse(), json_inverse_parse_opt(), json_parse_file(), json_parse_seq(), json_set_str_val(), llsd_bin_get_bin(), llsd_bin_get_block_data(), llsd_bin_get_length(), llsd_bin_get_skin_weight(), llsd_bin_get_str(), llsd_bin_get_uuid(), llsd_xml_contain_key(), llsd_xml_get_content_bin(), llsd_xml_get_content_int(), llsd_xml_get_content_real(), llsd_xml_get_content_str(), make_Buffer(), make_Buffer_bychar(), make_Buffer_randomstr(), make_form_urlenc(), make_xml_attr_bydouble(), make_xml_attr_byfloat(), make_xml_attr_byint(), make_xml_attr_bystr(), new_Buffer(), node2DER(), pack_Buffer(), pop_char_ringStack(), print_json(), print_json_opt(), print_xml(), proc_tiff_ifd(), push_char_ringStack(), put_Buffer_ringBuffer(), read_Buffer2_format_fp(), read_Buffer_data(), read_Buffer_file(), read_Buffer_format_fp(), read_file(), read_lines_Buffer(), read_ras_data(), read_tagged_Buffer(), read_tiff_file(), rebuild_http_Buffer(), recalc_strlen_Buffer(), recv_http_Buffer(), recv_http_chunked(), recv_http_chunked_remain(), recv_http_closed(), recv_http_content(), recv_http_file(), recv_mesg_until_end(), replace_char(), replace_item_tList_node(), replace_sBuffer_bystr(), replace_sBuffer_file(), replace_sip_contact(), replace_sip_via(), replace_str(), replace_value_tList_node(), restore_protocol_contents(), restore_protocol_header(), restore_sdp_body(), return_exist_node(), rewrite_Buffer_bychar(), rewrite_sBuffer_bystr(), save_Buffer2_format_fp(), save_Buffer_file(), save_Buffer_format_fp(), save_http_xml(), save_tagged_Buffer(), search_protocol_header(), search_protocol_header_item(), search_protocol_header_partvalue(), search_protocol_header_value(), send_algor_recv_spki(), send_command_recv_ans(), send_http_Buffer(), send_http_file(), send_http_header(), send_http_res_file(), set_Buffer(), set_DER_node(), set_http_host_header(), set_item_tList_node(), set_value_tList_node(), simple_web_proxy(), ssl_get_cert_info(), ssl_recv_lines_Buffer(), ssl_send_mesgln(), ssl_send_sBufferln(), ssl_tcp_recv_Buffer_tosize(), ssl_tcp_recv_Buffer_tosize_wait(), ssl_tcp_recv_lines_Buffer(), ssl_tcp_send_mesgln(), ssl_tcp_send_sBufferln(), strstrcase(), tcp_recv_Buffer_tosize(), tcp_recv_Buffer_tosize_wait(), tcp_recv_crypt_Buffer(), tcp_recv_lines_Buffer(), tcp_relay(), tcp_send_crypt_Buffer(), tcp_send_crypt_mesg(), tcp_send_crypt_sBuffer(), tcp_send_mesgln(), tcp_send_sBufferln(), udp_recv_crypt_Buffer(), udp_recv_crypt_Buffer_sockaddr_in(), udp_send_crypt_Buffer(), udp_send_crypt_Buffer_sockaddr_in(), write_file(), write_jpeg_mem(), write_ras_file_obit(), www2browser_relay(), xml_attr_to_Buffer(), xml_close_node_Buffer(), xml_inverse_parse(), xml_open_node_Buffer(), xml_parse_file(), and xml_rpc_request_pack().
unsigned char unsigned long* len |
Definition at line 96 of file jpeg_tool.h.
Referenced by _DER_parse_children(), _get_hostname(), _get_localip_bydest(), _json_parse_term(), _next_strncasecmp_horizon_tTree(), _next_strncasecmp_vertical_tTree(), _next_strncmp_horizon_tTree(), _next_strncmp_vertical_tTree(), add_indent_Buffer(), add_xml_content_area(), buffer_key_value_tList(), bvh_parse_motion(), cat_b2Buffer(), check_salt(), chomp(), chomp_Buffer(), copy_b2Buffer(), cut_file_extension(), cut_str(), decode_base64(), decode_base64_filename(), decode_mime_rfc2047(), decode_mime_string(), decode_quoted_printable(), decode_runlength(), decode_urlenc(), del_file_extension(), del_file_name(), double_bs(), dup_str(), encode_base64(), encode_base64_Buffer_bin(), encode_base64_filename(), encode_EVPAPI_Buffer(), encode_quoted_printable(), encode_runlength(), encode_urlenc(), erase_bBuffer(), ex_strncasecmp(), ex_strncaservscmp(), ex_strncmp(), ex_strnrvscmp(), expand_Buffer(), extract_tTar(), fdump(), fprint_message(), get_DER_size(), get_file_extension(), get_file_name(), get_file_path(), get_hostname_bynum(), get_hostname_bynum(), get_hostname_bystr(), get_ipaddr_byname(), get_localip_bydest(), get_mstream(), get_myipaddr(), get_myipaddr_num(), get_myipaddr_num(), get_mynetaddr(), get_mynetaddr_num(), get_runlength_byte(), get_tiff_ascii_field(), get_tiff_double_field(), get_tiff_uint_field(), GLOBAL(), hexstr2i(), ins_b2Buffer(), is_number(), is_same_network_num(), is_same_sockaddr(), is_same_sockaddr(), json_append_array_str_val(), json_append_obj_str_val(), json_array_parse(), json_parse_prop(), llsd_bin_get_skin_weight(), make_sockaddr_bynum(), node2DER(), numbering_name(), pack_char_len(), print_16x(), print_errfile(), print_logfile(), print_message(), put_mstream(), read_png_file(), recalc_strlen_Buffer(), recv_http_Buffer(), recv_http_content(), recv_http_file(), recv_http_header(), replace_all_tTree_node(), replace_char(), replace_str(), search_protocol_header_value(), set_Buffer(), set_DER_node(), simple_web_proxy(), strncasecmp_back_tList(), strncasecmp_tList(), strncasecmp_tTree(), strncaservscmp_back_tList(), strncaservscmp_tList(), strncmp_back_tList(), strncmp_tList(), strncmp_tTree(), strnrvscmp_back_tList(), strnrvscmp_tList(), strstr_back_tList(), strstr_tList(), strstrcase_back_tList(), strstrcase_tList(), to_address_num(), write_jpeg_mem(), write_png_file(), and www2browser_relay().