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

Typedefs

typedef struct SchroEncoderParams SchroEncoderParams
 libschroedinger encoder private data
 

Functions

static int set_chroma_format (AVCodecContext *avctx)
 Works out Schro-compatible chroma format.
 
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)
 

Variables

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.

Typedef Documentation

libschroedinger encoder private data

Function Documentation

static int set_chroma_format ( AVCodecContext avctx)
static

Works out Schro-compatible chroma format.

Definition at line 81 of file libschroedingerenc.c.

Referenced by libschroedinger_encode_init().

static av_cold int libschroedinger_encode_init ( AVCodecContext avctx)
static

Definition at line 104 of file libschroedingerenc.c.

static SchroFrame* libschroedinger_frame_from_data ( AVCodecContext avctx,
const AVFrame frame 
)
static

Definition at line 238 of file libschroedingerenc.c.

Referenced by libschroedinger_encode_frame().

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

Definition at line 265 of file libschroedingerenc.c.

static int libschroedinger_encode_close ( AVCodecContext avctx)
static

Definition at line 411 of file libschroedingerenc.c.

Variable Documentation

AVCodec ff_libschroedinger_encoder
Initial value:
= {
.name = "libschroedinger",
.priv_data_size = sizeof(SchroEncoderParams),
.capabilities = CODEC_CAP_DELAY,
.pix_fmts = (const enum AVPixelFormat[]){
},
.long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"),
}

Definition at line 434 of file libschroedingerenc.c.