#include "libavutil/opt.h"
#include "avcodec.h"
#include "dsputil.h"
#include "internal.h"
#include "mpegvideo.h"
#include "dnxhdenc.h"
Go to the source code of this file.
#define BUCKET_BITS 8 |
#define DNX10BIT_QMAT_SHIFT 18 |
Definition at line 38 of file dnxhdenc.c.
Referenced by dnxhd_10bit_dct_quantize(), and dnxhd_init_qmat().
#define LAMBDA_FRAC_BITS 10 |
#define NBUCKETS (1 << BUCKET_BITS) |
#define RADIX_PASSES 4 |
#define RC_VARIANCE 1 |
Definition at line 27 of file dnxhdenc.c.
Referenced by dnxhd_calc_bits_thread(), and dnxhd_encode_fast().
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 37 of file dnxhdenc.c.
static av_always_inline int dnxhd_calc_ac_bits | ( | DNXHDEncContext * | ctx, | |
DCTELEM * | block, | |||
int | last_index | |||
) | [static] |
static int dnxhd_calc_bits_thread | ( | AVCodecContext * | avctx, | |
void * | arg, | |||
int | jobnr, | |||
int | threadnr | |||
) | [static] |
Definition at line 524 of file dnxhdenc.c.
Referenced by dnxhd_encode_rdo(), and dnxhd_find_qscale().
static av_always_inline void dnxhd_encode_block | ( | DNXHDEncContext * | ctx, | |
DCTELEM * | block, | |||
int | last_index, | |||
int | n | |||
) | [static] |
static av_always_inline void dnxhd_encode_dc | ( | DNXHDEncContext * | ctx, | |
int | diff | |||
) | [static] |
static int dnxhd_encode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 981 of file dnxhdenc.c.
static int dnxhd_encode_fast | ( | AVCodecContext * | avctx, | |
DNXHDEncContext * | ctx | |||
) | [static] |
static int dnxhd_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 250 of file dnxhdenc.c.
static int dnxhd_encode_picture | ( | AVCodecContext * | avctx, | |
AVPacket * | pkt, | |||
const AVFrame * | frame, | |||
int * | got_packet | |||
) | [static] |
Definition at line 918 of file dnxhdenc.c.
static int dnxhd_encode_rdo | ( | AVCodecContext * | avctx, | |
DNXHDEncContext * | ctx | |||
) | [static] |
static int dnxhd_encode_thread | ( | AVCodecContext * | avctx, | |
void * | arg, | |||
int | jobnr, | |||
int | threadnr | |||
) | [static] |
static int dnxhd_find_qscale | ( | DNXHDEncContext * | ctx | ) | [static] |
static av_always_inline void dnxhd_get_blocks | ( | DNXHDEncContext * | ctx, | |
int | mb_x, | |||
int | mb_y | |||
) | [static] |
Definition at line 484 of file dnxhdenc.c.
Referenced by dnxhd_calc_bits_thread(), and dnxhd_encode_thread().
static int dnxhd_init_qmat | ( | DNXHDEncContext * | ctx, | |
int | lbias, | |||
int | cbias | |||
) | [static] |
static int dnxhd_init_rc | ( | DNXHDEncContext * | ctx | ) | [static] |
static int dnxhd_init_vlc | ( | DNXHDEncContext * | ctx | ) | [static] |
Definition at line 117 of file dnxhdenc.c.
static void dnxhd_load_picture | ( | DNXHDEncContext * | ctx, | |
const AVFrame * | frame | |||
) | [static] |
static int dnxhd_mb_var_thread | ( | AVCodecContext * | avctx, | |
void * | arg, | |||
int | jobnr, | |||
int | threadnr | |||
) | [static] |
static void dnxhd_setup_threads_slices | ( | DNXHDEncContext * | ctx | ) | [static] |
static av_always_inline int dnxhd_switch_matrix | ( | DNXHDEncContext * | ctx, | |
int | i | |||
) | [static] |
Definition at line 518 of file dnxhdenc.c.
Referenced by dnxhd_calc_bits_thread(), and dnxhd_encode_thread().
static av_always_inline void dnxhd_unquantize_c | ( | DNXHDEncContext * | ctx, | |
DCTELEM * | block, | |||
int | n, | |||
int | qscale, | |||
int | last_index | |||
) | [static] |
static int dnxhd_write_header | ( | AVCodecContext * | avctx, | |
uint8_t * | buf | |||
) | [static] |
static void radix_count | ( | const RCCMPEntry * | data, | |
int | size, | |||
int | buckets[RADIX_PASSES][NBUCKETS] | |||
) | [static] |
static void radix_sort | ( | RCCMPEntry * | data, | |
int | size | |||
) | [static] |
static void radix_sort_pass | ( | RCCMPEntry * | dst, | |
const RCCMPEntry * | data, | |||
int | size, | |||
int | buckets[NBUCKETS], | |||
int | pass | |||
) | [static] |
const { ... } [static] |
class_name = "dnxhd" |
const AVCodecDefault dnxhd_defaults[] [static] |
Initial value:
{ .name = "dnxhd", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_DNXHD, .priv_data_size = sizeof(DNXHDEncContext), .init = dnxhd_encode_init, .encode2 = dnxhd_encode_picture, .close = dnxhd_encode_end, .capabilities = CODEC_CAP_SLICE_THREADS, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV422P, PIX_FMT_YUV422P10, PIX_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), .priv_class = &class, .defaults = dnxhd_defaults, }
Definition at line 1015 of file dnxhdenc.c.
item_name = av_default_item_name |
Definition at line 47 of file dnxhdenc.c.
Initial value:
{ {"nitris_compat", "encode with Avid Nitris compatibility", 0x42, AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, VE}, {NULL} }
Definition at line 40 of file dnxhdenc.c.
Definition at line 49 of file dnxhdenc.c.
Referenced by adpcm_compress_trellis(), aiff_read_header(), celt_header(), decode_frame(), decode_frame_header(), decode_init(), dvbsub_parse_clut_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), ff_mov_read_stsd_entries(), get_packet_header(), init(), libcelt_dec_init(), mov_read_chpl(), mov_read_elst(), mov_read_mdhd(), mov_read_mvhd(), mov_read_sbgp(), mov_read_tkhd(), mov_write_audio_tag(), mov_write_edts_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_tkhd_tag(), mxf_write_identification(), read_header(), read_tfra(), rm_read_audio_stream_info(), smjpeg_read_header(), spdif_header_mpeg(), swf_write_header(), txd_decode_frame(), vble_decode_frame(), voc_probe(), voc_write_header(), and xwd_decode_frame().