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

Dirac encoder support via libschroedinger-1.0 libraries. More...

#include <schroedinger/schro.h>
#include <schroedinger/schrodebug.h>
#include <schroedinger/schrovideoformat.h>
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
#include "libschroedinger.h"
#include "bytestream.h"

Go to the source code of this file.

Data Structures

struct  SchroEncoderParams
 libschroedinger encoder private data More...


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


static int set_chroma_format (AVCodecContext *avctx)
 Works out Schro-compatible chroma format. More...
static av_cold int libschroedinger_encode_init (AVCodecContext *avctx)
static SchroFrame * libschroedinger_frame_from_data (AVCodecContext *avctx, const AVFrame *frame)
static void libschroedinger_free_frame (void *data)
static int libschroedinger_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static int libschroedinger_encode_close (AVCodecContext *avctx)


static const AVOption options []
static const AVClass libschroedinger_class
AVCodec ff_libschroedinger_encoder

Detailed Description

Dirac encoder support via libschroedinger-1.0 libraries.

More details about the Schroedinger project can be found at http://www.diracvideo.org/. The library implements Dirac Specification Version 2.2 (http://dirac.sourceforge.net/specification.html).

Definition in file libschroedingerenc.c.

Macro Definition Documentation

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

Definition at line 456 of file libschroedingerenc.c.

Definition at line 457 of file libschroedingerenc.c.

Function Documentation

static int set_chroma_format ( AVCodecContext avctx)

Works out Schro-compatible chroma format.

Definition at line 86 of file libschroedingerenc.c.

Referenced by libschroedinger_encode_init().

static av_cold int libschroedinger_encode_init ( AVCodecContext avctx)

Definition at line 109 of file libschroedingerenc.c.

static SchroFrame* libschroedinger_frame_from_data ( AVCodecContext avctx,
const AVFrame frame 

Definition at line 247 of file libschroedingerenc.c.

Referenced by libschroedinger_encode_frame().

static void libschroedinger_free_frame ( void data)
static int libschroedinger_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int *  got_packet 

Definition at line 274 of file libschroedingerenc.c.

static int libschroedinger_encode_close ( AVCodecContext avctx)

Definition at line 434 of file libschroedingerenc.c.

Variable Documentation

const AVOption options[]
Initial value:
= {
{ "noarith", "Enable noarith", OFFSET(noarith), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1, VE },
{ NULL },
#define VE
#define NULL
Definition: coverity.c:32
#define OFFSET(x)

Definition at line 458 of file libschroedingerenc.c.

const AVClass libschroedinger_class
Initial value:
= {
.class_name = "libschroedinger",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:70
static const AVOption options[]

Definition at line 464 of file libschroedingerenc.c.

AVCodec ff_libschroedinger_encoder
Initial value:
= {
.name = "libschroedinger",
.long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"),
.priv_data_size = sizeof(SchroEncoderParams),
.priv_class = &libschroedinger_class,
.capabilities = AV_CODEC_CAP_DELAY,
.pix_fmts = (const enum AVPixelFormat[]){
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:67
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
libschroedinger encoder private data
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:981
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:66
static av_cold int libschroedinger_encode_init(AVCodecContext *avctx)
static int libschroedinger_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:262
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:62
static int libschroedinger_encode_close(AVCodecContext *avctx)
static const AVClass libschroedinger_class
Pixel format.
Definition: pixfmt.h:60

Definition at line 471 of file libschroedingerenc.c.