Microchip® Advanced Software Framework

jcmarker.c File Reference
#include "jinclude.h"
#include "jpeglib.h"

Data Structures

struct  my_marker_writer
 

Macros

#define JPEG_INTERNALS
 

Typedefs

typedef my_marker_writermy_marker_ptr
 

Enumerations

enum  JPEG_MARKER {
  M_SOF0 = 0xc0,
  M_SOF1 = 0xc1,
  M_SOF2 = 0xc2,
  M_SOF3 = 0xc3,
  M_SOF5 = 0xc5,
  M_SOF6 = 0xc6,
  M_SOF7 = 0xc7,
  M_JPG = 0xc8,
  M_SOF9 = 0xc9,
  M_SOF10 = 0xca,
  M_SOF11 = 0xcb,
  M_SOF13 = 0xcd,
  M_SOF14 = 0xce,
  M_SOF15 = 0xcf,
  M_DHT = 0xc4,
  M_DAC = 0xcc,
  M_RST0 = 0xd0,
  M_RST1 = 0xd1,
  M_RST2 = 0xd2,
  M_RST3 = 0xd3,
  M_RST4 = 0xd4,
  M_RST5 = 0xd5,
  M_RST6 = 0xd6,
  M_RST7 = 0xd7,
  M_SOI = 0xd8,
  M_EOI = 0xd9,
  M_SOS = 0xda,
  M_DQT = 0xdb,
  M_DNL = 0xdc,
  M_DRI = 0xdd,
  M_DHP = 0xde,
  M_EXP = 0xdf,
  M_APP0 = 0xe0,
  M_APP1 = 0xe1,
  M_APP2 = 0xe2,
  M_APP3 = 0xe3,
  M_APP4 = 0xe4,
  M_APP5 = 0xe5,
  M_APP6 = 0xe6,
  M_APP7 = 0xe7,
  M_APP8 = 0xe8,
  M_APP9 = 0xe9,
  M_APP10 = 0xea,
  M_APP11 = 0xeb,
  M_APP12 = 0xec,
  M_APP13 = 0xed,
  M_APP14 = 0xee,
  M_APP15 = 0xef,
  M_JPG0 = 0xf0,
  M_JPG13 = 0xfd,
  M_COM = 0xfe,
  M_TEM = 0x01,
  M_ERROR = 0x100,
  M_SOF0 = 0xc0,
  M_SOF1 = 0xc1,
  M_SOF2 = 0xc2,
  M_SOF3 = 0xc3,
  M_SOF5 = 0xc5,
  M_SOF6 = 0xc6,
  M_SOF7 = 0xc7,
  M_JPG = 0xc8,
  M_SOF9 = 0xc9,
  M_SOF10 = 0xca,
  M_SOF11 = 0xcb,
  M_SOF13 = 0xcd,
  M_SOF14 = 0xce,
  M_SOF15 = 0xcf,
  M_DHT = 0xc4,
  M_DAC = 0xcc,
  M_RST0 = 0xd0,
  M_RST1 = 0xd1,
  M_RST2 = 0xd2,
  M_RST3 = 0xd3,
  M_RST4 = 0xd4,
  M_RST5 = 0xd5,
  M_RST6 = 0xd6,
  M_RST7 = 0xd7,
  M_SOI = 0xd8,
  M_EOI = 0xd9,
  M_SOS = 0xda,
  M_DQT = 0xdb,
  M_DNL = 0xdc,
  M_DRI = 0xdd,
  M_DHP = 0xde,
  M_EXP = 0xdf,
  M_APP0 = 0xe0,
  M_APP1 = 0xe1,
  M_APP2 = 0xe2,
  M_APP3 = 0xe3,
  M_APP4 = 0xe4,
  M_APP5 = 0xe5,
  M_APP6 = 0xe6,
  M_APP7 = 0xe7,
  M_APP8 = 0xe8,
  M_APP9 = 0xe9,
  M_APP10 = 0xea,
  M_APP11 = 0xeb,
  M_APP12 = 0xec,
  M_APP13 = 0xed,
  M_APP14 = 0xee,
  M_APP15 = 0xef,
  M_JPG0 = 0xf0,
  M_JPG13 = 0xfd,
  M_COM = 0xfe,
  M_TEM = 0x01,
  M_ERROR = 0x100
}
 

