#include "libavutil/eval.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavutil/stereo3d.h"
#include "avcodec.h"
#include "internal.h"
#include <x264.h>
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
#define OPT_STR |
( |
|
opt, |
|
|
|
param |
|
) |
| |
Value:do { \
if (param && (ret = x264_param_parse(&x4->params, opt, param)) < 0) {
\
if(ret == X264_PARAM_BAD_NAME)
\
"bad option '%s': '%s'\n", opt, param);
\
"bad value for '%s': '%s'\n", opt, param);
\
} \
} while (0)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition at line 321 of file libx264.c.
Referenced by X264_init().
#define PARSE_X264_OPT |
( |
|
name, |
|
|
|
var |
|
) |
| |
Value:if (x4->var && x264_param_parse(&x4->params,
name, x4->var) < 0) {
\
}
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition at line 365 of file libx264.c.
Referenced by X264_init().
static void X264_log |
( |
void * |
p, |
|
|
int |
level, |
|
|
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
|
static |
static int avfmt2_num_planes |
( |
int |
avfmt | ) |
|
|
static |
Initial value:= {
}
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
interleaved chroma YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition at line 731 of file libx264.c.
Referenced by X264_init_static().
Initial value:= {
}
#define AV_PIX_FMT_YUV444P9
#define AV_PIX_FMT_YUV420P9
Definition at line 742 of file libx264.c.
Referenced by X264_init_static().
Initial value:= {
}
#define AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV420P10
#define AV_PIX_FMT_YUV422P10
Definition at line 747 of file libx264.c.
Referenced by X264_init_static().
Initial value:= {
.class_name = "libx264",
}
#define LIBAVUTIL_VERSION_INT
static const AVOption options[]
Definition at line 837 of file libx264.c.
Initial value:= {
.class_name = "libx264rgb",
}
#define LIBAVUTIL_VERSION_INT
static const AVOption options[]
Definition at line 844 of file libx264.c.
Initial value:= {
{ "b", "0" },
{ "bf", "-1" },
{ "flags2", "0" },
{ "g", "-1" },
{ "i_qfactor", "-1" },
{ "b_qfactor", "-1" },
{ "qmin", "-1" },
{ "qmax", "-1" },
{ "qdiff", "-1" },
{ "qblur", "-1" },
{ "qcomp", "-1" },
{ "refs", "-1" },
{ "sc_threshold", "-1" },
{ "trellis", "-1" },
{ "nr", "-1" },
{ "me_range", "-1" },
{ "me_method", "-1" },
{ "subq", "-1" },
{ "b_strategy", "-1" },
{ "keyint_min", "-1" },
{ "coder", "-1" },
{ "cmp", "-1" },
{ "thread_type", "0" },
{ "flags", "+cgop" },
{ "rc_init_occupancy","-1" },
}
Definition at line 851 of file libx264.c.
Initial value:= {
.name = "libx264",
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
static av_cold int init(AVCodecContext *avctx)
static av_cold int X264_init(AVCodecContext *avctx)
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
static av_cold void init_static_data(void)
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVClass x264_class
#define CODEC_CAP_AUTO_THREADS
Codec supports avctx->thread_count == 0 (auto).
static const AVCodecDefault x264_defaults[]
static av_cold int X264_close(AVCodecContext *avctx)
static av_cold void X264_init_static(AVCodec *codec)
static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static const AVCodecDefault defaults[]
Definition at line 882 of file libx264.c.
Initial value:= {
.name = "libx264rgb",
}
static av_cold int init(AVCodecContext *avctx)
static enum AVPixelFormat pix_fmts_8bit_rgb[]
static av_cold int X264_init(AVCodecContext *avctx)
static const AVClass rgbclass
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
#define CODEC_CAP_AUTO_THREADS
Codec supports avctx->thread_count == 0 (auto).
static const AVCodecDefault x264_defaults[]
static av_cold int X264_close(AVCodecContext *avctx)
static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
static const AVCodecDefault defaults[]
Definition at line 899 of file libx264.c.