FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
utvideoenc.c File Reference

Ut Video encoder. More...

#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
#include "bswapdsp.h"
#include "bytestream.h"
#include "put_bits.h"
#include "huffyuvencdsp.h"
#include "mathops.h"
#include "utvideo.h"
#include "huffman.h"

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 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 plane_no, 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 int huff_cmp_sym ( const void a,
const void b 
)
static

Definition at line 40 of file utvideoenc.c.

Referenced by calculate_codes().

static av_cold int utvideo_encode_close ( AVCodecContext avctx)
static

Definition at line 46 of file utvideoenc.c.

Referenced by utvideo_encode_init().

static av_cold int utvideo_encode_init ( AVCodecContext avctx)
static

Definition at line 59 of file utvideoenc.c.

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 239 of file utvideoenc.c.

Referenced by utvideo_encode_frame().

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

Definition at line 273 of file utvideoenc.c.

Referenced by encode_plane().

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

Definition at line 290 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 324 of file utvideoenc.c.

Referenced by encode_plane().

static void calculate_codes ( HuffEntry he)
static

Definition at line 338 of file utvideoenc.c.

Referenced by encode_plane().

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

Definition at line 359 of file utvideoenc.c.

Referenced by encode_plane().

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

Definition at line 391 of file utvideoenc.c.

Referenced by utvideo_encode_frame().

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

Definition at line 533 of file utvideoenc.c.

Variable Documentation

AVCodec ff_utvideo_encoder
Initial value:
= {
.name = "utvideo",
.long_name = NULL_IF_CONFIG_SMALL("Ut Video"),
.priv_data_size = sizeof(UtvideoContext),
.pix_fmts = (const enum AVPixelFormat[]) {
},
}

Definition at line 637 of file utvideoenc.c.