Метод | Описание | |
---|---|---|
GetByte ( int &V ) : bool |
Read a byte into variable V. If must suspend, take the specified action (typically "return false").
|
|
GetBytes ( byte dest, int amount ) : int |
Gets the bytes.
|
|
GetTwoBytes ( int &V ) : bool |
Reads two bytes interpreted as an unsigned 16-bit integer.
|
|
MakeByteAvailable ( ) : bool |
Functions for fetching data from the data source module. At all times, cinfo.src.next_input_byte and .bytes_in_buffer reflect the current restart point; we update them only when we have reached a suitable place to restart if a suspension occurs. |
|
fill_input_buffer ( ) : bool |
Fills input buffer
|
|
init_source ( ) : void |
Initializes this instance.
|
|
resync_to_restart ( |
This is the default resync_to_restart method for data source managers to use if they don't have any better approach. That method assumes that no backtracking is possible. Some data source managers may be able to back up, or may have additional knowledge about the data which permits a more intelligent recovery strategy; such managers would presumably supply their own resync method. |
|
skip_input_data ( int num_bytes ) : void |
Skip data - used to skip over a potentially large amount of uninteresting data (such as an APPn marker). Writers of suspendable-input applications must note that skip_input_data is not granted the right to give a suspension return. If the skip extends beyond the data currently in the buffer, the buffer can be marked empty so that the next read will cause a fill_input_buffer call that can suspend. Arranging for additional bytes to be discarded before reloading the input buffer is the application writer's problem. |
|
term_source ( ) : void |
Terminate source - called by jpeg_finish_decompress after all data has been read. Often a no-op. NB: not called by jpeg_abort or jpeg_destroy; surrounding application must deal with any cleanup that should happen even for error exit. |
Метод | Описание | |
---|---|---|
initInternalBuffer ( byte buffer, int size ) : void |
Initializes the internal buffer.
|
public GetBytes ( byte dest, int amount ) : int | ||
dest | byte | The destination. |
amount | int | The amount. |
Результат | int |
public abstract fill_input_buffer ( ) : bool | ||
Результат | bool |
protected initInternalBuffer ( byte buffer, int size ) : void | ||
buffer | byte | The buffer. |
size | int | The size. |
Результат | void |
public resync_to_restart ( |
||
cinfo | An instance of |
|
desired | int | The desired |
Результат | bool |
public skip_input_data ( int num_bytes ) : void | ||
num_bytes | int | The number of bytes to skip. |
Результат | void |