#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/tree.h"
#include "libavutil/dict.h"
#include "libavcodec/mpegaudiodata.h"
#include "nut.h"
#include "internal.h"
#include "avio_internal.h"
Go to the source code of this file.
Functions | |
static int | find_expected_header (AVCodecContext *c, int size, int key_frame, uint8_t out[64]) |
static int | find_header_idx (AVFormatContext *s, AVCodecContext *c, int size, int frame_type) |
static void | build_elision_headers (AVFormatContext *s) |
static void | build_frame_code (AVFormatContext *s) |
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, int calculate_checksum, 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_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 | nut_write_packet (AVFormatContext *s, AVPacket *pkt) |
static int | nut_write_trailer (AVFormatContext *s) |
Variables | |
AVOutputFormat | ff_nut_muxer |
static int add_info | ( | AVIOContext * | bc, | |
const char * | type, | |||
const char * | value | |||
) | [static] |
Definition at line 428 of file nutenc.c.
Referenced by write_chapter(), write_globalinfo(), and write_streaminfo().
static void build_elision_headers | ( | AVFormatContext * | s | ) | [static] |
static void build_frame_code | ( | AVFormatContext * | s | ) | [static] |
static int find_best_header_idx | ( | NUTContext * | nut, | |
AVPacket * | pkt | |||
) | [static] |
static int find_expected_header | ( | AVCodecContext * | c, | |
int | size, | |||
int | key_frame, | |||
uint8_t | out[64] | |||
) | [static] |
static int find_header_idx | ( | AVFormatContext * | s, | |
AVCodecContext * | c, | |||
int | size, | |||
int | frame_type | |||
) | [static] |
static int get_needed_flags | ( | NUTContext * | nut, | |
StreamContext * | nus, | |||
FrameCode * | fc, | |||
AVPacket * | pkt | |||
) | [static] |
static int nut_write_header | ( | AVFormatContext * | s | ) | [static] |
static int nut_write_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int nut_write_trailer | ( | AVFormatContext * | s | ) | [static] |
static void put_packet | ( | NUTContext * | nut, | |
AVIOContext * | bc, | |||
AVIOContext * | dyn_bc, | |||
int | calculate_checksum, | |||
uint64_t | startcode | |||
) | [static] |
static void put_s | ( | AVIOContext * | bc, | |
int64_t | val | |||
) | [static] |
Definition at line 263 of file nutenc.c.
Referenced by add_info(), write_chapter(), and write_mainheader().
static void put_str | ( | AVIOContext * | bc, | |
const char * | string | |||
) | [static] |
Store a string as vb.
Definition at line 256 of file nutenc.c.
Referenced by add_info(), and rv10_write_header().
static void put_tt | ( | NUTContext * | nut, | |
AVRational * | time_base, | |||
AVIOContext * | bc, | |||
uint64_t | val | |||
) | [static] |
static int write_chapter | ( | NUTContext * | nut, | |
AVIOContext * | bc, | |||
int | id | |||
) | [static] |
static int write_globalinfo | ( | NUTContext * | nut, | |
AVIOContext * | bc | |||
) | [static] |
static int write_headers | ( | AVFormatContext * | avctx, | |
AVIOContext * | bc | |||
) | [static] |
Definition at line 520 of file nutenc.c.
Referenced by nut_write_header(), nut_write_packet(), and nut_write_trailer().
static void write_mainheader | ( | NUTContext * | nut, | |
AVIOContext * | bc | |||
) | [static] |
static int write_streamheader | ( | AVFormatContext * | avctx, | |
AVIOContext * | bc, | |||
AVStream * | st, | |||
int | i | |||
) | [static] |
static int write_streaminfo | ( | NUTContext * | nut, | |
AVIOContext * | bc, | |||
int | stream_id | |||
) | [static] |
Initial value:
{ .name = "nut", .long_name = NULL_IF_CONFIG_SMALL("NUT format"), .mime_type = "video/x-nut", .extensions = "nut", .priv_data_size = sizeof(NUTContext), .audio_codec = CODEC_ID_MP2, .video_codec = CODEC_ID_MPEG4, .write_header = nut_write_header, .write_packet = nut_write_packet, .write_trailer = nut_write_trailer, .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS, .codec_tag = (const AVCodecTag * const []){ ff_codec_bmp_tags, ff_nut_video_tags, ff_codec_wav_tags, ff_nut_subtitle_tags, 0 }, }