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

Known FOURCCs: 'ULY0' (YCbCr 4:2:0), 'ULY2' (YCbCr 4:2:2), 'ULRG' (RGB), 'ULRA' (RGBA), 'ULH0' (YCbCr 4:2:0 BT.709), 'ULH2' (YCbCr 4:2:2 BT.709) More...

#include "libavutil/opt.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "internal.h"
#include "libutvideo.h"
#include "put_bits.h"

Go to the source code of this file.

Macros

#define OFFSET(x)   offsetof(UtVideoContext, x)
 
#define VE   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 

Functions

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

Variables

static const AVOption options []
 
static const AVClass utvideo_class
 
AVCodec ff_libutvideo_encoder
 

Detailed Description

Known FOURCCs: 'ULY0' (YCbCr 4:2:0), 'ULY2' (YCbCr 4:2:2), 'ULRG' (RGB), 'ULRA' (RGBA), 'ULH0' (YCbCr 4:2:0 BT.709), 'ULH2' (YCbCr 4:2:2 BT.709)

Definition in file libutvideoenc.cpp.

Macro Definition Documentation

#define OFFSET (   x)    offsetof(UtVideoContext, x)

Definition at line 229 of file libutvideoenc.cpp.

Definition at line 230 of file libutvideoenc.cpp.

Function Documentation

static av_cold int utvideo_encode_init ( AVCodecContext avctx)
static

Definition at line 39 of file libutvideoenc.cpp.

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

Definition at line 144 of file libutvideoenc.cpp.

static av_cold int utvideo_encode_close ( AVCodecContext avctx)
static

Definition at line 216 of file libutvideoenc.cpp.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "pred", "Prediction method", OFFSET(pred), AV_OPT_TYPE_INT, 0, 0, 2, VE, "pred" },
{ "left", NULL, 0, AV_OPT_TYPE_CONST, 0, INT_MIN, INT_MAX, VE, "pred" },
{ "median", NULL, 0, AV_OPT_TYPE_CONST, 2, INT_MIN, INT_MAX, VE, "pred" },
{ NULL },
}
#define NULL
Definition: coverity.c:32
static const float pred[4]
Definition: siprdata.h:259
#define VE
#define OFFSET(x)

Definition at line 231 of file libutvideoenc.cpp.

const AVClass utvideo_class
static
Initial value:
= {
"libutvideo",
0,
0,
}
#define NULL
Definition: coverity.c:32
#define LIBAVUTIL_VERSION_INT
Definition: version.h:70
av_default_item_name
static const AVOption options[]

Definition at line 238 of file libutvideoenc.cpp.

AVCodec ff_libutvideo_encoder
Initial value:
= {
"libutvideo",
NULL_IF_CONFIG_SMALL("Ut Video"),
NULL,
(const enum AVPixelFormat[]) {
},
NULL,
NULL,
NULL,
0,
NULL,
sizeof(UtVideoContext),
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
#define NULL
Definition: coverity.c:32
static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet)
#define AV_CODEC_CAP_AUTO_THREADS
Codec supports avctx->thread_count == 0 (auto).
Definition: avcodec.h:1028
static av_cold int utvideo_encode_init(AVCodecContext *avctx)
#define AV_CODEC_CAP_INTRA_ONLY
Codec is intra only.
Definition: avcodec.h:1036
static const AVClass utvideo_class
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:65
#define AV_PIX_FMT_RGB32
Definition: pixfmt.h:315
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Definition: pixfmt.h:63
static av_cold int utvideo_encode_close(AVCodecContext *avctx)
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:62
#define AV_CODEC_CAP_LOSSLESS
Codec is lossless.
Definition: avcodec.h:1040
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60

Definition at line 252 of file libutvideoenc.cpp.