mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '1ef9e8376466bb1e2c147e47554b94cab9c8b04a'
* commit '1ef9e8376466bb1e2c147e47554b94cab9c8b04a':
avcodec: Deprecate dtg_active_format field in favor of avframe side-data
Conflicts:
doc/APIchanges
libavcodec/avcodec.h
libavcodec/mpeg12dec.c
libavcodec/version.h
libavfilter/vf_showinfo.c
libavutil/frame.h
libavutil/version.h
See: 2a3c36e920
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
71d008ebe4
@ -15,9 +15,9 @@ libavutil: 2012-10-22
|
||||
|
||||
API changes, most recent first:
|
||||
|
||||
2014-08-04 - xxxxxxx - lavc 55.72.101 - avcodec.h
|
||||
2014-08-04 - xxxxxxx - lavu 52.95.100 - frame.h
|
||||
Deprecate AVCodecContext.dtg_active_format and use side-data instead
|
||||
2014-08-04 - xxxxxxx - lavc 55.72.101 / 55.57.2 - avcodec.h
|
||||
2014-08-04 - xxxxxxx - lavu 52.95.100 / 53.20.0 - frame.h
|
||||
Deprecate AVCodecContext.dtg_active_format and use side-data instead.
|
||||
|
||||
2014-08-03 - xxxxxxx - lavc 55.72.100 - avcodec.h
|
||||
Add get_pixels() to AVDCT
|
||||
|
@ -1698,7 +1698,7 @@ typedef struct AVCodecContext {
|
||||
*
|
||||
* - encoding: unused
|
||||
* - decoding: Set by decoder.
|
||||
* @deprecated Deprecated in favour of AVSideData
|
||||
* @deprecated Deprecated in favor of AVSideData
|
||||
*/
|
||||
attribute_deprecated int dtg_active_format;
|
||||
#define FF_DTG_AFD_SAME 8
|
||||
@ -1708,7 +1708,7 @@ typedef struct AVCodecContext {
|
||||
#define FF_DTG_AFD_4_3_SP_14_9 13
|
||||
#define FF_DTG_AFD_16_9_SP_14_9 14
|
||||
#define FF_DTG_AFD_SP_4_3 15
|
||||
#endif
|
||||
#endif /* FF_API_AFD */
|
||||
|
||||
/**
|
||||
* maximum motion estimation search range in subpel units
|
||||
|
@ -1663,9 +1663,9 @@ static int mpeg_field_start(MpegEncContext *s, const uint8_t *buf, int buf_size)
|
||||
}
|
||||
|
||||
if (s1->has_afd) {
|
||||
AVFrameSideData *sd = av_frame_new_side_data(
|
||||
s->current_picture_ptr->f, AV_FRAME_DATA_AFD,
|
||||
1);
|
||||
AVFrameSideData *sd =
|
||||
av_frame_new_side_data(s->current_picture_ptr->f,
|
||||
AV_FRAME_DATA_AFD, 1);
|
||||
if (!sd)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
@ -2307,7 +2307,7 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
|
||||
return;
|
||||
#if FF_API_AFD
|
||||
avctx->dtg_active_format = p[0] & 0x0f;
|
||||
#endif
|
||||
#endif /* FF_API_AFD */
|
||||
s1->has_afd = 1;
|
||||
s1->afd = p[0] & 0x0f;
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
av_display_rotation_get((int32_t *)sd->data));
|
||||
break;
|
||||
case AV_FRAME_DATA_AFD:
|
||||
av_log(ctx, AV_LOG_INFO, "afd: value of %u", sd->data[0]);
|
||||
av_log(ctx, AV_LOG_INFO, "afd: value of %"PRIu8, sd->data[0]);
|
||||
break;
|
||||
default:
|
||||
av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
|
||||
|
@ -83,21 +83,20 @@ enum AVFrameSideDataType {
|
||||
*/
|
||||
AV_FRAME_DATA_DISPLAYMATRIX,
|
||||
/**
|
||||
* Active Format Description data consisting of a single byte as specified in ETSI TS 101 154
|
||||
* using AVActiveFormatDescription enum
|
||||
* Active Format Description data consisting of a single byte as specified
|
||||
* in ETSI TS 101 154 using AVActiveFormatDescription enum.
|
||||
*/
|
||||
AV_FRAME_DATA_AFD,
|
||||
};
|
||||
|
||||
enum AVActiveFormatDescription
|
||||
{
|
||||
enum AVActiveFormatDescription {
|
||||
AV_AFD_SAME = 8,
|
||||
AV_AFD_4_3 = 9,
|
||||
AV_AFD_16_9 = 10,
|
||||
AV_AFD_14_9 = 11,
|
||||
AV_AFD_4_3_SP_14_9 = 13,
|
||||
AV_AFD_16_9_SP_14_9 = 14,
|
||||
AV_AFD_SP_4_3 = 15
|
||||
AV_AFD_SP_4_3 = 15,
|
||||
};
|
||||
|
||||
typedef struct AVFrameSideData {
|
||||
|
Loading…
Reference in New Issue
Block a user