All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | 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 "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...


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)


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.

Function Documentation

static int set_chroma_format ( AVCodecContext avctx)

Works out Schro-compatible chroma format.

Definition at line 78 of file libschroedingerenc.c.

Referenced by libschroedinger_encode_init().

static av_cold int libschroedinger_encode_init ( AVCodecContext avctx)

Definition at line 101 of file libschroedingerenc.c.

static SchroFrame* libschroedinger_frame_from_data ( AVCodecContext avctx,
const AVFrame frame 

Definition at line 233 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 260 of file libschroedingerenc.c.

static int libschroedinger_encode_close ( AVCodecContext avctx)

Definition at line 420 of file libschroedingerenc.c.

Variable Documentation

AVCodec ff_libschroedinger_encoder
Initial value:
= {
.name = "libschroedinger",
.long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"),
.priv_data_size = sizeof(SchroEncoderParams),
.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:68
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:882
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:67
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:209
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:63
static int libschroedinger_encode_close(AVCodecContext *avctx)
Pixel format.
Definition: pixfmt.h:61

Definition at line 443 of file libschroedingerenc.c.