Functions

 emit_byte (cinfo,(int) mark)
 
 emit_byte (cinfo, value &0xFF)
 
 ERREXIT1 (cinfo, JERR_NO_QUANT_TABLE, index)
 
 ERREXIT1 (cinfo, JERR_NO_HUFF_TABLE, index)
 
 for (i=0;i< DCTSIZE2;i++)
 
 if (--dest->free_in_buffer==0)
 
 if (!qtbl->sent_table)
 
 if (is_ac)
 
 if (!htbl->sent_table)
 

Variables

 else
 
int i
 
int length
 
*dest next_output_byte = (JOCTET) val
 
int prec
 

#define JPEG_INTERNALS

Enumerator
M_SOF0 
M_SOF1 
M_SOF2 
M_SOF3 
M_SOF5 
M_SOF6 
M_SOF7 
M_JPG 
M_SOF9 
M_SOF10 
M_SOF11 
M_SOF13 
M_SOF14 
M_SOF15 
M_DHT 
M_DAC 
M_RST0 
M_RST1 
M_RST2 
M_RST3 
M_RST4 
M_RST5 
M_RST6 
M_RST7 
M_SOI 
M_EOI 
M_SOS 
M_DQT 
M_DNL 
M_DRI 
M_DHP 
M_EXP 
M_APP0 
M_APP1 
M_APP2 
M_APP3 
M_APP4 
M_APP5 
M_APP6 
M_APP7 
M_APP8 
M_APP9 
M_APP10 
M_APP11 
M_APP12 
M_APP13 
M_APP14 
M_APP15 
M_JPG0 
M_JPG13 
M_COM 
M_TEM 
M_ERROR 
M_SOF0 
M_SOF1 
M_SOF2 
M_SOF3 
M_SOF5 
M_SOF6 
M_SOF7 
M_JPG 
M_SOF9 
M_SOF10 
M_SOF11 
M_SOF13 
M_SOF14 
M_SOF15 
M_DHT 
M_DAC 
M_RST0 
M_RST1 
M_RST2 
M_RST3 
M_RST4 
M_RST5 
M_RST6 
M_RST7 
M_SOI 
M_EOI 
M_SOS 
M_DQT 
M_DNL 
M_DRI 
M_DHP 
M_EXP 
M_APP0 
M_APP1 
M_APP2 
M_APP3 
M_APP4 
M_APP5 
M_APP6 
M_APP7 
M_APP8 
M_APP9 
M_APP10 
M_APP11 
M_APP12 
M_APP13 
M_APP14 
M_APP15 
M_JPG0 
M_JPG13 
M_COM 
M_TEM 
M_ERROR 

emit_byte ( cinfo  ,
(int)  mark 
)
emit_byte ( cinfo  ,
value &  0xFF 
)
ERREXIT1 ( cinfo  ,
JERR_NO_QUANT_TABLE  ,
index   
)
ERREXIT1 ( cinfo  ,
JERR_NO_HUFF_TABLE  ,
index   
)
if ( --dest->  free_in_buffer = = 0)

References cinfo, and ERREXIT.

if ( !qtbl->  sent_table)
if ( is_ac  )

References index.

