Libav 0.7.1
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdint.h>
#include <xavs.h>
#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | XavsContext |
Defines | |
#define | END_OF_STREAM 0x001 |
#define | XAVS_PART_I8X8 0x002 |
#define | XAVS_PART_P8X8 0x010 |
#define | XAVS_PART_B8X8 0x100 |
Typedefs | |
typedef struct XavsContext | XavsContext |
Functions | |
static void | XAVS_log (void *p, int level, const char *fmt, va_list args) |
static int | encode_nals (AVCodecContext *ctx, uint8_t *buf, int size, xavs_nal_t *nals, int nnal, int skip_sei) |
static int | XAVS_frame (AVCodecContext *ctx, uint8_t *buf, int bufsize, void *data) |
static av_cold int | XAVS_close (AVCodecContext *avctx) |
static av_cold int | XAVS_init (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_libxavs_encoder |
#define END_OF_STREAM 0x001 |
Definition at line 30 of file libxavs.c.
Referenced by XAVS_frame().
#define XAVS_PART_B8X8 0x100 |
Definition at line 34 of file libxavs.c.
Referenced by XAVS_init().
#define XAVS_PART_I8X8 0x002 |
Definition at line 32 of file libxavs.c.
Referenced by XAVS_init().
#define XAVS_PART_P8X8 0x010 |
Definition at line 33 of file libxavs.c.
Referenced by XAVS_init().
typedef struct XavsContext XavsContext |
static int encode_nals | ( | AVCodecContext * | ctx, |
uint8_t * | buf, | ||
int | size, | ||
xavs_nal_t * | nals, | ||
int | nnal, | ||
int | skip_sei | ||
) | [static] |
Definition at line 61 of file libxavs.c.
Referenced by XAVS_frame(), and XAVS_init().
static av_cold int XAVS_close | ( | AVCodecContext * | avctx | ) | [static] |
static int XAVS_frame | ( | AVCodecContext * | ctx, |
uint8_t * | buf, | ||
int | bufsize, | ||
void * | data | ||
) | [static] |
static av_cold int XAVS_init | ( | AVCodecContext * | avctx | ) | [static] |
static void XAVS_log | ( | void * | p, |
int | level, | ||
const char * | fmt, | ||
va_list | args | ||
) | [static] |
Definition at line 46 of file libxavs.c.
Referenced by XAVS_init().
{ .name = "libxavs", .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_CAVS, .priv_data_size = sizeof(XavsContext), .init = XAVS_init, .encode = XAVS_frame, .close = XAVS_close, .capabilities = CODEC_CAP_DELAY, .pix_fmts = (const enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("libxavs - the Chinese Audio Video Standard Encoder"), }