#include <assert.h>
#include <schroedinger/schro.h>
#include <schroedinger/schrodebug.h>
#include <schroedinger/schrovideoformat.h>
#include "avcodec.h"
#include "libdirac_libschro.h"
#include "libschroedinger.h"
Go to the source code of this file.
Data Structures | |
| struct | FfmpegSchroEncoderParams |
| libschroedinger encoder private data More... | |
Functions | |
| static int | SetSchroChromaFormat (AVCodecContext *avccontext) |
| Works out Schro-compatible chroma format. | |
| static int | libschroedinger_encode_init (AVCodecContext *avccontext) |
| static SchroFrame * | libschroedinger_frame_from_data (AVCodecContext *avccontext, void *in_data) |
| static void | SchroedingerFreeFrame (void *data) |
| static int | libschroedinger_encode_frame (AVCodecContext *avccontext, unsigned char *frame, int buf_size, void *data) |
| static int | libschroedinger_encode_close (AVCodecContext *avccontext) |
Variables | |
| AVCodec | libschroedinger_encoder |
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.
| static int libschroedinger_encode_close | ( | AVCodecContext * | avccontext | ) | [static] |
Definition at line 384 of file libschroedingerenc.c.
| static int libschroedinger_encode_frame | ( | AVCodecContext * | avccontext, | |
| unsigned char * | frame, | |||
| int | buf_size, | |||
| void * | data | |||
| ) | [static] |
Definition at line 245 of file libschroedingerenc.c.
| static int libschroedinger_encode_init | ( | AVCodecContext * | avccontext | ) | [static] |
Definition at line 102 of file libschroedingerenc.c.
| static SchroFrame* libschroedinger_frame_from_data | ( | AVCodecContext * | avccontext, | |
| void * | in_data | |||
| ) | [static] |
| static void SchroedingerFreeFrame | ( | void * | data | ) | [static] |
Definition at line 237 of file libschroedingerenc.c.
Referenced by libschroedinger_encode_close(), and libschroedinger_encode_frame().
| static int SetSchroChromaFormat | ( | AVCodecContext * | avccontext | ) | [static] |
Works out Schro-compatible chroma format.
Definition at line 78 of file libschroedingerenc.c.
Referenced by libschroedinger_encode_init().
Initial value:
{
"libschroedinger",
AVMEDIA_TYPE_VIDEO,
CODEC_ID_DIRAC,
sizeof(FfmpegSchroEncoderParams),
libschroedinger_encode_init,
libschroedinger_encode_frame,
libschroedinger_encode_close,
.capabilities = CODEC_CAP_DELAY,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"),
}
Definition at line 408 of file libschroedingerenc.c.
1.5.8