FFmpeg
Macros | Functions
timestamp.h File Reference

timestamp utils, mostly useful for debugging/logging purposes More...

#include "common.h"

Go to the source code of this file.

Macros

#define  AV_TS_MAX_STRING_SIZE   32
 
#define  av_ts2str(ts)   av_ts_make_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts)
  Convenience macro, the return value should be used only directly in function arguments but never stand-alone.
 
#define  av_ts2timestr(ts, tb)   av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
  Convenience macro, the return value should be used only directly in function arguments but never stand-alone.
 

Functions

static char *  av_ts_make_string (char *buf, int64_t ts)
  Fill the provided buffer with a string containing a timestamp representation.
 
static char *  av_ts_make_time_string (char *buf, int64_t ts, AVRational *tb)
  Fill the provided buffer with a string containing a timestamp time representation.
 

Detailed Description

timestamp utils, mostly useful for debugging/logging purposes

Definition in file timestamp.h.

Macro Definition Documentation

#define AV_TS_MAX_STRING_SIZE   32

Definition at line 29 of file timestamp.h.

Referenced by av_ts_make_string(), and av_ts_make_time_string().

#define av_ts2str (   ts )    av_ts_make_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts)

Convenience macro, the return value should be used only directly in function arguments but never stand-alone.

Definition at line 50 of file timestamp.h.

Referenced by av_interleaved_write_frame(), avi_write_packet(), compute_pkt_fields(), compute_pkt_fields2(), decode_video(), describe_bufref_to_str(), do_audio_out(), do_video_out(), ff_gen_search(), ff_seek_frame_binary(), filter_frame(), process_input(), read_frame_internal(), seg_write_packet(), try_filter_frame(), update_initial_durations(), and write_frame().

#define av_ts2timestr (   ts,
  tb 
)    av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)

Convenience macro, the return value should be used only directly in function arguments but never stand-alone.

Examples:
doc/examples/demuxing.c.

Definition at line 72 of file timestamp.h.

Referenced by check_black_end(), config_input(), decode_packet(), decode_video(), describe_bufref_to_str(), do_audio_out(), do_video_out(), filter_frame(), process_input(), report_new_stream(), seg_write_packet(), try_filter_frame(), and write_frame().

Function Documentation

static char* av_ts_make_string ( char *  buf,
int64_t  ts 
)
inlinestatic

Fill the provided buffer with a string containing a timestamp representation.

Parameters
buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE
ts the timestamp to represent
Returns
the buffer in input

Definition at line 39 of file timestamp.h.

static char* av_ts_make_time_string ( char *  buf,
int64_t  ts,
AVRationaltb 
)
inlinestatic

Fill the provided buffer with a string containing a timestamp time representation.

Parameters
buf a buffer with size in bytes of at least AV_TS_MAX_STRING_SIZE
ts the timestamp to represent
tb the timebase of the timestamp
Returns
the buffer in input

Definition at line 61 of file timestamp.h.


Generated on Sat May 25 2013 03:59:04 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /