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 Adam7_deinterlace(), Adam7_getpassvalues(), adc_process_task(), adc_task(), adcifa_calibrate_offset(), adcifa_configure_sequencer(), adcifa_get_values_from_sequencer(), ak8975_selftest(), alloc_barray(), alloc_fs_workspace(), alloc_sarray(), AppEngineSelectDeviceButton(), 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(), BSP_USART_PrintDec(), BSP_USART_PrintHex(), build_ycc_rgb_table(), can_mob_alloc(), can_task(), configure_hmatrix(), create_colorindex(), create_colormap(), create_context_buffer(), create_odither_tables(), dac_task_init(), decodeGeneric(), dlmalloc(), draw_mandel(), draw_plasma(), 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(), et024006_DrawLine(), fat_check_device(), fat_example_parse_cmd(), filter_task(), filter_task_fir(), filter_task_fir_fp(), find_best_colors(), find_nearby_colors(), flashc_memcpy(), flashc_memset64(), for(), forward_DCT(), freq_detect_start(), fsaccess_example_read(), fsaccess_example_write(), generateDistanceTree(), generateFixedTree(), getTreeInflateDynamic(), gfx_draw_char_hugemem(), gfx_draw_char_progmem(), gfx_generic_draw_line(), gpio_enable_gpio(), gpio_enable_module(), gui_buffer_print_dsp16_signal(), gui_print(), gui_set_selection(), HuffmanTree_make2DTree(), HuffmanTree_makeFromLengths(), ialloc(), if(), ili9341_copy_pixels_to_screen(), ili9341_duplicate_pixel(), infinite_led_chaser(), init_bins(), isp_crc8(), isp_force_boot_isp(), ISR(), 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(), jpeg_add_quant_table(), jpeg_CreateDecompress(), jpeg_gen_optimal_table(), jpeg_make_c_derived_tbl(), jpeg_make_d_derived_tbl(), jpeg_set_defaults(), led_display_chaser_infinitely(), leds_toggle_infinitely(), lin_get_response(), lin_task(), LodePNG_append_chunk(), LodePNG_chunk_type(), LodePNG_convert(), LodePNG_create_chunk(), lodepng_decode_display(), LodePNG_InfoColor_copy(), LodePNG_IText_clear(), LodePNG_Text_clear(), LodePNG_UnknownChunks_cleanup(), LodePNG_UnknownChunks_copy(), LodePNG_UnknownChunks_init(), main(), main_dump_buffer(), 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(), noise_task(), math::matrix3d::operator()(), math::vector2d::operator()(), math::vector3d::operator()(), math::matrix4d::operator()(), math::vector4h::operator()(), math::vector4d::operator()(), OS_InitEventList(), OS_InitRdyList(), OS_InitTCBList(), pbuf_memcmp(), pbuf_memfind(), postProcessScanlines(), print_char_hex(), print_hex(), print_i(), print_short_hex(), print_ulong(), printi(), prints(), pwm_init(), pwm_output_override_setup(), pwm_output_override_write(), qt60168_setup(), readBitsFromReversedStream(), readBitsFromStream(), reader_id3_v2_picture(), reader_id3_v2_string(), remote_task(), rgb_ycc_start(), run_byte_access_test(), run_data_integrity_test(), run_multiple_sector_access_test(), run_sd_mmc_rw_test(), run_sector_access_test(), sau_configure_channels(), 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(), sdramc_init(), 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(), sys_arch_timeouts(), sys_init(), tc_sync_start(), test_suite_run(), tmalloc_large(), tmalloc_small(), toggle_led(), transencode_coef_controller(), ucvector_resizev(), udc_req_std_dev_get_str_desc(), udd_enable(), 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(), ulMACBInputLength(), unfilterScanline(), usart_spi_read_packet(), usart_spi_write_packet(), vMACBWaitForInput(), wait(), and while().

* 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