All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
libx265.c File Reference
#include <x265.h>
#include "libavutil/internal.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  libx265Context


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


static int is_keyframe (NalUnitType naltype)
static av_cold int libx265_encode_close (AVCodecContext *avctx)
static av_cold int libx265_encode_init (AVCodecContext *avctx)
static int libx265_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet)
static av_cold void libx265_encode_init_csp (AVCodec *codec)


static enum AVPixelFormat x265_csp_eight []
static enum AVPixelFormat x265_csp_twelve []
static const AVOption options []
class {
      class_name = "libx265"
      item_name = av_default_item_name
      option = options
AVCodec ff_libx265_encoder

Macro Definition Documentation

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

Definition at line 307 of file libx265.c.

Definition at line 308 of file libx265.c.

Function Documentation

static int is_keyframe ( NalUnitType  naltype)
static av_cold int libx265_encode_close ( AVCodecContext avctx)

Definition at line 64 of file libx265.c.

Referenced by libx265_encode_init().

static av_cold int libx265_encode_init ( AVCodecContext avctx)

Definition at line 79 of file libx265.c.

static int libx265_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pic,
int *  got_packet 

Definition at line 217 of file libx265.c.

static av_cold void libx265_encode_init_csp ( AVCodec codec)

Definition at line 299 of file libx265.c.

Variable Documentation

enum AVPixelFormat x265_csp_eight[]
Initial value:

Definition at line 285 of file libx265.c.

Referenced by libx265_encode_init_csp().

enum AVPixelFormat x265_csp_twelve[]
const AVOption options[]
Initial value:
= {
{ "preset", "set the x265 preset", OFFSET(preset), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE },
{ "tune", "set the x265 tune parameter", OFFSET(tune), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE },
{ "x265-params", "set the x265 configuration using a :-separated list of key=value parameters", OFFSET(x265_opts), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE },
{ NULL }

Definition at line 309 of file libx265.c.

class_name = "libx265"

Definition at line 317 of file libx265.c.

item_name = av_default_item_name

Definition at line 318 of file libx265.c.

option = options

Definition at line 319 of file libx265.c.

Definition at line 320 of file libx265.c.

const { ... }
AVCodec ff_libx265_encoder
Initial value:
= {
.name = "libx265",
.long_name = NULL_IF_CONFIG_SMALL("libx265 H.265 / HEVC"),
.init_static_data = libx265_encode_init_csp,
.priv_data_size = sizeof(libx265Context),
.priv_class = &class,

Definition at line 323 of file libx265.c.