else
Initial value:
{
htbl = cinfo->dc_huff_tbl_ptrs[index]
register bit_buf_type register int d_derived_tbl * htbl
Definition: jdhuff.h:200
int index
Definition: jdmarker.c:425
(* cinfo)(cinfo,(long) length)
Definition: jdmarker.c:730
int i
Initial value:
{
register boxptr boxp
Definition: jquant2.c:258

Referenced by accelerometer_action_x(), accelerometer_action_y(), Adam7_deinterlace(), Adam7_getpassvalues(), ai_usb_ms_audio_ctrl_ffw(), ai_usb_ms_audio_ctrl_frw(), ai_usb_ms_audio_ctrl_pause(), ai_usb_ms_audio_ctrl_resume(), ai_usb_ms_audio_ctrl_stop(), ai_usb_ms_audio_nav_file_info_image(), ai_usb_ms_audio_nav_mov(), ai_usb_ms_init(), ai_usb_ms_nav_file_info_album(), ai_usb_ms_nav_file_info_artist(), ai_usb_ms_nav_file_info_duration(), ai_usb_ms_nav_file_info_genre(), ai_usb_ms_nav_file_info_image(), ai_usb_ms_nav_file_info_title(), ai_usb_ms_nav_file_info_track(), ai_usb_ms_nav_file_info_version(), ai_usb_ms_nav_file_info_year(), ai_usb_ms_new_connection(), aic23b_dac_output(), ak8975_selftest(), alloc_barray(), alloc_fs_workspace(), alloc_sarray(), at45dbx_read_sector_2_ram(), at45dbx_write_sector_from_ram(), audio_mixer_close_direct(), audio_mixer_create_buffers_direct(), audio_mixer_dacs_decrease_volume_direct(), audio_mixer_dacs_flush_direct(), audio_mixer_dacs_get_volume_direct(), audio_mixer_dacs_increase_volume_direct(), audio_mixer_dacs_input_direct(), audio_mixer_dacs_is_volume_muted_direct(), audio_mixer_dacs_output_direct(), audio_mixer_dacs_set_volume_direct(), audio_mixer_dacs_setup_direct(), audio_mixer_dacs_start_direct(), audio_mixer_dacs_stop_direct(), audio_mixer_disable_dacs_direct(), audio_mixer_mute_audio_direct(), build_ycc_rgb_table(), configure_hmatrix(), console_add_cmd(), console_schedule_cmd(), create_colorindex(), create_colormap(), create_context_buffer(), create_odither_tables(), decodeGeneric(), device_generic_hid_task_init(), dip204_create_char(), dip204_printf_string(), dip204_write_string(), dlmalloc(), dsp16_debug_print_complex_vect(), dsp16_debug_print_vect(), dsp16_filt_lms(), dsp16_filt_lpfirdesign(), dsp16_filt_lpfirdesign_windowed_sinc(), dsp16_filt_nlms(), dsp16_gen_dcomb(), dsp16_gen_ramp(), dsp16_gen_rect(), dsp16_gen_saw(), dsp16_gen_step(), dsp16_resampling_compute(), dsp16_resampling_polynomial_interpolation(), dsp16_resampling_setup(), dsp16_win_bart(), dsp16_win_black(), dsp16_win_gauss(), dsp16_win_hamm(), dsp16_win_hann(), dsp16_win_welch(), dsp32_debug_print_complex_vect(), dsp32_debug_print_vect(), dsp32_filt_lms(), dsp32_filt_nlms(), dsp32_gen_dcomb(), dsp32_gen_ramp(), dsp32_gen_rect(), dsp32_gen_saw(), dsp32_gen_step(), dsp32_win_bart(), dsp32_win_black(), dsp32_win_gauss(), dsp32_win_hamm(), dsp32_win_hann(), dsp32_win_welch(), dsp_adpcm_ima_decode(), dsp_adpcm_ima_encode(), dsp_debug_parse_int(), dsp_debug_print_ui(), dsp_debug_read(), dsp_debug_read_q(), dsp_debug_read_ui(), dsp_debug_sprint(), dsp_debug_sprint_after_radix(), ecc_compare_block_256b(), ecc_make_block_256b(), eic_init(), encode_one_block(), fat_check_device(), fat_example_parse_cmd(), fget_struct(), find_best_candidate(), find_best_colors(), find_nearby_colors(), flashc_memcpy(), flashc_memset64(), for(), forward_DCT(), freq_detect_start(), fsaccess_example_read(), fsaccess_example_write(), generateDistanceTree(), generateFixedTree(), get_message(), getTreeInflateDynamic(), gfx_draw_char_hugemem(), gfx_draw_char_progmem(), gfx_generic_draw_line(), gpio_enable_gpio(), gpio_enable_module(), hid_check_vbus(), host_cdc_task(), host_get_data(), host_hid_get_descriptor(), host_hid_get_item(), host_mass_storage_task(), host_mouse_hid_task(), host_template_task(), host_template_task_init(), http_recv(), HuffmanTree_make2DTree(), HuffmanTree_makeFromLengths(), ialloc(), if(), ili9341_copy_pixels_to_screen(), ili9341_duplicate_pixel(), infinite_led_chaser(), init_bins(), init_spi(), int_handler_usart(), is_any_interrupt_pipe_active(), isp_crc8(), isp_force_boot_isp(), jinit_2pass_quantizer(), jinit_c_coef_controller(), jinit_d_coef_controller(), jinit_forward_dct(), jinit_huff_decoder(), jinit_huff_encoder(), jinit_marker_reader(), jinit_phuff_decoder(), join_argv(), jpeg_add_quant_table(), jpeg_CreateDecompress(), jpeg_gen_optimal_table(), jpeg_make_c_derived_tbl(), jpeg_make_d_derived_tbl(), jpeg_set_defaults(), lin_get_response(), LodePNG_append_chunk(), LodePNG_chunk_type(), LodePNG_convert(), LodePNG_create_chunk(), LodePNG_InfoColor_copy(), LodePNG_IText_clear(), LodePNG_Text_clear(), LodePNG_UnknownChunks_cleanup(), LodePNG_UnknownChunks_copy(), LodePNG_UnknownChunks_init(), main(), main_dump_buffer(), main_extra_string(), main_test_memory(), main_test_sdio(), membag_alloc(), membag_free(), membag_get_largest_free_block_size(), membag_get_smallest_free_block_size(), membag_get_total(), membag_get_total_free(), membag_init(), memp_init(), mmc_cmd8(), mpu_configuration_error(), mxt_calculate_infoblock_crc(), mxt_create_report_id_map(), mxt_get_object_address(), mxt_get_object_size(), mxt_get_report_id_offset(), mxt_get_tot_report_ids(), mxt_info_le_to_cpu(), mxt_validate_message(), nav_reset(), navauto_mov_explorer_new_dir(), math::matrix3d::operator()(), math::vector2d::operator()(), math::vector3d::operator()(), math::matrix4d::operator()(), math::vector4h::operator()(), math::vector4d::operator()(), pbuf_memcmp(), pbuf_memfind(), ping_prepare_echo(), play_wav(), player_init(), player_shutdown(), postProcessScanlines(), print_char_hex(), print_hex(), print_i(), print_move(), print_network_list(), print_short_hex(), print_ulong(), printbuf(), printi(), prints(), qt60168_setup(), readBitsFromReversedStream(), readBitsFromStream(), reader_id3_v2_picture(), reader_id3_v2_string(), reset_it_pipe_str(), reverse_argv_elements(), rgb_ycc_start(), run_byte_access_test(), run_multiple_sector_access_test(), run_sd_mmc_rw_test(), run_sector_access_test(), sd_mmc_spi_internal_init(), sd_mmc_spi_read_multiple_sector_callback(), sd_mmc_spi_read_sector_to_ram(), sd_mmc_spi_write_multiple_sector_callback(), sd_mmc_spi_write_sector_from_ram(), send_message(), sensor_band_index(), sensor_range_index(), sfh7770_set_current(), sfh7770_set_rate(), sleepmgr_init(), software_delay(), spi_read_packet(), spi_write_packet(), start_pass(), start_pass_1_quant(), start_pass_fdctmgr(), string_set(), tc_sync_start(), test_mem(), test_suite_run(), timer_poll(), tmalloc_large(), tmalloc_small(), toggle_led(), transencode_coef_controller(), ucvector_resizev(), udc_req_std_dev_get_str_desc(), udd_ctrl_in_sent(), udd_ctrl_out_received(), udd_ctrl_setup_received(), udi_hid_kbd_down(), udi_hid_kbd_up(), udi_msc_spc_inquiry(), uhc_connection_tree(), uhc_dev_get_string(), uhc_dev_reset(), uhc_enumeration_step14(), uhc_enumeration_step15(), uhc_notify_sof(), uhi_cdc_free_device(), uhi_cdc_install(), uhi_vendor_install(), uivector_resizev(), unfilterScanline(), usart_spi_read_packet(), usart_spi_write_packet(), usb_general_interrupt(), usb_pipe_interrupt(), usb_stream_close(), usb_stream_fill_input_buffers(), usb_stream_init(), usb_stream_input(), usb_stream_process(), virtual_check_init(), wait(), and while().

int length
Initial value:
{
register bit_buf_type register int d_derived_tbl * htbl
Definition: jdhuff.h:200
Definition: jpeglib.h:100
* dest next_output_byte = (JOCTET) val
return prec
Initial value:
{
JQUANT_TBL * qtbl = cinfo->quant_tbl_ptrs[index]
Definition: jpeglib.h:83
int index
Definition: jdmarker.c:425
(* cinfo)(cinfo,(long) length)
Definition: jdmarker.c:730