FFmpeg
|
JPEG2000 image encoder. More...
#include <float.h>
#include "avcodec.h"
#include "internal.h"
#include "bytestream.h"
#include "jpeg2000.h"
#include "libavutil/common.h"
Go to the source code of this file.
Data Structures | |
struct | Jpeg2000Tile |
struct | Jpeg2000EncoderContext |
Macros | |
#define | NMSEDEC_BITS 7 |
#define | NMSEDEC_FRACBITS (NMSEDEC_BITS-1) |
#define | WMSEDEC_SHIFT 13 |
must be >= 13 | |
#define | LAMBDA_SCALE (100000000LL << (WMSEDEC_SHIFT - 13)) |
Variables | |
static int | lut_nmsedec_ref [1<< NMSEDEC_BITS] |
static int | lut_nmsedec_ref0 [1<< NMSEDEC_BITS] |
static int | lut_nmsedec_sig [1<< NMSEDEC_BITS] |
static int | lut_nmsedec_sig0 [1<< NMSEDEC_BITS] |
static const int | dwt_norms [2][4][10] |
AVCodec | ff_jpeg2000_encoder |
JPEG2000 image encoder.
Definition in file j2kenc.c.
#define NMSEDEC_BITS 7 |
Definition at line 35 of file j2kenc.c.
Referenced by getnmsedec_ref(), getnmsedec_sig(), and init_luts().
#define NMSEDEC_FRACBITS (NMSEDEC_BITS-1) |
Definition at line 36 of file j2kenc.c.
Referenced by encode_cblk(), encode_clnpass(), encode_refpass(), encode_sigpass(), encode_tile(), getnmsedec_ref(), getnmsedec_sig(), and init_luts().
#define WMSEDEC_SHIFT 13 |
#define LAMBDA_SCALE (100000000LL << (WMSEDEC_SHIFT - 13)) |
Definition at line 38 of file j2kenc.c.
Referenced by encode_frame().
|
static |
put n times val bit
Definition at line 160 of file j2kenc.c.
Referenced by aac_adtstoasc_filter(), aac_encode_frame(), ac3_output_frame_header(), adts_decode_extradata(), adts_write_frame_header(), asv1_encode_block(), asv1_put_level(), asv2_encode_block(), asv2_put_bits(), asv2_put_level(), avpriv_align_put_bits(), avpriv_copy_bits(), avpriv_put_string(), bit_copy(), codebook_trellis_rate(), copy_bits(), dnxhd_encode_block(), dnxhd_encode_dc(), dnxhd_encode_thread(), dv_encode_ac(), dv_encode_video_segment(), encode_422_bitstream(), encode_ac_coeffs(), encode_bitstream(), encode_block(), encode_codeword(), encode_dc(), encode_exp_vlc(), encode_ext_header(), encode_flush(), encode_frame(), encode_individual_channel(), encode_line(), encode_mb_skip_run(), encode_ms_info(), encode_packet(), encode_picture_ls(), encode_pulses(), encode_scalar(), encode_scale_factors(), encode_superframe(), encode_vlc_codeword(), encode_window_bands_info(), ff_dca_convert_bitstream(), ff_eac3_output_frame_header(), ff_flv2_encode_ac_esc(), ff_flv_encode_picture_header(), ff_h261_encode_mb(), ff_h261_encode_picture_header(), ff_h263_encode_gob_header(), ff_h263_encode_mb(), ff_h263_encode_mba(), ff_h263_encode_motion(), ff_h263_encode_picture_header(), ff_mjpeg_encode_dc(), ff_mjpeg_encode_picture_header(), ff_mjpeg_escape_FF(), ff_mjpeg_find_marker(), ff_mpeg1_encode_picture_header(), ff_mpeg1_encode_slice_header(), ff_mpeg4_encode_mb(), ff_mpeg4_encode_picture_header(), ff_mpeg4_encode_video_packet_header(), ff_mpeg4_merge_partitions(), ff_mpeg4_stuffing(), ff_MPV_encode_picture(), ff_msmpeg4_code012(), ff_msmpeg4_encode_block(), ff_msmpeg4_encode_ext_header(), ff_msmpeg4_encode_mb(), ff_msmpeg4_encode_motion(), ff_msmpeg4_encode_picture_header(), ff_rv10_encode_picture_header(), ff_rv20_encode_picture_header(), ff_wmv2_encode_mb(), ff_wmv2_encode_picture_header(), ff_write_quant_matrix(), floor_encode(), gif_image_write_image(), h261_encode_block(), h261_encode_gob_header(), h261_encode_motion(), h263_encode_block(), h263p_encode_umotion(), jpeg_put_comments(), jpeg_table_header(), latm_write_frame_header(), latm_write_packet(), ls_encode_run(), ls_store_lse(), main(), mov_write_ac3_tag(), mov_write_dvc1_structs(), mpeg1_encode_block(), mpeg1_encode_mb_internal(), mpeg1_encode_motion(), mpeg1_encode_sequence_header(), mpeg4_encode_block(), mpeg4_encode_dc(), mpeg4_encode_gop_header(), mpeg4_encode_visual_object_header(), mpeg4_encode_vol_header(), msmpeg4_encode_dc(), msmpeg4v2_encode_motion(), output_audio_block(), pack_float_sample(), pack_int32(), pnm_decode_frame(), put_alpha_diff(), put_alpha_run(), put_audio_specific_config(), put_bitstream_info(), put_codebook_header(), put_codeword(), put_floor_header(), put_frame_header(), put_header(), put_huffman_table(), put_ics_info(), put_main_header(), put_marker(), put_mb_modes(), put_num(), put_pack_header(), put_primary_audio_header(), put_qscale(), put_residue_header(), put_subframe(), put_subframe_samples(), put_swf_line_edge(), put_swf_matrix(), put_swf_rect(), put_system_header(), put_xsub_rle(), quantize_and_encode_band_cost_template(), ra144_encode_frame(), ra144_encode_subblock(), read_packet(), s302m_encode2_frame(), save_bits(), send_mode_a(), send_mode_b(), set_te_golomb(), set_ue_golomb(), set_ur_golomb(), set_ur_golomb_jpegls(), svq1_encode_frame(), svq1_encode_plane(), svq1_write_header(), swf_write_header(), tag_tree_code(), tta_encode_frame(), vorbis_encode_frame(), wavpack_encode_sample(), write_element(), write_element_header(), write_frame(), write_frame_footer(), write_frame_header(), write_header(), write_huff_codes(), write_streaminfo(), write_subframes(), and write_utf8().
|
static |
put n least significant bits of a number num
Definition at line 173 of file j2kenc.c.
Referenced by encode_packet(), and putnumpasses().
|
static |
|
static |
code the value stored in node
Definition at line 191 of file j2kenc.c.
Referenced by encode_packet().
|
static |
|
static |
Definition at line 231 of file j2kenc.c.
Referenced by encode_frame().
|
static |
Definition at line 260 of file j2kenc.c.
Referenced by encode_frame().
|
static |
Definition at line 287 of file j2kenc.c.
Referenced by encode_frame().
|
static |
Definition at line 313 of file j2kenc.c.
Referenced by encode_frame().
|
static |
compute the sizes of tiles, resolution levels, bands, etc.
allocate memory for them divide the input image into tile-components
Definition at line 337 of file j2kenc.c.
Referenced by j2kenc_init().
|
static |
Definition at line 383 of file j2kenc.c.
Referenced by encode_frame().
|
static |
Definition at line 421 of file j2kenc.c.
Referenced by j2kenc_init().
Definition at line 451 of file j2kenc.c.
Referenced by j2kenc_init().
|
static |
Definition at line 469 of file j2kenc.c.
Referenced by encode_clnpass(), and encode_sigpass().
|
static |
Definition at line 476 of file j2kenc.c.
Referenced by encode_refpass().
|
static |
Definition at line 483 of file j2kenc.c.
Referenced by encode_cblk().
|
static |
Definition at line 505 of file j2kenc.c.
Referenced by encode_cblk().
|
static |
Definition at line 519 of file j2kenc.c.
Referenced by encode_cblk().
|
static |
Definition at line 574 of file j2kenc.c.
Referenced by encode_tile().
|
static |
Definition at line 633 of file j2kenc.c.
Referenced by encode_packet().
|
static |
Definition at line 648 of file j2kenc.c.
Referenced by encode_packets().
|
static |
Definition at line 743 of file j2kenc.c.
Referenced by encode_tile().
|
static |
Definition at line 766 of file j2kenc.c.
Referenced by truncpasses().
|
static |
Definition at line 784 of file j2kenc.c.
Referenced by encode_tile().
|
static |
Definition at line 813 of file j2kenc.c.
Referenced by encode_frame().
|
static |
Definition at line 892 of file j2kenc.c.
Referenced by j2kenc_destroy().
|
static |
Definition at line 907 of file j2kenc.c.
Referenced by encode_frame().
|
static |
|
static |
|
static |
|
static |
Definition at line 40 of file j2kenc.c.
Referenced by getnmsedec_ref(), and init_luts().
|
static |
Definition at line 40 of file j2kenc.c.
Referenced by getnmsedec_ref(), and init_luts().
|
static |
Definition at line 40 of file j2kenc.c.
Referenced by getnmsedec_sig(), and init_luts().
|
static |
Definition at line 40 of file j2kenc.c.
Referenced by getnmsedec_sig(), and init_luts().
|
static |
Definition at line 45 of file j2kenc.c.
Referenced by init_quantization(), and truncpasses().
AVCodec ff_jpeg2000_encoder |