#include <stdlib.h>
#include <string.h>
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/qsort.h"
#include "avcodec.h"
#include "bytestream.h"
#include "put_bits.h"
#include "internal.h"
#include "thread.h"
#include "lossless_videoencdsp.h"
Go to the source code of this file.
|
static void | left_predict (MagicYUVContext *s, uint8_t *src, uint8_t *dst, ptrdiff_t stride, int width, int height) |
|
static void | gradient_predict (MagicYUVContext *s, uint8_t *src, uint8_t *dst, ptrdiff_t stride, int width, int height) |
|
static void | median_predict (MagicYUVContext *s, uint8_t *src, uint8_t *dst, ptrdiff_t stride, int width, int height) |
|
static av_cold int | magy_encode_init (AVCodecContext *avctx) |
|
static int | magy_huff_cmp_len (const void *a, const void *b) |
|
static int | huff_cmp_sym (const void *a, const void *b) |
|
static void | calculate_codes (HuffEntry *he) |
|
static void | count_usage (uint8_t *src, int width, int height, PTable *counts) |
|
static int | compare_by_prob (const void *a, const void *b) |
|
static void | magy_huffman_compute_bits (PTable *prob_table, HuffEntry *distincts, int size, int max_length) |
|
static int | encode_table (AVCodecContext *avctx, uint8_t *dst, int width, int height, PutBitContext *pb, HuffEntry *he) |
|
static int | encode_slice (uint8_t *src, uint8_t *dst, int dst_size, int width, int height, HuffEntry *he, int prediction) |
|
static int | magy_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
|
static av_cold int | magy_encode_close (AVCodecContext *avctx) |
|
◆ OFFSET
◆ VE
◆ Prediction
Enumerator |
---|
LEFT | |
GRADIENT | |
MEDIAN | |
LEFT | |
GRADIENT | |
MEDIAN | |
Definition at line 36 of file magicyuvenc.c.
◆ left_predict()
◆ gradient_predict()
◆ median_predict()
◆ magy_encode_init()
◆ magy_huff_cmp_len()
static int magy_huff_cmp_len |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
|
static |
◆ huff_cmp_sym()
static int huff_cmp_sym |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
|
static |
◆ calculate_codes()
static void calculate_codes |
( |
HuffEntry * |
he | ) |
|
|
static |
◆ count_usage()
◆ compare_by_prob()
static int compare_by_prob |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
|
static |
◆ magy_huffman_compute_bits()
static void magy_huffman_compute_bits |
( |
PTable * |
prob_table, |
|
|
HuffEntry * |
distincts, |
|
|
int |
size, |
|
|
int |
max_length |
|
) |
| |
|
static |
◆ encode_table()
◆ encode_slice()
◆ magy_encode_frame()
◆ magy_encode_close()
◆ options
◆ magicyuv_class
Initial value:= {
.class_name = "magicyuv",
}
Definition at line 567 of file magicyuvenc.c.
◆ ff_magicyuv_encoder
Initial value:= {
.name = "magicyuv",
},
}
Definition at line 574 of file magicyuvenc.c.