FFmpeg
|
#include "config_components.h"
#include "libavutil/buffer.h"
#include "libavutil/eval.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/mastering_display_metadata.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavutil/stereo3d.h"
#include "libavutil/time.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/video_hint.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "encode.h"
#include "internal.h"
#include "packet_internal.h"
#include "atsc_a53.h"
#include "sei.h"
#include "golomb.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.
Data Structures | |
struct | X264Opaque |
struct | X264Context |
Macros | |
#define | MB_SIZE 16 |
#define | MB_LSIZE 4 |
#define | MB_FLOOR(x) ((x) >> (MB_LSIZE)) |
#define | MB_CEIL(x) MB_FLOOR((x) + (MB_SIZE - 1)) |
#define | COMPUTE_MBINFO(mbinfo_filler_, mbinfo_marker_, compute_coords_fn_) |
#define | PARSE_X264_OPT(name, var) |
#define | OFFSET(x) offsetof(X264Context, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
static void | X264_log (void *p, int level, const char *fmt, va_list args) |
static void | opaque_uninit (X264Opaque *o) |
static int | encode_nals (AVCodecContext *ctx, AVPacket *pkt, const x264_nal_t *nals, int nnal) |
static void | reconfig_encoder (AVCodecContext *ctx, const AVFrame *frame) |
static void | free_picture (x264_picture_t *pic) |
static enum AVPixelFormat | csp_to_pixfmt (int csp) |
static void av_always_inline | mbinfo_compute_changed_coords (const AVVideoRect *rect, int *min_x, int *max_x, int *min_y, int *max_y) |
static void av_always_inline | mbinfo_compute_constant_coords (const AVVideoRect *rect, int *min_x, int *max_x, int *min_y, int *max_y) |
static int | setup_mb_info (AVCodecContext *ctx, x264_picture_t *pic, const AVFrame *frame, const AVVideoHint *info) |
static int | setup_roi (AVCodecContext *ctx, x264_picture_t *pic, int bit_depth, const AVFrame *frame, const uint8_t *data, size_t size) |
static int | setup_frame (AVCodecContext *ctx, const AVFrame *frame, x264_picture_t **ppic) |
static int | X264_frame (AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) |
static void | X264_flush (AVCodecContext *avctx) |
static av_cold int | X264_close (AVCodecContext *avctx) |
static int | parse_opts (AVCodecContext *avctx, const char *opt, const char *param) |
static int | convert_pix_fmt (enum AVPixelFormat pix_fmt) |
static int | save_sei (AVCodecContext *avctx, x264_nal_t *nal) |
static int | set_extradata (AVCodecContext *avctx) |
static void | handle_side_data (AVCodecContext *avctx, x264_param_t *params) |
static av_cold int | X264_init (AVCodecContext *avctx) |
static av_cold void | X264_init_static (FFCodec *codec) |
Variables | |
static enum AVPixelFormat | pix_fmts_8bit [] |
static enum AVPixelFormat | pix_fmts_9bit [] |
static enum AVPixelFormat | pix_fmts_10bit [] |
static enum AVPixelFormat | pix_fmts_all [] |
static const AVOption | options [] |
static const FFCodecDefault | x264_defaults [] |
#define COMPUTE_MBINFO | ( | mbinfo_filler_, | |
mbinfo_marker_, | |||
compute_coords_fn_ | |||
) |
#define PARSE_X264_OPT | ( | name, | |
var | |||
) |
#define OFFSET | ( | x | ) | offsetof(X264Context, x) |
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
|
static |
Definition at line 133 of file libx264.c.
Referenced by X264_init().
|
static |
Definition at line 148 of file libx264.c.
Referenced by setup_frame(), X264_close(), X264_flush(), and X264_frame().
|
static |
Definition at line 154 of file libx264.c.
Referenced by X264_frame().
|
static |
Definition at line 197 of file libx264.c.
Referenced by setup_frame().
|
static |
Definition at line 297 of file libx264.c.
Referenced by setup_frame().
|
static |
Definition at line 307 of file libx264.c.
Referenced by X264_frame().
|
static |
Definition at line 329 of file libx264.c.
Referenced by setup_mb_info().
|
static |
Definition at line 341 of file libx264.c.
Referenced by setup_mb_info().
|
static |
Definition at line 353 of file libx264.c.
Referenced by setup_frame().
|
static |
Definition at line 397 of file libx264.c.
Referenced by setup_frame().
|
static |
Definition at line 470 of file libx264.c.
Referenced by X264_frame().
|
static |
|
static |
|
static |
|
static |
Definition at line 791 of file libx264.c.
Referenced by X264_init().
|
static |
Definition at line 817 of file libx264.c.
Referenced by X264_init().
|
static |
Definition at line 852 of file libx264.c.
Referenced by set_extradata().
|
static |
Definition at line 955 of file libx264.c.
Referenced by X264_init().
|
static |
Definition at line 1045 of file libx264.c.
Referenced by X264_init().
|
static |
|
static |
|
static |
Definition at line 1475 of file libx264.c.
Referenced by X264_init_static().
|
static |
|
static |
|
static |