|
Grok 20.3.2
|
#include <FileFormatMJ2Compress.h>
Public Member Functions | |
| FileFormatMJ2Compress (IStream *stream) | |
| ~FileFormatMJ2Compress () override | |
| bool | init (grk_cparameters *param, GrkImage *image) override |
| bool | start (void) override |
| uint64_t | compress (grk_plugin_tile *tile) override |
| uint64_t | compressFrame (GrkImage *image, grk_plugin_tile *tile) override |
| bool | finalize (void) override |
| Public Member Functions inherited from grk::FileFormatJP2Compress | |
| FileFormatJP2Compress (IStream *stream) | |
| virtual | ~FileFormatJP2Compress () |
| uint64_t | transcode (IStream *srcStream) |
| Public Member Functions inherited from grk::FileFormatJP2Family | |
| FileFormatJP2Family (IStream *stream) | |
| virtual | ~FileFormatJP2Family () |
| FileFormatJP2Family (const FileFormatJP2Family &)=delete | |
| FileFormatJP2Family & | operator= (const FileFormatJP2Family &)=delete |
| Public Member Functions inherited from grk::ICompressor | |
| virtual | ~ICompressor ()=default |
Private Member Functions | |
| bool | write_mj2_signature (void) |
| bool | write_mj2_ftyp (void) |
| bool | write_moov (void) |
| uint8_t * | write_mvhd (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_trak (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_tkhd (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_mdia (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_mdhd (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_hdlr (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_minf (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_vmhd (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_dinf (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_stbl (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_stsd (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_smj2 (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_stts (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_stsc (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_stsz (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_stco (uint32_t *p_nb_bytes_written) |
| bool | write_mdat_header (void) |
| bool | write_mdat_finalize (void) |
Private Attributes | |
| uint64_t | mdat_offset_ |
| uint32_t | timescale_ |
| uint32_t | frame_rate_ |
| bool | finalized_ |
| grk_cparameters | compressParams_ |
| std::vector< MJ2SampleRecord > | sampleRecords_ |
Additional Inherited Members | |
| Protected Member Functions inherited from grk::FileFormatJP2Compress | |
| GrkImage * | getHeaderImage (void) override |
| uint8_t * | write_ihdr (uint32_t *p_nb_bytes_written) |
| uint8_t * | write_colr (uint32_t *p_nb_bytes_written) |
| Protected Member Functions inherited from grk::FileFormatJP2Family | |
| void | init (grk_decompress_parameters *param) |
| bool | readHeaderProcedure () |
| bool | readHeader (grk_header_info *header_info, GrkImage *headerImage) |
| grk_color * | getColour (void) |
| std::string | getBoxName (const Box &box) |
| const FindHandlerInfo | img_find_handler (uint32_t id) |
| Finds the BOX_FUNC related to given box id. | |
| uint32_t | read_asoc (AsocBox *parent, uint8_t **header_data, uint32_t *header_data_size, uint32_t asocSize) |
| bool | read_asoc (uint8_t *header_data, uint32_t header_data_size) |
| void | serializeAsoc (AsocBox *asoc, grk_asoc *serial_asocs, uint32_t *num_asocs, uint32_t level) |
| bool | read_box_header (Box *box, IStream *stream, uint32_t *bytesRead, bool codeStreamBoxWasRead) |
| bool | read_box_header (Box *box, uint8_t *p_data, uint32_t *bytesRead, uint64_t availableBytes) |
| uint8_t * | write_buffer (uint32_t boxId, Buffer8 *buffer, uint32_t *p_nb_bytes_written) |
| bool | write_ftyp (IStream *stream, uint32_t file_type) |
| bool | write_signature (IStream *stream, uint32_t sig) |
| bool | exec (std::vector< PROCEDURE_FUNC > *procs) |
| bool | read_jp2h (uint8_t *headerData, uint32_t headerSize) |
| Reads the Jpeg2000 file Header box - JP2 Header box. | |
| void | skip (uint8_t **headerData, uint32_t *headerSize, uint32_t skip) |
| Protected Attributes inherited from grk::FileFormatJP2Compress | |
| CodeStreamCompress * | codeStream = nullptr |
| GrkImage * | inputImage_ = nullptr |
| Protected Attributes inherited from grk::FileFormatJP2Family | |
| std::vector< PROCEDURE_FUNC > * | procedure_list_ |
| list of execution procedures | |
| uint32_t | brand |
| uint32_t | minversion |
| uint32_t | numcl |
| uint32_t * | cl |
| uint32_t | w |
| uint32_t | h |
| uint16_t | numcomps |
| uint8_t | bpc |
| uint8_t | C |
| uint8_t | UnkC |
| uint8_t | IPR |
| uint8_t | meth |
| uint8_t | approx |
| GRK_ENUM_COLOUR_SPACE | enumcs |
| uint8_t | precedence |
| ComponentInfo * | comps |
| bool | has_capture_resolution |
| double | capture_resolution [2] |
| bool | has_display_resolution |
| double | display_resolution [2] |
| Buffer8 | xml |
| Buffer8 | xml_boxes [JP2_MAX_NUM_XML_BOXES] |
| uint32_t | numXmlBoxes |
| bool | io_xml_ |
| std::string | xml_outfile_ |
| Buffer8 | ipr |
| UUIDBox | uuids [JP2_MAX_NUM_UUIDS] |
| uint32_t | numUuids |
| std::unordered_map< uint32_t, BOX_FUNC > | header |
| AsocBox | root_asoc |
| uint32_t | jp2_state |
| bool | headerError_ |
| bool | headerRead_ |
| std::stack< Box > | superBoxes_ |
| std::unordered_map< uint32_t, BOX_FUNC > | img_header |
| IStream * | stream_ |
|
explicit |
|
override |
References finalize(), finalized_, and sampleRecords_.
|
overridevirtual |
Reimplemented from grk::FileFormatJP2Compress.
References grk::FileFormatJP2Compress::codeStream, MJ2_JP2C, grk::MJ2SampleRecord::offset, sampleRecords_, and grk::MJ2SampleRecord::size.
|
overridevirtual |
Reimplemented from grk::ICompressor.
References grk::FileFormatJP2Compress::codeStream, compressParams_, MJ2_JP2C, grk::MJ2SampleRecord::offset, sampleRecords_, and grk::MJ2SampleRecord::size.
|
overridevirtual |
Reimplemented from grk::ICompressor.
References grk::FileFormatJP2Compress::codeStream, finalized_, sampleRecords_, write_mdat_finalize(), and write_moov().
Referenced by ~FileFormatMJ2Compress().
|
overridevirtual |
Reimplemented from grk::FileFormatJP2Compress.
References grk::FileFormatJP2Family::brand, grk::FileFormatJP2Family::cl, compressParams_, grk::FileFormatJP2Compress::init(), and MJ2_MJ2.
|
overridevirtual |
Reimplemented from grk::FileFormatJP2Compress.
References grk::FileFormatJP2Compress::codeStream, grk::grklog, write_mdat_header(), write_mj2_ftyp(), and write_mj2_signature().
|
private |
References grk::grk_calloc(), grk::grk_write(), MJ2_DINF, MJ2_DREF, and MJ2_URL.
Referenced by write_minf().
|
private |
References grk::grk_calloc(), grk::grk_write(), MJ2_HDLR, and MJ2_VIDE.
Referenced by write_mdia().
|
private |
References grk::FileFormatJP2Compress::codeStream, and mdat_offset_.
Referenced by finalize().
|
private |
References grk::FileFormatJP2Compress::codeStream, mdat_offset_, and MJ2_MDAT.
Referenced by start().
|
private |
References frame_rate_, grk::grk_calloc(), grk::grk_write(), MJ2_MDHD, sampleRecords_, and timescale_.
Referenced by write_mdia().
|
private |
References grk::assemble_super_box(), grk::grk_free(), MJ2_MDIA, write_hdlr(), write_mdhd(), and write_minf().
Referenced by write_trak().
|
private |
References grk::assemble_super_box(), grk::grk_free(), MJ2_MINF, write_dinf(), write_stbl(), and write_vmhd().
Referenced by write_mdia().
|
private |
References grk::FileFormatJP2Compress::codeStream, grk::JP2_FTYP, and grk::FileFormatJP2Family::write_ftyp().
Referenced by start().
|
private |
References grk::FileFormatJP2Compress::codeStream, grk::JP2_JP, and grk::FileFormatJP2Family::write_signature().
Referenced by start().
|
private |
References grk::FileFormatJP2Compress::codeStream, grk::grk_free(), MJ2_MOOV, write_mvhd(), and write_trak().
Referenced by finalize().
|
private |
References frame_rate_, grk::grk_calloc(), grk::grk_write(), MJ2_MVHD, sampleRecords_, and timescale_.
Referenced by write_moov().
|
private |
|
private |
References grk::assemble_super_box(), grk::grk_free(), MJ2_STBL, write_stco(), write_stsc(), write_stsd(), write_stsz(), and write_stts().
Referenced by write_minf().
|
private |
References grk::grk_calloc(), grk::grk_write(), MJ2_STCO, and sampleRecords_.
Referenced by write_stbl().
|
private |
References grk::grk_calloc(), grk::grk_write(), and MJ2_STSC.
Referenced by write_stbl().
|
private |
References grk::grk_calloc(), grk::grk_free(), grk::grk_write(), MJ2_STSD, and write_smj2().
Referenced by write_stbl().
|
private |
References grk::grk_calloc(), grk::grk_write(), MJ2_STSZ, and sampleRecords_.
Referenced by write_stbl().
|
private |
References frame_rate_, grk::grk_calloc(), grk::grk_write(), MJ2_STTS, sampleRecords_, and timescale_.
Referenced by write_stbl().
|
private |
References grk::FileFormatJP2Compress::codeStream, frame_rate_, grk::grk_calloc(), grk::grk_write(), MJ2_TKHD, sampleRecords_, and timescale_.
Referenced by write_trak().
|
private |
References grk::assemble_super_box(), grk::grk_free(), MJ2_TRAK, write_mdia(), and write_tkhd().
Referenced by write_moov().
|
private |
References grk::grk_calloc(), grk::grk_write(), and MJ2_VMHD.
Referenced by write_minf().
|
private |
Referenced by compressFrame(), FileFormatMJ2Compress(), and init().
|
private |
Referenced by FileFormatMJ2Compress(), finalize(), and ~FileFormatMJ2Compress().
|
private |
Referenced by FileFormatMJ2Compress(), write_mdhd(), write_mvhd(), write_stts(), and write_tkhd().
|
private |
Referenced by FileFormatMJ2Compress(), write_mdat_finalize(), and write_mdat_header().
|
private |
Referenced by compress(), compressFrame(), finalize(), write_mdhd(), write_mvhd(), write_stco(), write_stsz(), write_stts(), write_tkhd(), and ~FileFormatMJ2Compress().
|
private |
Referenced by FileFormatMJ2Compress(), write_mdhd(), write_mvhd(), write_stts(), and write_tkhd().