#include "libavutil/intreadwrite.h"
#include "libavutil/tree.h"
#include "libavcodec/mpegaudiodata.h"
#include "nut.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 int | get_length (uint64_t val) |
Gets the length in bytes which is needed to store val as v. | |
static void | put_v (ByteIOContext *bc, uint64_t val) |
static void | put_tt (NUTContext *nut, StreamContext *nus, ByteIOContext *bc, uint64_t val) |
static void | put_str (ByteIOContext *bc, const char *string) |
Stores a string as vb. | |
static void | put_s (ByteIOContext *bc, int64_t val) |
static void | put_packet (NUTContext *nut, ByteIOContext *bc, ByteIOContext *dyn_bc, int calculate_checksum, uint64_t startcode) |
static void | write_mainheader (NUTContext *nut, ByteIOContext *bc) |
static int | write_streamheader (NUTContext *nut, ByteIOContext *bc, AVStream *st, int i) |
static int | add_info (ByteIOContext *bc, const char *type, const char *value) |
static int | write_globalinfo (NUTContext *nut, ByteIOContext *bc) |
static int | write_streaminfo (NUTContext *nut, ByteIOContext *bc, int stream_id) |
static int | write_headers (NUTContext *nut, ByteIOContext *bc) |
static int | 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_packet (AVFormatContext *s, AVPacket *pkt) |
static int | write_trailer (AVFormatContext *s) |
Variables | |
AVOutputFormat | nut_muxer |
static int add_info | ( | ByteIOContext * | bc, | |
const char * | type, | |||
const char * | value | |||
) | [static] |
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_length | ( | uint64_t | val | ) | [static] |
Gets the length in bytes which is needed to store val as v.
Definition at line 246 of file nutenc.c.
Referenced by put_v(), and write_packet().
static int get_needed_flags | ( | NUTContext * | nut, | |
StreamContext * | nus, | |||
FrameCode * | fc, | |||
AVPacket * | pkt | |||
) | [static] |
static void put_packet | ( | NUTContext * | nut, | |
ByteIOContext * | bc, | |||
ByteIOContext * | dyn_bc, | |||
int | calculate_checksum, | |||
uint64_t | startcode | |||
) | [static] |
static void put_s | ( | ByteIOContext * | bc, | |
int64_t | val | |||
) | [static] |
static void put_str | ( | ByteIOContext * | bc, | |
const char * | string | |||
) | [static] |
Stores a string as vb.
Definition at line 273 of file nutenc.c.
Referenced by add_info(), and rv10_write_header().
static void put_tt | ( | NUTContext * | nut, | |
StreamContext * | nus, | |||
ByteIOContext * | bc, | |||
uint64_t | val | |||
) | [static] |
static void put_v | ( | ByteIOContext * | bc, | |
uint64_t | val | |||
) | [static] |
Definition at line 255 of file nutenc.c.
Referenced by put_packet(), put_s(), put_str(), put_tt(), write_globalinfo(), write_mainheader(), write_packet(), write_streamheader(), and write_streaminfo().
static int write_globalinfo | ( | NUTContext * | nut, | |
ByteIOContext * | bc | |||
) | [static] |
static int write_header | ( | AVFormatContext * | s | ) | [static] |
static int write_headers | ( | NUTContext * | nut, | |
ByteIOContext * | bc | |||
) | [static] |
Definition at line 506 of file nutenc.c.
Referenced by write_header(), write_packet(), and write_trailer().
static void write_mainheader | ( | NUTContext * | nut, | |
ByteIOContext * | bc | |||
) | [static] |
static int write_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int write_streamheader | ( | NUTContext * | nut, | |
ByteIOContext * | bc, | |||
AVStream * | st, | |||
int | i | |||
) | [static] |
static int write_streaminfo | ( | NUTContext * | nut, | |
ByteIOContext * | bc, | |||
int | stream_id | |||
) | [static] |
static int write_trailer | ( | AVFormatContext * | s | ) | [static] |
Initial value:
{ "nut", NULL_IF_CONFIG_SMALL("NUT format"), "video/x-nut", "nut", sizeof(NUTContext), CODEC_ID_MP2, CODEC_ID_MPEG4, write_header, write_packet, write_trailer, .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS, .codec_tag= (const AVCodecTag* const []){ff_codec_bmp_tags, ff_codec_wav_tags, ff_nut_subtitle_tags, 0}, .metadata_conv = ff_nut_metadata_conv, }