Home
last modified time | relevance | path

Searched refs:AVRational (Results 1 – 25 of 376) sorted by relevance

12345678910>>...16

/third_party/ffmpeg/libavutil/
Drational.h58 typedef struct AVRational{ struct
61 } AVRational; argument
71 static inline AVRational av_make_q(int num, int den) in av_make_q()
73 AVRational r = { num, den }; in av_make_q()
89 static inline int av_cmp_q(AVRational a, AVRational b){ in av_cmp_q()
104 static inline double av_q2d(AVRational a){ in av_q2d()
128 AVRational av_mul_q(AVRational b, AVRational c) av_const;
136 AVRational av_div_q(AVRational b, AVRational c) av_const;
144 AVRational av_add_q(AVRational b, AVRational c) av_const;
152 AVRational av_sub_q(AVRational b, AVRational c) av_const;
[all …]
Drational.c38 AVRational a0 = { 0, 1 }, a1 = { 1, 0 }; in av_reduce()
47 a1 = (AVRational) { num, den }; in av_reduce()
62 a1 = (AVRational) { x * a1.num + a0.num, x * a1.den + a0.den }; in av_reduce()
67 a1 = (AVRational) { a2n, a2d }; in av_reduce()
80 AVRational av_mul_q(AVRational b, AVRational c) in av_mul_q()
88 AVRational av_div_q(AVRational b, AVRational c) in av_div_q()
90 return av_mul_q(b, (AVRational) { c.den, c.num }); in av_div_q()
93 AVRational av_add_q(AVRational b, AVRational c) { in av_add_q()
101 AVRational av_sub_q(AVRational b, AVRational c) in av_sub_q()
103 return av_add_q(b, (AVRational) { -c.num, c.den }); in av_sub_q()
[all …]
Dhdr_dynamic_metadata.h52 AVRational percentile;
67 AVRational window_upper_left_corner_x;
76 AVRational window_upper_left_corner_y;
85 AVRational window_lower_right_corner_x;
94 AVRational window_lower_right_corner_y;
157 AVRational maxscl[3];
164 AVRational average_maxrgb;
183 AVRational fraction_bright_pixels;
196 AVRational knee_point_x;
203 AVRational knee_point_y;
[all …]
Dmathematics.h152 int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const;
161 int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRational cq,
176 int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b);
223 int64_t av_rescale_delta(AVRational in_tb, int64_t in_ts, AVRational fs_tb, int duration, int64_t …
236 int64_t av_add_stable(AVRational ts_tb, int64_t ts, AVRational inc_tb, int64_t inc);
Dtimecode.h44 AVRational rate; ///< frame rate in rational form
96 uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss, int ff);
127 char *av_timecode_make_smpte_tc_string2(char *buf, AVRational rate, uint32_t tcsmpte, int prevent_d…
161 int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx);
178 int av_timecode_init_from_components(AVTimecode *tc, AVRational rate, int flags, int hh, int mm, in…
190 int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx);
197 int av_timecode_check_frame_rate(AVRational rate);
Dtimecode.c68 uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss, int ff) in av_timecode_get_smpte()
74 if (av_cmp_q(rate, (AVRational) {30, 1}) == 1) { in av_timecode_get_smpte()
76 if (av_cmp_q(rate, (AVRational) {50, 1}) == 0) in av_timecode_get_smpte()
136 char *av_timecode_make_smpte_tc_string2(char *buf, AVRational rate, uint32_t tcsmpte, int prevent_d… in av_timecode_make_smpte_tc_string2()
144 if (av_cmp_q(rate, (AVRational) {30, 1}) == 1) { in av_timecode_make_smpte_tc_string2()
147 if (av_cmp_q(rate, (AVRational) {50, 1}) == 0) in av_timecode_make_smpte_tc_string2()
162 return av_timecode_make_smpte_tc_string2(buf, (AVRational){30, 1}, tcsmpte, prevent_df, 1); in av_timecode_make_smpte_tc_string()
207 static int fps_from_frame_rate(AVRational rate) in fps_from_frame_rate()
214 int av_timecode_check_frame_rate(AVRational rate) in av_timecode_check_frame_rate()
219 int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx) in av_timecode_init()
[all …]
Dmathematics.c134 int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRational cq, in av_rescale_q_rnd()
142 int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) in av_rescale_q()
147 int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b) in av_compare_ts()
168 int64_t av_rescale_delta(AVRational in_tb, int64_t in_ts, AVRational fs_tb, int duration, int64_t … in av_rescale_delta()
191 int64_t av_add_stable(AVRational ts_tb, int64_t ts, AVRational inc_tb, int64_t inc) in av_add_stable()
196 inc_tb = av_mul_q(inc_tb, (AVRational) {inc, 1}); in av_add_stable()
Dmastering_display_metadata.h42 AVRational display_primaries[3][2];
47 AVRational white_point[2];
52 AVRational min_luminance;
57 AVRational max_luminance;
Dopt.h272 AVRational q;
555 int av_opt_eval_q (void *obj, const AVOption *o, const char *val, AVRational *q_out);
704 int av_opt_set_q (void *obj, const char *name, AVRational val, int search_flags);
709 int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags);
760 int av_opt_get_q (void *obj, const char *name, int search_flags, AVRational *out_val);
764 int av_opt_get_video_rate(void *obj, const char *name, int search_flags, AVRational *out_val);
/third_party/ffmpeg/libavcodec/
Ddynamic_hdr10_plus.c61 (AVRational){get_bits(gb, 16), 1}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
63 (AVRational){get_bits(gb, 16), 1}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
65 (AVRational){get_bits(gb, 16), 1}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
67 (AVRational){get_bits(gb, 16), 1}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
82 (AVRational){get_bits_long(gb, 27), luminance_den}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
103 (AVRational){get_bits(gb, 4), peak_luminance_den}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
114 (AVRational){get_bits(gb, 17), rgb_den}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
117 (AVRational){get_bits(gb, 17), rgb_den}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
127 (AVRational){get_bits(gb, 17), rgb_den}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
133 params->fraction_bright_pixels = (AVRational){get_bits(gb, 10), fraction_pixel_den}; in ff_parse_itu_t_t35_to_dynamic_hdr10_plus()
[all …]
Dmpeg12framerate.c24 const AVRational ff_mpeg12_frame_rate_tab[16] = {
44 void ff_mpeg12_find_best_frame_rate(AVRational frame_rate, in ff_mpeg12_find_best_frame_rate()
51 AVRational best_error = { INT_MAX, 1 }; in ff_mpeg12_find_best_frame_rate()
67 AVRational test, error; in ff_mpeg12_find_best_frame_rate()
71 (AVRational) { n, d }); in ff_mpeg12_find_best_frame_rate()
Dcrystalhd.c581 avctx->sample_aspect_ratio = (AVRational) { 1, 1}; in receive_frame()
584 avctx->sample_aspect_ratio = (AVRational) { 12, 11}; in receive_frame()
587 avctx->sample_aspect_ratio = (AVRational) { 10, 11}; in receive_frame()
590 avctx->sample_aspect_ratio = (AVRational) { 16, 11}; in receive_frame()
593 avctx->sample_aspect_ratio = (AVRational) { 40, 33}; in receive_frame()
596 avctx->sample_aspect_ratio = (AVRational) { 24, 11}; in receive_frame()
599 avctx->sample_aspect_ratio = (AVRational) { 20, 11}; in receive_frame()
602 avctx->sample_aspect_ratio = (AVRational) { 32, 11}; in receive_frame()
605 avctx->sample_aspect_ratio = (AVRational) { 80, 33}; in receive_frame()
608 avctx->sample_aspect_ratio = (AVRational) { 18, 11}; in receive_frame()
[all …]
Dmpeg12data.h51 extern const AVRational ff_mpeg12_frame_rate_tab[];
52 extern const AVRational ff_mpeg2_frame_rate_tab[];
55 extern const AVRational ff_mpeg2_aspect[16];
Ddv_profile.h45 AVRational time_base; /* 1/framerate */
49 AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */
81 …le *av_dv_codec_profile2(int width, int height, enum AVPixelFormat pix_fmt, AVRational frame_rate);
Dmpeg12data.c308 const AVRational ff_mpeg2_frame_rate_tab[] = {
395 const AVRational ff_mpeg2_aspect[16]={
/third_party/ffmpeg/libavcodec/tests/
Dmpeg12framerate.c27 AVRational fr = frame_rate; \ in main()
38 AVRational fr = (AVRational) { frn, frd }; \ in main()
42 (AVRational) { n + 1, d + 1 })) != 0) { \ in main()
59 (AVRational) { 1, 1000 }), i, 0, 0); in main()
61 (AVRational) { 1, 1000 }), i, 0, 0); in main()
80 TEST_MATCH(((AVRational) { i, 1 }), 8, 3, 0); in main()
84 TEST_MATCH(((AVRational) { i, 100 }), 1, 0, 31); in main()
/third_party/ffmpeg/libavfilter/
Dvf_aspect.c61 AVRational dar;
62 AVRational sar;
78 static inline void compute_dar(AVRational *dar, AVRational sar, int w, int h) in compute_dar()
87 static int get_aspect_ratio(AVFilterLink *inlink, AVRational *aspect_ratio) in get_aspect_ratio()
133 AVRational dar; in setdar_config_props()
134 AVRational old_dar; in setdar_config_props()
135 AVRational old_sar = inlink->sample_aspect_ratio; in setdar_config_props()
148 outlink->sample_aspect_ratio = (AVRational){ 1, 1 }; in setdar_config_props()
149 dar = (AVRational){ inlink->w, inlink->h }; in setdar_config_props()
206 AVRational old_sar = inlink->sample_aspect_ratio; in setsar_config_props()
[all …]
Dbuffersrc.h82 AVRational time_base;
92 AVRational sample_aspect_ratio;
100 AVRational frame_rate;
Dframerate.h38 AVRational dest_frame_rate; ///< output frames per second
48 AVRational srce_time_base; ///< timebase of source
49 AVRational dest_time_base; ///< timebase of destination
Dbuffersink.h150 AVRational av_buffersink_get_time_base (const AVFilterContext *ctx);
153 AVRational av_buffersink_get_frame_rate (const AVFilterContext *ctx);
156 AVRational av_buffersink_get_sample_aspect_ratio (const AVFilterContext *ctx);
Daf_silencedetect.c46 AVRational time_base; ///< time_base
50 AVRational time_base);
80 AVRational time_base) in update()
88 (AVRational){ 1, s->last_sample_rate }, time_base); in update()
100 (AVRational){ 1, s->last_sample_rate }, time_base) in update()
123 AVRational time_base) \
190 (AVRational){ 1, s->last_sample_rate }, inlink->time_base); in filter_frame()
/third_party/ffmpeg/libavformat/
Dnut.h80 AVRational *time_base;
88 AVRational *time_base;
107 AVRational *time_base;
112 AVRational *max_pts_tb;
133 void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val);
Davformat.h904 AVRational time_base;
937 AVRational sample_aspect_ratio;
948 AVRational avg_frame_rate;
1017 AVRational r_frame_rate;
1124 AVRational av_stream_get_r_frame_rate(const AVStream *s);
1126 void av_stream_set_r_frame_rate(AVStream *s, AVRational r);
1193 AVRational time_base; ///< time base in which the start/end timestamps are specified
2931 AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *stream, AVFrame *frame);
2941 AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, AVFrame *frame);
3006 AVRational av_stream_get_codec_timebase(const AVStream *st);
/third_party/gstreamer/gst_libav/ext/libav/
Dgstavutils.h73 gst_ffmpeg_time_ff_to_gst (gint64 pts, AVRational base) in gst_ffmpeg_time_ff_to_gst()
80 AVRational bq = { 1, GST_SECOND }; in gst_ffmpeg_time_ff_to_gst()
88 gst_ffmpeg_time_gst_to_ff (guint64 time, AVRational base) in gst_ffmpeg_time_gst_to_ff()
95 AVRational bq = { 1, GST_SECOND }; in gst_ffmpeg_time_gst_to_ff()
/third_party/ffmpeg/fftools/
Dffmpeg.h253 AVRational sample_aspect_ratio;
276 AVRational frame_rate;
339 AVRational framerate; /* framerate forced with -r */
408 AVRational time_base; /* time base of the duration */
469 AVRational mux_timebase;
470 AVRational enc_timebase;
487 AVRational frame_rate;
488 AVRational max_frame_rate;
496 AVRational frame_aspect_ratio;

12345678910>>...16