|
FFmpeg
|
huffyuv encoder More...
#include "config_components.h"#include "avcodec.h"#include "bswapdsp.h"#include "codec_internal.h"#include "encode.h"#include "huffyuv.h"#include "huffman.h"#include "huffyuvencdsp.h"#include "lossless_videoencdsp.h"#include "put_bits.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"Go to the source code of this file.
Data Structures | |
| struct | HYuvEncContext |
Macros | |
| #define | STATS_OUT_SIZE 21*MAX_N*3 + 4 |
| #define | LOAD4 |
| #define | LOADEND int y0 = s->temp[0][width-1]; |
| #define | LOADEND_14 int y0 = s->temp16[0][width-1] & mask; |
| #define | LOADEND_16 int y0 = s->temp16[0][width-1]; |
| #define | STATEND s->stats[plane][y0]++; |
| #define | STATEND_16 s->stats[plane][y0>>2]++; |
| #define | WRITEEND put_bits(&s->pb, s->len[plane][y0], s->bits[plane][y0]); |
| #define | WRITEEND_16 |
| #define | LOAD2 |
| #define | LOAD2_14 |
| #define | LOAD2_16 |
| #define | STAT2 |
| #define | STAT2_16 |
| #define | WRITE2 |
| #define | WRITE2_16 |
| #define | ENCODE_PLANE(LOAD, LOADEND, WRITE, WRITEEND, STAT, STATEND) |
| #define | LOAD2 |
| #define | STAT2 |
| #define | WRITE2 |
| #define | LOAD_GBRA |
| #define | STAT_BGRA |
| #define | WRITE_GBRA |
| #define | OFFSET(x) |
| #define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
| static void | diff_bytes (HYuvEncContext *s, uint8_t *dst, const uint8_t *src0, const uint8_t *src1, int w) |
| static int | sub_left_prediction (HYuvEncContext *s, uint8_t *dst, const uint8_t *src, int w, int left) |
| static void | sub_left_prediction_bgr32 (HYuvEncContext *s, uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue, int *alpha) |
| static void | sub_left_prediction_rgb24 (HYuvEncContext *s, uint8_t *dst, const uint8_t *src, int w, int *red, int *green, int *blue) |
| static void | sub_median_prediction (HYuvEncContext *s, uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int w, int *left, int *left_top) |
| static int | store_table (HYuvEncContext *s, const uint8_t *len, uint8_t *buf) |
| static int | store_huffman_tables (HYuvEncContext *s, uint8_t *buf) |
| static av_cold int | encode_init (AVCodecContext *avctx) |
| static int | encode_422_bitstream (HYuvEncContext *s, int offset, int count) |
| static int | encode_plane_bitstream (HYuvEncContext *s, int width, int plane) |
| static int | encode_gray_bitstream (HYuvEncContext *s, int count) |
| static int | encode_bgra_bitstream (HYuvEncContext *s, int count, int planes) |
| static int | encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet) |
| static av_cold int | encode_end (AVCodecContext *avctx) |
Variables | |
| static const AVOption | options [] |
| static const AVClass | normal_class |
| const FFCodec | ff_huffyuv_encoder |
huffyuv encoder
Definition in file huffyuvenc.c.
| #define STATS_OUT_SIZE 21*MAX_N*3 + 4 |
| #define LOAD4 |
Referenced by encode_422_bitstream().
Referenced by encode_plane_bitstream().
Referenced by encode_plane_bitstream().
Referenced by encode_plane_bitstream().
Referenced by encode_plane_bitstream().
Referenced by encode_plane_bitstream().
Referenced by encode_plane_bitstream().
| #define WRITEEND_16 |
Referenced by encode_plane_bitstream().
| #define LOAD2 |
Referenced by encode_gray_bitstream(), and encode_plane_bitstream().
| #define LOAD2_14 |
| #define LOAD2_16 |
Referenced by encode_plane_bitstream().
| #define STAT2 |
Referenced by encode_gray_bitstream(), and encode_plane_bitstream().
| #define STAT2_16 |
Referenced by encode_plane_bitstream().
| #define WRITE2 |
Referenced by encode_gray_bitstream(), and encode_plane_bitstream().
| #define WRITE2_16 |
Referenced by encode_plane_bitstream().
| #define WRITE2 |
| #define LOAD_GBRA |
Referenced by encode_bgra_bitstream().
| #define STAT_BGRA |
| #define WRITE_GBRA |
| #define OFFSET | ( | x | ) |
Definition at line 990 of file huffyuvenc.c.
| #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 991 of file huffyuvenc.c.
|
inlinestatic |
Definition at line 81 of file huffyuvenc.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 91 of file huffyuvenc.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 122 of file huffyuvenc.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 158 of file huffyuvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 186 of file huffyuvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 198 of file huffyuvenc.c.
Referenced by store_huffman_tables().
|
static |
Definition at line 223 of file huffyuvenc.c.
Referenced by encode_frame(), and encode_init().
|
static |
Definition at line 245 of file huffyuvenc.c.
|
static |
Definition at line 447 of file huffyuvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 502 of file huffyuvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 604 of file huffyuvenc.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 649 of file huffyuvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 699 of file huffyuvenc.c.
|
static |
Definition at line 978 of file huffyuvenc.c.
Referenced by vulkan_encode_issue().
|
static |
Definition at line 993 of file huffyuvenc.c.
|
static |
Definition at line 1007 of file huffyuvenc.c.
| const FFCodec ff_huffyuv_encoder |
Definition at line 1014 of file huffyuvenc.c.