FFmpeg
|
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "fdctdsp.h"
#include "put_bits.h"
#include "bytestream.h"
#include "internal.h"
#include "proresdata.h"
Go to the source code of this file.
Data Structures | |
struct | prores_profile |
struct | TrellisNode |
struct | ProresThreadData |
struct | ProresContext |
Macros | |
#define | CFACTOR_Y422 2 |
#define | CFACTOR_Y444 3 |
#define | MAX_MBS_PER_SLICE 8 |
#define | MAX_PLANES 4 |
#define | NUM_MB_LIMITS 4 |
#define | TRELLIS_WIDTH 16 |
#define | SCORE_LIMIT INT_MAX / 2 |
#define | MAX_STORED_Q 16 |
#define | GET_SIGN(x) ((x) >> 31) |
#define | MAKE_CODE(x) ((((x)) * 2) ^ GET_SIGN(x)) |
#define | OFFSET(x) offsetof(ProresContext, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Enumerations | |
enum | { PRORES_PROFILE_AUTO = -1, PRORES_PROFILE_PROXY = 0, PRORES_PROFILE_LT, PRORES_PROFILE_STANDARD, PRORES_PROFILE_HQ, PRORES_PROFILE_4444, PRORES_PROFILE_4444XQ } |
enum | { QUANT_MAT_PROXY = 0, QUANT_MAT_PROXY_CHROMA, QUANT_MAT_LT, QUANT_MAT_STANDARD, QUANT_MAT_HQ, QUANT_MAT_XQ_LUMA, QUANT_MAT_DEFAULT } |
Functions | |
static void | get_slice_data (ProresContext *ctx, const uint16_t *src, ptrdiff_t linesize, int x, int y, int w, int h, int16_t *blocks, uint16_t *emu_buf, int mbs_per_slice, int blocks_per_mb, int is_chroma) |
static void | get_alpha_data (ProresContext *ctx, const uint16_t *src, ptrdiff_t linesize, int x, int y, int w, int h, int16_t *blocks, int mbs_per_slice, int abits) |
static void | encode_vlc_codeword (PutBitContext *pb, unsigned codebook, int val) |
Write an unsigned rice/exp golomb codeword. More... | |
static void | encode_dcs (PutBitContext *pb, int16_t *blocks, int blocks_per_slice, int scale) |
static void | encode_acs (PutBitContext *pb, int16_t *blocks, int blocks_per_slice, int plane_size_factor, const uint8_t *scan, const int16_t *qmat) |
static int | encode_slice_plane (ProresContext *ctx, PutBitContext *pb, const uint16_t *src, ptrdiff_t linesize, int mbs_per_slice, int16_t *blocks, int blocks_per_mb, int plane_size_factor, const int16_t *qmat) |
static void | put_alpha_diff (PutBitContext *pb, int cur, int prev, int abits) |
static void | put_alpha_run (PutBitContext *pb, int run) |
static int | encode_alpha_plane (ProresContext *ctx, PutBitContext *pb, int mbs_per_slice, uint16_t *blocks, int quant) |
static int | encode_slice (AVCodecContext *avctx, const AVFrame *pic, PutBitContext *pb, int sizes[4], int x, int y, int quant, int mbs_per_slice) |
static int | estimate_vlc (unsigned codebook, int val) |
static int | estimate_dcs (int *error, int16_t *blocks, int blocks_per_slice, int scale) |
static int | estimate_acs (int *error, int16_t *blocks, int blocks_per_slice, int plane_size_factor, const uint8_t *scan, const int16_t *qmat) |
static int | estimate_slice_plane (ProresContext *ctx, int *error, int plane, const uint16_t *src, ptrdiff_t linesize, int mbs_per_slice, int blocks_per_mb, int plane_size_factor, const int16_t *qmat, ProresThreadData *td) |
static int | est_alpha_diff (int cur, int prev, int abits) |
static int | estimate_alpha_plane (ProresContext *ctx, const uint16_t *src, ptrdiff_t linesize, int mbs_per_slice, int16_t *blocks) |
static int | find_slice_quant (AVCodecContext *avctx, int trellis_node, int x, int y, int mbs_per_slice, ProresThreadData *td) |
static int | find_quant_thread (AVCodecContext *avctx, void *arg, int jobnr, int threadnr) |
static int | encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet) |
static av_cold int | encode_close (AVCodecContext *avctx) |
static void | prores_fdct (FDCTDSPContext *fdsp, const uint16_t *src, ptrdiff_t linesize, int16_t *block) |
static av_cold int | encode_init (AVCodecContext *avctx) |
Variables | |
static const uint8_t | prores_quant_matrices [][64] |
static const int | prores_mb_limits [NUM_MB_LIMITS] |
static const struct prores_profile | prores_profile_info [6] |
static const AVOption | options [] |
static const AVClass | proresenc_class |
AVCodec | ff_prores_ks_encoder |
#define CFACTOR_Y422 2 |
Definition at line 35 of file proresenc_kostya.c.
Referenced by encode_init().
#define CFACTOR_Y444 3 |
Definition at line 36 of file proresenc_kostya.c.
Referenced by encode_init(), encode_slice(), and find_slice_quant().
#define MAX_MBS_PER_SLICE 8 |
Definition at line 38 of file proresenc_kostya.c.
#define MAX_PLANES 4 |
Definition at line 40 of file proresenc_kostya.c.
Referenced by find_slice_quant().
#define NUM_MB_LIMITS 4 |
Definition at line 135 of file proresenc_kostya.c.
Referenced by encode_init().
#define TRELLIS_WIDTH 16 |
Definition at line 208 of file proresenc_kostya.c.
Referenced by encode_init(), find_quant_thread(), and find_slice_quant().
#define SCORE_LIMIT INT_MAX / 2 |
Definition at line 209 of file proresenc_kostya.c.
Referenced by find_slice_quant().
#define MAX_STORED_Q 16 |
Definition at line 218 of file proresenc_kostya.c.
Referenced by encode_init(), encode_slice(), and find_slice_quant().
#define GET_SIGN | ( | x | ) | ((x) >> 31) |
Definition at line 400 of file proresenc_kostya.c.
Referenced by encode_acs(), encode_dcs(), and estimate_dcs().
#define MAKE_CODE | ( | x | ) | ((((x)) * 2) ^ GET_SIGN(x)) |
Definition at line 401 of file proresenc_kostya.c.
Referenced by encode_dcs(), and estimate_dcs().
#define OFFSET | ( | x | ) | offsetof(ProresContext, x) |
Definition at line 1366 of file proresenc_kostya.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 1367 of file proresenc_kostya.c.
anonymous enum |
Enumerator | |
---|---|
PRORES_PROFILE_AUTO | |
PRORES_PROFILE_PROXY | |
PRORES_PROFILE_LT | |
PRORES_PROFILE_STANDARD | |
PRORES_PROFILE_HQ | |
PRORES_PROFILE_4444 | |
PRORES_PROFILE_4444XQ |
Definition at line 42 of file proresenc_kostya.c.
anonymous enum |
Enumerator | |
---|---|
QUANT_MAT_PROXY | |
QUANT_MAT_PROXY_CHROMA | |
QUANT_MAT_LT | |
QUANT_MAT_STANDARD | |
QUANT_MAT_HQ | |
QUANT_MAT_XQ_LUMA | |
QUANT_MAT_DEFAULT |
Definition at line 52 of file proresenc_kostya.c.
|
static |
Definition at line 269 of file proresenc_kostya.c.
Referenced by encode_slice(), and find_slice_quant().
|
static |
Definition at line 340 of file proresenc_kostya.c.
Referenced by encode_slice(), and find_slice_quant().
|
inlinestatic |
Write an unsigned rice/exp golomb codeword.
Definition at line 371 of file proresenc_kostya.c.
Referenced by encode_acs(), and encode_dcs().
|
static |
Definition at line 403 of file proresenc_kostya.c.
Referenced by encode_slice_plane().
|
static |
Definition at line 429 of file proresenc_kostya.c.
Referenced by encode_slice_plane().
|
static |
Definition at line 463 of file proresenc_kostya.c.
Referenced by encode_slice().
|
static |
Definition at line 482 of file proresenc_kostya.c.
Referenced by encode_alpha_plane().
|
static |
Definition at line 501 of file proresenc_kostya.c.
Referenced by encode_alpha_plane().
|
static |
Definition at line 515 of file proresenc_kostya.c.
Referenced by encode_slice().
|
static |
Definition at line 547 of file proresenc_kostya.c.
Referenced by encode_frame().
Definition at line 637 of file proresenc_kostya.c.
Referenced by estimate_acs(), and estimate_dcs().
Definition at line 659 of file proresenc_kostya.c.
Referenced by estimate_slice_plane().
|
static |
Definition at line 690 of file proresenc_kostya.c.
Referenced by estimate_slice_plane().
|
static |
Definition at line 726 of file proresenc_kostya.c.
Referenced by find_slice_quant().
Definition at line 744 of file proresenc_kostya.c.
Referenced by estimate_alpha_plane().
|
static |
Definition at line 759 of file proresenc_kostya.c.
Referenced by find_slice_quant().
|
static |
Definition at line 801 of file proresenc_kostya.c.
Referenced by find_quant_thread().
|
static |
Definition at line 970 of file proresenc_kostya.c.
Referenced by encode_frame().
|
static |
Definition at line 994 of file proresenc_kostya.c.
|
static |
Definition at line 1155 of file proresenc_kostya.c.
Referenced by encode_init().
|
static |
Definition at line 1170 of file proresenc_kostya.c.
Referenced by encode_init().
|
static |
Definition at line 1184 of file proresenc_kostya.c.
|
static |
Definition at line 62 of file proresenc_kostya.c.
Referenced by encode_init().
|
static |
Definition at line 136 of file proresenc_kostya.c.
Referenced by encode_init().
|
static |
Referenced by encode_init().
|
static |
Definition at line 1369 of file proresenc_kostya.c.
|
static |
Definition at line 1412 of file proresenc_kostya.c.
AVCodec ff_prores_ks_encoder |
Definition at line 1419 of file proresenc_kostya.c.