FFmpeg
|
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/emms.h"
#include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "dv.h"
#include "dv_internal.h"
#include "dv_profile_internal.h"
#include "dv_tablegen.h"
#include "encode.h"
#include "fdctdsp.h"
#include "mathops.h"
#include "me_cmp.h"
#include "pixblockdsp.h"
#include "put_bits.h"
Go to the source code of this file.
Data Structures | |
struct | DVEncContext |
struct | EncBlockInfo |
Macros | |
#define | DV100_SACRIFICE_QUALITY_FOR_SPEED 1 |
#define | DV100_ENABLE_FINER 1 |
#define | DV100_MAKE_QLEVEL(qno, cno) ((qno<<2) | (cno)) |
#define | DV100_QLEVEL_QNO(qlevel) (qlevel>>2) |
#define | DV100_QLEVEL_CNO(qlevel) (qlevel&0x3) |
#define | DV100_NUM_QLEVELS 31 |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
#define | OFFSET(x) offsetof(DVEncContext, x) |
Functions | |
static av_cold int | dvvideo_encode_init (AVCodecContext *avctx) |
static av_always_inline int | dv_rl2vlc (int run, int l, int sign, uint32_t *vlc) |
static av_always_inline int | dv_rl2vlc_size (int run, int l) |
static av_always_inline PutBitContext * | dv_encode_ac (EncBlockInfo *bi, PutBitContext *pb_pool, PutBitContext *pb_end) |
static av_always_inline int | dv_guess_dct_mode (DVEncContext *s, const uint8_t *data, ptrdiff_t linesize) |
static av_always_inline int | dv_set_class_number_sd (DVEncContext *s, int16_t *blk, EncBlockInfo *bi, const uint8_t *zigzag_scan, const int *weight, int bias) |
static void | dv_set_class_number_hd (DVEncContext *s, int16_t *blk, EncBlockInfo *bi, const uint8_t *zigzag_scan, const int *weight, int bias) |
static av_always_inline int | dv_init_enc_block (EncBlockInfo *bi, const uint8_t *data, int linesize, DVEncContext *s, int chroma) |
static av_always_inline int | dv100_quantize (int level, int qsinv) |
static int | dv100_actual_quantize (EncBlockInfo *b, int qlevel) |
static void | dv_guess_qnos_hd (EncBlockInfo *blks, int *qnos) |
static void | dv_guess_qnos (EncBlockInfo *blks, int *qnos) |
static void | dv_revise_cnos (uint8_t *dif, EncBlockInfo *blk, const AVDVProfile *profile) |
static int | dv_encode_video_segment (AVCodecContext *avctx, void *arg) |
static int | dv_write_pack (enum DVPackType pack_id, DVEncContext *c, uint8_t *buf) |
static int | dv_write_dif_id (enum DVSectionType t, uint8_t chan_num, uint8_t seq_num, uint8_t dif_num, uint8_t *buf) |
static int | dv_write_ssyb_id (uint8_t syb_num, uint8_t fr, uint8_t *buf) |
static void | dv_format_frame (DVEncContext *c, uint8_t *buf) |
static int | dvvideo_encode_frame (AVCodecContext *c, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
Variables | |
static const int | vs_total_ac_bits_hd = (68 * 6 + 52*2) * 5 |
static const int | vs_total_ac_bits = (100 * 4 + 68 * 2) * 5 |
static const int | mb_area_start [5] = { 1, 6, 21, 43, 64 } |
static const int | dv_weight_bits = 18 |
static const int | dv_weight_88 [64] |
static const int | dv_weight_248 [64] |
static const uint8_t | dv100_qlevels [DV100_NUM_QLEVELS] |
static const int | dv100_min_bias = 0 |
static const int | dv100_chroma_bias = 0 |
static const int | dv100_starting_qno = 1 |
static const int | dv100_qlevel_inc = 4 |
static const int | dv100_qstep_bits = 16 |
static const int | dv100_qstep_inv [16] |
static const int | dv_weight_1080 [2][64] |
static const int | dv_weight_720 [2][64] |
static const AVOption | dv_options [] |
static const AVClass | dvvideo_encode_class |
const FFCodec | ff_dvvideo_encoder |
DV encoder
Definition in file dvenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
#define OFFSET | ( | x | ) | offsetof(DVEncContext, x) |
|
static |
|
static |
Definition at line 174 of file dvenc.c.
Referenced by dv_encode_ac().
|
static |
Definition at line 180 of file dvenc.c.
Referenced by dv100_actual_quantize(), dv_guess_qnos(), and dv_set_class_number_sd().
|
static |
Definition at line 205 of file dvenc.c.
Referenced by dv_encode_video_segment().
|
static |
Definition at line 251 of file dvenc.c.
Referenced by dv_encode_video_segment(), and dv_init_enc_block().
|
static |
Definition at line 399 of file dvenc.c.
Referenced by dv_init_enc_block().
|
inlinestatic |
Definition at line 483 of file dvenc.c.
Referenced by dv_init_enc_block().
|
static |
Definition at line 540 of file dvenc.c.
Referenced by dv_encode_video_segment().
|
static |
Definition at line 591 of file dvenc.c.
Referenced by dv100_actual_quantize().
|
static |
Definition at line 604 of file dvenc.c.
Referenced by dv_guess_qnos_hd().
|
inlinestatic |
Definition at line 642 of file dvenc.c.
Referenced by dv_encode_video_segment().
|
inlinestatic |
Definition at line 784 of file dvenc.c.
Referenced by dv_encode_video_segment().
|
inlinestatic |
Definition at line 858 of file dvenc.c.
Referenced by dv_encode_video_segment().
|
static |
Definition at line 876 of file dvenc.c.
Referenced by dvvideo_encode_frame().
|
inlinestatic |
Definition at line 1026 of file dvenc.c.
Referenced by dv_format_frame().
|
inlinestatic |
Definition at line 1110 of file dvenc.c.
Referenced by dv_format_frame().
|
inlinestatic |
Definition at line 1126 of file dvenc.c.
Referenced by dv_format_frame().
|
static |
Definition at line 1146 of file dvenc.c.
Referenced by dvvideo_encode_frame().
|
static |
|
static |
Definition at line 129 of file dvenc.c.
Referenced by dv_guess_qnos_hd().
|
static |
Definition at line 130 of file dvenc.c.
Referenced by dv_encode_video_segment(), and dv_guess_qnos().
|
static |
Definition at line 131 of file dvenc.c.
Referenced by dv_guess_qnos(), and dv_set_class_number_sd().
|
static |
Definition at line 266 of file dvenc.c.
Referenced by dv_set_class_number_sd().
|
static |
Definition at line 267 of file dvenc.c.
Referenced by dv_init_enc_block().
|
static |
Definition at line 277 of file dvenc.c.
Referenced by dv_init_enc_block().
|
static |
Definition at line 308 of file dvenc.c.
Referenced by dv100_actual_quantize(), and dv_guess_qnos_hd().
|
static |
Definition at line 343 of file dvenc.c.
Referenced by dv_init_enc_block().
|
static |
Definition at line 344 of file dvenc.c.
Referenced by dv_init_enc_block().
|
static |
Definition at line 345 of file dvenc.c.
Referenced by dv_guess_qnos_hd().
|
static |
Definition at line 348 of file dvenc.c.
Referenced by dv_guess_qnos_hd().
|
static |
Definition at line 354 of file dvenc.c.
Referenced by dv100_quantize().
|
static |
Definition at line 355 of file dvenc.c.
Referenced by dv100_actual_quantize().
|
static |
Definition at line 361 of file dvenc.c.
Referenced by dv_init_enc_block().
|
static |
Definition at line 380 of file dvenc.c.
Referenced by dv_init_enc_block().
|
static |
|
static |
const FFCodec ff_dvvideo_encoder |