2014-06-20 06:05:45 -07:00
|
|
|
/*
|
2014-06-23 03:48:30 +02:00
|
|
|
* This file is part of FFmpeg.
|
2014-06-20 06:05:45 -07:00
|
|
|
*
|
2014-06-23 03:48:30 +02:00
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2014-06-20 06:05:45 -07:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
2014-06-23 03:48:30 +02:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2014-06-20 06:05:45 -07:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2014-06-23 03:48:30 +02:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2014-06-20 06:05:45 -07:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef AVCODEC_MPEG_ER_H
|
|
|
|
|
#define AVCODEC_MPEG_ER_H
|
|
|
|
|
|
|
|
|
|
#include "mpegvideo.h"
|
|
|
|
|
|
2015-06-10 14:29:04 +01:00
|
|
|
int ff_mpeg_er_init(MpegEncContext *s);
|
2014-06-20 06:05:45 -07:00
|
|
|
void ff_mpeg_er_frame_start(MpegEncContext *s);
|
|
|
|
|
|
2025-06-22 13:58:11 +02:00
|
|
|
static inline void ff_mpv_er_frame_start_ext(MPVContext *const s, int partitioned_frame,
|
|
|
|
|
uint16_t pp_time, uint16_t pb_time)
|
|
|
|
|
{
|
|
|
|
|
s->er.partitioned_frame = partitioned_frame;
|
|
|
|
|
s->er.pp_time = pp_time;
|
|
|
|
|
s->er.pb_time = pb_time;
|
|
|
|
|
ff_mpeg_er_frame_start(s);
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-20 06:05:45 -07:00
|
|
|
#endif /* AVCODEC_MPEG_ER_H */
|