#include "avcodec.h"
#include "internal.h"
#include "get_bits.h"
#include "put_bits.h"
#include "dsputil.h"
#include "rangecoder.h"
#include "golomb.h"
#include "mathops.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avassert.h"
#include "libavutil/crc.h"
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "libavutil/timer.h"
Go to the source code of this file.
Definition in file ffv1.c.
#define CONTEXT_SIZE 32 |
#define MAX_PLANES 4 |
#define MAX_QUANT_TABLES 8 |
#define put_rac | ( | C, | |||
S, | |||||
B | ) |
Value:
Referenced by encode_header(), encode_q_branch(), encode_q_branch2(), encode_subband_c0run(), put_rac(), put_symbol(), put_symbol2(), and put_symbol_inline().
static int allocate_initial_states | ( | FFV1Context * | f | ) | [static] |
static void clear_slice_state | ( | FFV1Context * | f, | |
FFV1Context * | fs | |||
) | [static] |
static av_cold int common_end | ( | AVCodecContext * | avctx | ) | [static] |
static av_cold int common_init | ( | AVCodecContext * | avctx | ) | [static] |
static int decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static av_always_inline void decode_line | ( | FFV1Context * | s, | |
int | w, | |||
int16_t * | sample[2], | |||
int | plane_index, | |||
int | bits | |||
) | [static] |
static void decode_rgb_frame | ( | FFV1Context * | s, | |
uint8_t * | src[3], | |||
int | w, | |||
int | h, | |||
int | stride[3] | |||
) | [static] |
static int decode_slice | ( | AVCodecContext * | c, | |
void * | arg | |||
) | [static] |
static int decode_slice_header | ( | FFV1Context * | f, | |
FFV1Context * | fs | |||
) | [static] |
static int get_context | ( | PlaneContext * | p, | |
int16_t * | src, | |||
int16_t * | last, | |||
int16_t * | last2 | |||
) | [inline, static] |
static av_noinline int get_symbol | ( | RangeCoder * | c, | |
uint8_t * | state, | |||
int | is_signed | |||
) | [static] |
Definition at line 371 of file ffv1.c.
Referenced by decode_header(), decode_q_branch(), decode_qlogs(), decode_slice_header(), read_extra_header(), read_header(), and read_quant_table().
static av_flatten int get_symbol_inline | ( | RangeCoder * | c, | |
uint8_t * | state, | |||
int | is_signed | |||
) | [inline, static] |
static int get_vlc_symbol | ( | GetBitContext * | gb, | |
VlcState *const | state, | |||
int | bits | |||
) | [inline, static] |
static av_cold int init_slice_contexts | ( | FFV1Context * | f | ) | [static] |
static int init_slice_state | ( | FFV1Context * | f, | |
FFV1Context * | fs | |||
) | [static] |
static int init_slices_state | ( | FFV1Context * | f | ) | [static] |
static av_noinline void put_symbol | ( | RangeCoder * | c, | |
uint8_t * | state, | |||
int | v, | |||
int | is_signed | |||
) | [static] |
Definition at line 347 of file ffv1.c.
Referenced by encode_header(), encode_q_branch(), encode_q_branch2(), and encode_qlogs().
static void put_vlc_symbol | ( | PutBitContext * | pb, | |
VlcState *const | state, | |||
int | v, | |||
int | bits | |||
) | [inline, static] |
static int read_extra_header | ( | FFV1Context * | f | ) | [static] |
static int read_header | ( | FFV1Context * | f | ) | [static] |
Definition at line 1841 of file ffv1.c.
Referenced by decode_frame(), mjpegb_decode_frame(), and shorten_decode_frame().
static int read_quant_table | ( | RangeCoder * | c, | |
int16_t * | quant_table, | |||
int | scale | |||
) | [static] |
static int read_quant_tables | ( | RangeCoder * | c, | |
int16_t | quant_table[MAX_CONTEXT_INPUTS][256] | |||
) | [static] |
Initial value:
{ .name = "ffv1", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_FFV1, .priv_data_size = sizeof(FFV1Context), .init = decode_init, .close = common_end, .decode = decode_frame, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_SLICE_THREADS, .long_name = NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"), }
const uint8_t ff_log2_run[41] |
Definition at line 36 of file bitstream.c.
const int8_t quant11[256] [static] |
Initial value:
{ 0, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4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}
const uint8_t ver2_state[256] [static] |
Initial value:
{ 0, 10, 10, 10, 10, 16, 16, 16, 28, 16, 16, 29, 42, 49, 20, 49, 59, 25, 26, 26, 27, 31, 33, 33, 33, 34, 34, 37, 67, 38, 39, 39, 40, 40, 41, 79, 43, 44, 45, 45, 48, 48, 64, 50, 51, 52, 88, 52, 53, 74, 55, 57, 58, 58, 74, 60, 101, 61, 62, 84, 66, 66, 68, 69, 87, 82, 71, 97, 73, 73, 82, 75, 111, 77, 94, 78, 87, 81, 83, 97, 85, 83, 94, 86, 99, 89, 90, 99, 111, 92, 93, 134, 95, 98, 105, 98, 105, 110, 102, 108, 102, 118, 103, 106, 106, 113, 109, 112, 114, 112, 116, 125, 115, 116, 117, 117, 126, 119, 125, 121, 121, 123, 145, 124, 126, 131, 127, 129, 165, 130, 132, 138, 133, 135, 145, 136, 137, 139, 146, 141, 143, 142, 144, 148, 147, 155, 151, 149, 151, 150, 152, 157, 153, 154, 156, 168, 158, 162, 161, 160, 172, 163, 169, 164, 166, 184, 167, 170, 177, 174, 171, 173, 182, 176, 180, 178, 175, 189, 179, 181, 186, 183, 192, 185, 200, 187, 191, 188, 190, 197, 193, 196, 197, 194, 195, 196, 198, 202, 199, 201, 210, 203, 207, 204, 205, 206, 208, 214, 209, 211, 221, 212, 213, 215, 224, 216, 217, 218, 219, 220, 222, 228, 223, 225, 226, 224, 227, 229, 240, 230, 231, 232, 233, 234, 235, 236, 238, 239, 237, 242, 241, 243, 242, 244, 245, 246, 247, 248, 249, 250, 251, 252, 252, 253, 254, 255, }