FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
libkvazaar.c File Reference
#include <kvazaar.h>
#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/dict.h"
#include "libavutil/error.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  LibkvazaarContext
 

Macros

#define OFFSET(x)   offsetof(LibkvazaarContext, x)
 
#define VE   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static av_cold int libkvazaar_init (AVCodecContext *avctx)
 
static av_cold int libkvazaar_close (AVCodecContext *avctx)
 
static int libkvazaar_encode (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

Variables

static enum AVPixelFormat pix_fmts []
 
static const AVOption options []
 
class {
      class_name = "libkvazaar"
 
      item_name = av_default_item_name
 
      option = options
 
      version = LIBAVUTIL_VERSION_INT
 
}; 
 
static const AVCodecDefault defaults []
 
AVCodec ff_libkvazaar_encoder
 

Macro Definition Documentation

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

Definition at line 267 of file libkvazaar.c.

Definition at line 268 of file libkvazaar.c.

Function Documentation

static av_cold int libkvazaar_init ( AVCodecContext avctx)
static

Definition at line 47 of file libkvazaar.c.

static av_cold int libkvazaar_close ( AVCodecContext avctx)
static

Definition at line 137 of file libkvazaar.c.

static int libkvazaar_encode ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
)
static

Definition at line 152 of file libkvazaar.c.

Variable Documentation

enum AVPixelFormat pix_fmts[]
static
const AVOption options[]
static
Initial value:
= {
{ "kvazaar-params", "Set kvazaar parameters as a comma-separated list of key=value pairs.",
OFFSET(kvz_params), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, VE },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define VE
Definition: libkvazaar.c:268
#define OFFSET(x)
Definition: libkvazaar.c:267

Definition at line 269 of file libkvazaar.c.

class_name = "libkvazaar"

Definition at line 276 of file libkvazaar.c.

Referenced by av_opt_show2().

item_name = av_default_item_name

Definition at line 277 of file libkvazaar.c.

option = options

Definition at line 279 of file libkvazaar.c.

const { ... }
const AVCodecDefault defaults[]
static
Initial value:
= {
{ "b", "0" },
{ NULL },
}
#define NULL
Definition: coverity.c:32

Definition at line 282 of file libkvazaar.c.

AVCodec ff_libkvazaar_encoder
Initial value:
= {
.name = "libkvazaar",
.long_name = NULL_IF_CONFIG_SMALL("libkvazaar H.265 / HEVC"),
.capabilities = AV_CODEC_CAP_DELAY,
.pix_fmts = pix_fmts,
.priv_class = &class,
.priv_data_size = sizeof(LibkvazaarContext),
.encode2 = libkvazaar_encode,
.close = libkvazaar_close,
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int libkvazaar_close(AVCodecContext *avctx)
Definition: libkvazaar.c:137
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:881
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVCodecDefault defaults[]
Definition: libkvazaar.c:282
static int libkvazaar_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: libkvazaar.c:152
static av_cold int libkvazaar_init(AVCodecContext *avctx)
Definition: libkvazaar.c:47
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:262

Definition at line 287 of file libkvazaar.c.