|
FFmpeg
|
#include <stdint.h>#include "libavutil/intreadwrite.h"#include "libavutil/mathematics.h"#include "libavutil/mem.h"#include "libavutil/tree.h"#include "libavutil/dict.h"#include "libavutil/avassert.h"#include "libavutil/time.h"#include "libavutil/opt.h"#include "libavcodec/bytestream.h"#include "libavcodec/mpegaudiodata.h"#include "mux.h"#include "nut.h"#include "internal.h"#include "avio_internal.h"#include "riff.h"#include "version.h"Go to the source code of this file.
Macros | |
| #define | OFFSET(x) |
| #define | E AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
| static AVRational | choose_timebase (AVFormatContext *s, AVStream *st, int min_precision) |
| Chooses a timebase for muxing the specified stream. | |
| static int | find_expected_header (AVCodecParameters *p, int size, int key_frame, uint8_t out[64]) |
| static int | find_header_idx (AVFormatContext *s, AVCodecParameters *p, int size, int frame_type) |
| static void | build_elision_headers (AVFormatContext *s) |
| static void | build_frame_code (AVFormatContext *s) |
| static int | get_v_length (uint64_t val) |
| Get the length in bytes which is needed to store val as v. | |
| static void | put_v (AVIOContext *bc, uint64_t val) |
| Put val using a variable number of bytes. | |
| static void | put_tt (NUTContext *nut, AVRational *time_base, AVIOContext *bc, uint64_t val) |
| static void | put_str (AVIOContext *bc, const char *string) |
| Store a string as vb. | |
| static void | put_s (AVIOContext *bc, int64_t val) |
| static void | put_packet (NUTContext *nut, AVIOContext *bc, AVIOContext *dyn_bc, uint64_t startcode) |
| static void | write_mainheader (NUTContext *nut, AVIOContext *bc) |
| static int | write_streamheader (AVFormatContext *avctx, AVIOContext *bc, AVStream *st, int i) |
| static int | add_info (AVIOContext *bc, const char *type, const char *value) |
| static int | write_globalinfo (NUTContext *nut, AVIOContext *bc) |
| static int | write_streaminfo (NUTContext *nut, AVIOContext *bc, int stream_id) |
| static int | write_chapter (NUTContext *nut, AVIOContext *bc, int id) |
| static int | write_index (NUTContext *nut, AVIOContext *bc) |
| static int | write_headers (AVFormatContext *avctx, AVIOContext *bc) |
| static int | nut_write_header (AVFormatContext *s) |
| static int | get_needed_flags (NUTContext *nut, StreamContext *nus, FrameCode *fc, AVPacket *pkt) |
| static int | find_best_header_idx (NUTContext *nut, AVPacket *pkt) |
| static int | write_sm_data (AVFormatContext *s, AVIOContext *bc, AVPacket *pkt, int is_meta) |
| static int | nut_write_packet (AVFormatContext *s, AVPacket *pkt) |
| static int | nut_write_trailer (AVFormatContext *s) |
| static void | nut_write_deinit (AVFormatContext *s) |
Variables | ||
| static const AVOption | options [] | |
| class { | ||
| class_name = "nutenc" | ||
| item_name = av_default_item_name | ||
| option = options | ||
| version = LIBAVUTIL_VERSION_INT | ||
| }; | ||
| const FFOutputFormat | ff_nut_muxer | |
| #define OFFSET | ( | x | ) |
| #define E AV_OPT_FLAG_ENCODING_PARAM |
|
static |
Chooses a timebase for muxing the specified stream.
The chosen timebase allows sample accurate timestamps based on the framerate or sample rate for audio streams. It also is at least as precise as 1/min_precision would be.
Definition at line 48 of file nutenc.c.
Referenced by nut_write_header().
|
static |
Definition at line 61 of file nutenc.c.
Referenced by find_header_idx().
|
static |
Definition at line 128 of file nutenc.c.
Referenced by build_frame_code().
|
static |
Definition at line 145 of file nutenc.c.
Referenced by nut_write_header().
|
static |
Definition at line 167 of file nutenc.c.
Referenced by nut_write_header().
|
static |
Get the length in bytes which is needed to store val as v.
Definition at line 309 of file nutenc.c.
Referenced by nut_write_packet(), and put_v().
|
static |
Put val using a variable number of bytes.
Definition at line 322 of file nutenc.c.
Referenced by nut_write_packet(), put_packet(), put_s(), put_str(), put_tt(), write_chapter(), write_globalinfo(), write_index(), write_mainheader(), write_sm_data(), write_streamheader(), and write_streaminfo().
|
static |
Definition at line 332 of file nutenc.c.
Referenced by nut_write_packet(), write_chapter(), and write_index().
|
static |
Store a string as vb.
Definition at line 341 of file nutenc.c.
Referenced by add_info(), and write_sm_data().
|
static |
Definition at line 349 of file nutenc.c.
Referenced by add_info(), write_chapter(), write_mainheader(), and write_sm_data().
|
static |
Definition at line 354 of file nutenc.c.
Referenced by nut_write_packet(), nut_write_trailer(), and write_headers().
|
static |
Definition at line 375 of file nutenc.c.
Referenced by write_headers().
|
static |
Definition at line 455 of file nutenc.c.
Referenced by write_headers().
|
static |
Definition at line 512 of file nutenc.c.
Referenced by write_chapter(), write_globalinfo(), and write_streaminfo().
|
static |
Definition at line 520 of file nutenc.c.
Referenced by write_headers().
|
static |
Definition at line 548 of file nutenc.c.
Referenced by write_headers().
|
static |
Definition at line 590 of file nutenc.c.
Referenced by write_headers().
|
static |
Definition at line 618 of file nutenc.c.
Referenced by nut_write_trailer().
|
static |
Definition at line 670 of file nutenc.c.
Referenced by nut_write_header(), nut_write_packet(), and nut_write_trailer().
|
static |
|
static |
Definition at line 808 of file nutenc.c.
Referenced by nut_write_packet().
|
static |
Definition at line 837 of file nutenc.c.
Referenced by nut_write_packet().
|
static |
Definition at line 856 of file nutenc.c.
Referenced by nut_write_packet().
|
static |
|
static |
|
static |
|
static |
|
private |
|
private |
| const AVClass class { ... } |
| const FFOutputFormat ff_nut_muxer |