utvideoenc.c File Reference

Ut Video encoder. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
#include "bytestream.h"
#include "put_bits.h"
#include "dsputil.h"
#include "mathops.h"
#include "utvideo.h"
#include "huffman.h"
Include dependency graph for utvideoenc.c:

Go to the source code of this file.

Functions

static int huff_cmp_sym (const void *a, const void *b)
 
static av_cold int utvideo_encode_close (AVCodecContext *avctx)
 
static av_cold int utvideo_encode_init (AVCodecContext *avctx)
 
static void mangle_rgb_planes (uint8_t *dst[4], int dst_stride, uint8_t *src, int step, int stride, int width, int height)
 
static void write_plane (uint8_t *src, uint8_t *dst, int stride, int width, int height)
 
static void left_predict (uint8_t *src, uint8_t *dst, int stride, int width, int height)
 
static void median_predict (UtvideoContext *c, uint8_t *src, uint8_t *dst, int stride, int width, int height)
 
static void count_usage (uint8_t *src, int width, int height, uint64_t *counts)
 
static void calculate_codes (HuffEntry *he)
 
static int write_huff_codes (uint8_t *src, uint8_t *dst, int dst_size, int width, int height, HuffEntry *he)
 
static int encode_plane (AVCodecContext *avctx, uint8_t *src, uint8_t *dst, int stride, int width, int height, PutByteContext *pb)
 
static int utvideo_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet)
 

Variables

AVCodec ff_utvideo_encoder
 

Detailed Description

Ut Video encoder.

Definition in file utvideoenc.c.

Function Documentation

static void calculate_codes ( HuffEntry he)
static

Definition at line 313 of file utvideoenc.c.

Referenced by encode_plane().

static void count_usage ( uint8_t src,
int  width,
int  height,
uint64_t *  counts 
)
static

Definition at line 299 of file utvideoenc.c.

Referenced by encode_plane().

static int encode_plane ( AVCodecContext avctx,
uint8_t src,
uint8_t dst,
int  stride,
int  width,
int  height,
PutByteContext pb 
)
static

Definition at line 366 of file utvideoenc.c.

Referenced by utvideo_encode_frame().

static int huff_cmp_sym ( const void a,
const void b 
)
static

Definition at line 38 of file utvideoenc.c.

Referenced by calculate_codes().

static void left_predict ( uint8_t src,
uint8_t dst,
int  stride,
int  width,
int  height 
)
static

Definition at line 248 of file utvideoenc.c.

Referenced by encode_plane().

static void mangle_rgb_planes ( uint8_t dst[4],
int  dst_stride,
uint8_t src,
int  step,
int  stride,
int  width,
int  height 
)
static

Definition at line 200 of file utvideoenc.c.

Referenced by utvideo_encode_frame().

static void median_predict ( UtvideoContext c,
uint8_t src,
uint8_t dst,
int  stride,
int  width,
int  height 
)
static

Definition at line 265 of file utvideoenc.c.

Referenced by encode_plane().

static av_cold int utvideo_encode_close ( AVCodecContext avctx)
static

Definition at line 44 of file utvideoenc.c.

Referenced by utvideo_encode_init().

static int utvideo_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pic,
int *  got_packet 
)
static

Definition at line 504 of file utvideoenc.c.

static av_cold int utvideo_encode_init ( AVCodecContext avctx)
static

Definition at line 57 of file utvideoenc.c.

static int write_huff_codes ( uint8_t src,
uint8_t dst,
int  dst_size,
int  width,
int  height,
HuffEntry he 
)
static

Definition at line 334 of file utvideoenc.c.

Referenced by encode_plane().

static void write_plane ( uint8_t src,
uint8_t dst,
int  stride,
int  width,
int  height 
)
static

Definition at line 234 of file utvideoenc.c.

Referenced by encode_plane().

Variable Documentation

AVCodec ff_utvideo_encoder
Initial value:
= {
.name = "utvideo",
.priv_data_size = sizeof(UtvideoContext),
.pix_fmts = (const enum AVPixelFormat[]) {
},
.long_name = NULL_IF_CONFIG_SMALL("Ut Video"),
}
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:70
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int utvideo_encode_init(AVCodecContext *avctx)
Definition: utvideoenc.c:57
static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet)
Definition: utvideoenc.c:504
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:97
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:72
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:68
struct UtvideoContext UtvideoContext
AVPixelFormat
Pixel format.
Definition: pixfmt.h:66
static av_cold int utvideo_encode_close(AVCodecContext *avctx)
Definition: utvideoenc.c:44

Definition at line 609 of file utvideoenc.c.