C# 클래스 BitMiracle.LibJpeg.Classic.Internal.jpeg_marker_reader

Marker reading and parsing
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 메소드들

메소드 설명
DiscardedByteCount ( ) : int
NextRestartNumber ( ) : int
SawSOF ( ) : bool
SawSOI ( ) : bool
SkipBytes ( int count ) : void
jpeg_marker_reader ( jpeg_decompress_struct cinfo ) : System

Initialize the marker reader module. This is called only once, when the decompression object is created.

jpeg_save_markers ( int marker_code, int length_limit ) : void
jpeg_set_marker_processor ( int marker_code, jpeg_decompress_struct routine ) : void

Install a special processing method for COM or APPn markers.

next_marker ( ) : bool

Find the next JPEG marker, save it in cinfo.unread_marker. Returns false if had to suspend before reaching a marker; in that case cinfo.unread_marker is unchanged. Note that the result might not be a valid marker code, but it will never be 0 or FF.

read_markers ( ) : ReadResult

Read markers until SOS or EOI. Returns same codes as are defined for jpeg_consume_input: JPEG_SUSPENDED, JPEG_REACHED_SOS, or JPEG_REACHED_EOI. Note: This function may return a pseudo SOS marker(with zero component number) for treat by input controller's consume_input. consume_input itself should filter out (skip) the pseudo marker after processing for the caller.

read_restart_marker ( ) : bool

Read a restart marker, which is expected to appear next in the datastream; if the marker is not there, take appropriate recovery action. Returns false if suspension is required. Made public for use by entropy decoder only This is called by the entropy decoder after it has read an appropriate number of MCUs. cinfo.unread_marker may be nonzero if the entropy decoder has already read a marker from the data source. Under normal conditions cinfo.unread_marker will be reset to 0 before returning; if not reset, it holds a marker which the decoder will be unable to read past.

reset_marker_reader ( ) : void

Reset marker processing state to begin a fresh datastream.

비공개 메소드들

메소드 설명
examine_app0 ( jpeg_decompress_struct cinfo, byte data, int datalen, int remaining ) : void

Examine first few bytes from an APP0. Take appropriate action if it is a JFIF marker. datalen is # of bytes at data[], remaining is length of rest of marker data.

examine_app14 ( jpeg_decompress_struct cinfo, byte data, int datalen, int remaining ) : void

Examine first few bytes from an APP14. Take appropriate action if it is an Adobe marker. datalen is # of bytes at data[], remaining is length of rest of marker data.

first_marker ( ) : bool

Like next_marker, but used to obtain the initial SOI marker. For this marker, we do not allow preceding garbage or fill; otherwise, we might well scan an entire input file before realizing it ain't JPEG. If an application wants to process non-JFIF files, it must seek to the SOI before calling the JPEG library.

get_dac ( ) : bool

Process a DAC marker

get_dht ( ) : bool

Process a DHT marker

get_dqt ( ) : bool

Process a DQT marker

get_dri ( ) : bool

Process a DRI marker

get_interesting_appn ( jpeg_decompress_struct cinfo ) : bool

Process an APP0 or APP14 marker without saving it

get_lse ( ) : bool

Process an LSE marker

get_sof ( bool is_baseline, bool is_prog, bool is_arith ) : bool

Process a SOFn marker

get_soi ( ) : bool

Process an SOI marker

get_sos ( ) : bool

Process a SOS marker

save_marker ( jpeg_decompress_struct cinfo ) : bool

Save an APPn or COM marker into the marker list

skip_variable ( jpeg_decompress_struct cinfo ) : bool

Skip over an unknown or uninteresting variable-length marker

메소드 상세

DiscardedByteCount() 공개 메소드

public DiscardedByteCount ( ) : int
리턴 int

NextRestartNumber() 공개 메소드

public NextRestartNumber ( ) : int
리턴 int

SawSOF() 공개 메소드

public SawSOF ( ) : bool
리턴 bool

SawSOI() 공개 메소드

public SawSOI ( ) : bool
리턴 bool

SkipBytes() 공개 메소드

public SkipBytes ( int count ) : void
count int
리턴 void

jpeg_marker_reader() 공개 메소드

Initialize the marker reader module. This is called only once, when the decompression object is created.
public jpeg_marker_reader ( jpeg_decompress_struct cinfo ) : System
cinfo jpeg_decompress_struct
리턴 System

jpeg_save_markers() 공개 메소드

public jpeg_save_markers ( int marker_code, int length_limit ) : void
marker_code int
length_limit int
리턴 void

jpeg_set_marker_processor() 공개 메소드

Install a special processing method for COM or APPn markers.
public jpeg_set_marker_processor ( int marker_code, jpeg_decompress_struct routine ) : void
marker_code int
routine jpeg_decompress_struct
리턴 void

next_marker() 공개 메소드

Find the next JPEG marker, save it in cinfo.unread_marker. Returns false if had to suspend before reaching a marker; in that case cinfo.unread_marker is unchanged. Note that the result might not be a valid marker code, but it will never be 0 or FF.
public next_marker ( ) : bool
리턴 bool

read_markers() 공개 메소드

Read markers until SOS or EOI. Returns same codes as are defined for jpeg_consume_input: JPEG_SUSPENDED, JPEG_REACHED_SOS, or JPEG_REACHED_EOI. Note: This function may return a pseudo SOS marker(with zero component number) for treat by input controller's consume_input. consume_input itself should filter out (skip) the pseudo marker after processing for the caller.
public read_markers ( ) : ReadResult
리턴 ReadResult

read_restart_marker() 공개 메소드

Read a restart marker, which is expected to appear next in the datastream; if the marker is not there, take appropriate recovery action. Returns false if suspension is required. Made public for use by entropy decoder only This is called by the entropy decoder after it has read an appropriate number of MCUs. cinfo.unread_marker may be nonzero if the entropy decoder has already read a marker from the data source. Under normal conditions cinfo.unread_marker will be reset to 0 before returning; if not reset, it holds a marker which the decoder will be unable to read past.
public read_restart_marker ( ) : bool
리턴 bool

reset_marker_reader() 공개 메소드

Reset marker processing state to begin a fresh datastream.
public reset_marker_reader ( ) : void
리턴 void