|
FFmpeg
|
#include "libavutil/mem.h"#include "libavutil/mem_internal.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"#include "avcodec.h"#include "codec_internal.h"#include "encode.h"#include "fdctdsp.h"#include "put_bits.h"#include "profiles.h"#include "bytestream.h"#include "proresdata.h"#include "proresenc_kostya_common.h"Go to the source code of this file.
Data Structures | |
| struct | TrellisNode |
| struct | ProresThreadData |
Macros | |
| #define | TRELLIS_WIDTH 16 |
| #define | SCORE_LIMIT INT_MAX / 2 |
| #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 |
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, uint16_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, const uint8_t *scan, const int16_t *qmat) |
| static void | 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, 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 void | 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, 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, 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 AVOption | options [] |
| static const AVClass | proresenc_class |
| const FFCodec | ff_prores_ks_encoder |
| #define TRELLIS_WIDTH 16 |
Definition at line 38 of file proresenc_kostya.c.
| #define SCORE_LIMIT INT_MAX / 2 |
Definition at line 39 of file proresenc_kostya.c.
| #define GET_SIGN | ( | x | ) | ((x) >> 31) |
Definition at line 187 of file proresenc_kostya.c.
| #define MAKE_CODE | ( | x | ) | (((x) * 2) ^ GET_SIGN(x)) |
Definition at line 188 of file proresenc_kostya.c.
| #define OFFSET | ( | x | ) | offsetof(ProresContext, x) |
Definition at line 969 of file proresenc_kostya.c.
| #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 970 of file proresenc_kostya.c.
|
static |
Definition at line 56 of file proresenc_kostya.c.
Referenced by encode_slice(), and find_slice_quant().
|
static |
Definition at line 127 of file proresenc_kostya.c.
Referenced by encode_slice(), and find_slice_quant().
|
inlinestatic |
Write an unsigned rice/exp golomb codeword.
Definition at line 158 of file proresenc_kostya.c.
Referenced by encode_acs(), and encode_dcs().
|
static |
Definition at line 190 of file proresenc_kostya.c.
Referenced by encode_slice_plane().
|
static |
Definition at line 214 of file proresenc_kostya.c.
Referenced by encode_slice_plane().
|
static |
Definition at line 244 of file proresenc_kostya.c.
Referenced by encode_slice().
|
static |
Definition at line 256 of file proresenc_kostya.c.
Referenced by encode_alpha_plane().
|
static |
Definition at line 275 of file proresenc_kostya.c.
Referenced by encode_alpha_plane().
|
static |
Definition at line 289 of file proresenc_kostya.c.
Referenced by encode_slice().
|
static |
Definition at line 317 of file proresenc_kostya.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 397 of file proresenc_kostya.c.
Referenced by estimate_acs(), and estimate_dcs().
|
static |
Definition at line 419 of file proresenc_kostya.c.
Referenced by estimate_slice_plane().
|
static |
Definition at line 448 of file proresenc_kostya.c.
Referenced by estimate_slice_plane().
|
static |
Definition at line 482 of file proresenc_kostya.c.
Referenced by find_slice_quant().
|
static |
Definition at line 499 of file proresenc_kostya.c.
Referenced by estimate_alpha_plane().
|
static |
Definition at line 514 of file proresenc_kostya.c.
Referenced by find_slice_quant().
|
static |
Definition at line 556 of file proresenc_kostya.c.
Referenced by find_quant_thread().
|
static |
Definition at line 720 of file proresenc_kostya.c.
Referenced by encode_frame().
|
static |
Definition at line 744 of file proresenc_kostya.c.
|
static |
Definition at line 899 of file proresenc_kostya.c.
|
static |
Definition at line 914 of file proresenc_kostya.c.
Referenced by encode_init().
|
static |
Definition at line 928 of file proresenc_kostya.c.
Definition at line 972 of file proresenc_kostya.c.
|
static |
Definition at line 1015 of file proresenc_kostya.c.
| const FFCodec ff_prores_ks_encoder |
Definition at line 1022 of file proresenc_kostya.c.
1.8.17