FFmpeg
|
Apple ProRes encoder (Anatoliy Wasserman version) Known FOURCCs: 'apch' (HQ), 'apcn' (SD), 'apcs' (LT), 'acpo' (Proxy) More...
#include "avcodec.h"
#include "dct.h"
#include "internal.h"
#include "put_bits.h"
#include "bytestream.h"
#include "dsputil.h"
Go to the source code of this file.
Data Structures | |
struct | ProresContext |
Macros | |
#define | DEFAULT_SLICE_MB_WIDTH 8 |
#define | FF_PROFILE_PRORES_PROXY 0 |
#define | FF_PROFILE_PRORES_LT 1 |
#define | FF_PROFILE_PRORES_STANDARD 2 |
#define | FF_PROFILE_PRORES_HQ 3 |
#define | QSCALE(qmat, ind, val) ((val) / (qmat[ind])) |
#define | TO_GOLOMB(val) ((val << 1) ^ (val >> 31)) |
#define | DIFF_SIGN(val, sign) ((val >> 31) ^ sign) |
#define | IS_NEGATIVE(val) (((val >> 31) ^ -1) + 1) |
#define | TO_GOLOMB2(val, sign) (val==0 ? 0 : (val << 1) + sign) |
#define | FIRST_DC_CB 0xB8 |
Functions | |
static void | encode_codeword (PutBitContext *pb, int val, int codebook) |
static av_always_inline int | get_level (int val) |
static void | encode_dc_coeffs (PutBitContext *pb, int16_t *in, int blocks_per_slice, int *qmat) |
static void | encode_ac_coeffs (AVCodecContext *avctx, PutBitContext *pb, int16_t *in, int blocks_per_slice, int *qmat) |
static void | get (uint8_t *pixels, int stride, int16_t *block) |
static void | fdct_get (uint8_t *pixels, int stride, int16_t *block) |
static int | encode_slice_plane (AVCodecContext *avctx, int mb_count, uint8_t *src, int src_stride, uint8_t *buf, unsigned buf_size, int *qmat, int chroma) |
static av_always_inline unsigned | encode_slice_data (AVCodecContext *avctx, uint8_t *dest_y, uint8_t *dest_u, uint8_t *dest_v, int luma_stride, int chroma_stride, unsigned mb_count, uint8_t *buf, unsigned data_size, unsigned *y_data_size, unsigned *u_data_size, unsigned *v_data_size, int qp) |
static void | subimage_with_fill (uint16_t *src, unsigned x, unsigned y, unsigned stride, unsigned width, unsigned height, uint16_t *dst, unsigned dst_width, unsigned dst_height) |
static int | encode_slice (AVCodecContext *avctx, const AVFrame *pic, int mb_x, int mb_y, unsigned mb_count, uint8_t *buf, unsigned data_size, int unsafe, int *qp) |
static int | prores_encode_picture (AVCodecContext *avctx, const AVFrame *pic, uint8_t *buf, const int buf_size) |
static int | prores_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) |
static void | scale_mat (const uint8_t *src, int *dst, int scale) |
static av_cold int | prores_encode_init (AVCodecContext *avctx) |
static av_cold int | prores_encode_close (AVCodecContext *avctx) |
Variables | |
static const AVProfile | profiles [] |
static const int | qp_start_table [4] = { 4, 1, 1, 1 } |
static const int | qp_end_table [4] = { 8, 9, 6, 6 } |
static const int | bitrate_table [5] = { 1000, 2100, 3500, 5400 } |
static const uint8_t | progressive_scan [64] |
static const uint8_t | QMAT_LUMA [4][64] |
static const uint8_t | QMAT_CHROMA [4][64] |
static const uint8_t | dc_codebook [7] = { 0x04, 0x28, 0x28, 0x4D, 0x4D, 0x70, 0x70} |
static const uint8_t | run_to_cb [16] |
static const uint8_t | lev_to_cb [10] |
AVCodec | ff_prores_aw_encoder |
AVCodec | ff_prores_encoder |
Detailed Description
Apple ProRes encoder (Anatoliy Wasserman version) Known FOURCCs: 'apch' (HQ), 'apcn' (SD), 'apcs' (LT), 'acpo' (Proxy)
Definition in file proresenc_anatoliy.c.
Macro Definition Documentation
#define DEFAULT_SLICE_MB_WIDTH 8 |
Definition at line 36 of file proresenc_anatoliy.c.
Referenced by encode_slice_plane(), prores_encode_init(), and prores_encode_picture().
Definition at line 188 of file proresenc_anatoliy.c.
Referenced by encode_dc_coeffs().
#define FF_PROFILE_PRORES_HQ 3 |
Definition at line 41 of file proresenc_anatoliy.c.
Referenced by prores_encode_init().
#define FF_PROFILE_PRORES_LT 1 |
Definition at line 39 of file proresenc_anatoliy.c.
#define FF_PROFILE_PRORES_PROXY 0 |
Definition at line 38 of file proresenc_anatoliy.c.
Referenced by prores_encode_init().
#define FF_PROFILE_PRORES_STANDARD 2 |
Definition at line 40 of file proresenc_anatoliy.c.
Referenced by prores_encode_init().
#define FIRST_DC_CB 0xB8 |
Definition at line 198 of file proresenc_anatoliy.c.
Referenced by encode_dc_coeffs().
Definition at line 189 of file proresenc_anatoliy.c.
Referenced by encode_ac_coeffs().
Definition at line 186 of file proresenc_anatoliy.c.
Referenced by encode_ac_coeffs(), and encode_dc_coeffs().
Definition at line 187 of file proresenc_anatoliy.c.
Referenced by encode_dc_coeffs().
Definition at line 190 of file proresenc_anatoliy.c.
Referenced by encode_dc_coeffs().
Function Documentation
|
static |
Definition at line 233 of file proresenc_anatoliy.c.
Referenced by encode_slice_plane().
|
static |
Definition at line 156 of file proresenc_anatoliy.c.
Referenced by encode_ac_coeffs(), and encode_dc_coeffs().
|
static |
Definition at line 202 of file proresenc_anatoliy.c.
Referenced by encode_slice_plane().
|
static |
Definition at line 371 of file proresenc_anatoliy.c.
Referenced by prores_encode_picture().
|
static |
Definition at line 316 of file proresenc_anatoliy.c.
Referenced by encode_slice().
|
static |
Definition at line 285 of file proresenc_anatoliy.c.
Referenced by encode_slice_data().
Definition at line 279 of file proresenc_anatoliy.c.
Referenced by encode_slice_plane().
Definition at line 264 of file proresenc_anatoliy.c.
|
static |
Definition at line 192 of file proresenc_anatoliy.c.
Referenced by encode_ac_coeffs(), and encode_dc_coeffs().
|
static |
Definition at line 591 of file proresenc_anatoliy.c.
|
static |
Definition at line 489 of file proresenc_anatoliy.c.
|
static |
Definition at line 539 of file proresenc_anatoliy.c.
|
static |
Definition at line 441 of file proresenc_anatoliy.c.
Referenced by prores_encode_frame().
Definition at line 532 of file proresenc_anatoliy.c.
Referenced by prores_encode_init().
|
static |
Definition at line 341 of file proresenc_anatoliy.c.
Referenced by encode_slice().
Variable Documentation
|
static |
Definition at line 53 of file proresenc_anatoliy.c.
Referenced by encode_slice().
|
static |
Definition at line 200 of file proresenc_anatoliy.c.
Referenced by encode_dc_coeffs().
AVCodec ff_prores_aw_encoder |
Definition at line 600 of file proresenc_anatoliy.c.
AVCodec ff_prores_encoder |
Definition at line 614 of file proresenc_anatoliy.c.
|
static |
Definition at line 230 of file proresenc_anatoliy.c.
Referenced by encode_ac_coeffs().
|
static |
Definition at line 43 of file proresenc_anatoliy.c.
|
static |
Definition at line 55 of file proresenc_anatoliy.c.
Referenced by encode_ac_coeffs().
|
static |
Definition at line 106 of file proresenc_anatoliy.c.
Referenced by prores_encode_frame(), and prores_encode_init().
|
static |
Definition at line 66 of file proresenc_anatoliy.c.
Referenced by prores_encode_frame(), and prores_encode_init().
|
static |
Definition at line 52 of file proresenc_anatoliy.c.
Referenced by encode_slice().
|
static |
Definition at line 51 of file proresenc_anatoliy.c.
Referenced by encode_slice(), and prores_encode_picture().
|
static |
Definition at line 228 of file proresenc_anatoliy.c.
Referenced by encode_ac_coeffs().
Generated on Fri Dec 20 2024 06:56:15 for FFmpeg by 1.8.11