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:
|
API changes, most recent first:
|
||||||
|
|
||||||
2014-08-04 - xxxxxxx - lavc 55.72.101 - avcodec.h
|
2014-08-04 - xxxxxxx - lavc 55.72.101 / 55.57.2 - avcodec.h
|
||||||
2014-08-04 - xxxxxxx - lavu 52.95.100 - frame.h
|
2014-08-04 - xxxxxxx - lavu 52.95.100 / 53.20.0 - frame.h
|
||||||
Deprecate AVCodecContext.dtg_active_format and use side-data instead
|
Deprecate AVCodecContext.dtg_active_format and use side-data instead.
|
||||||
|
|
||||||
2014-08-03 - xxxxxxx - lavc 55.72.100 - avcodec.h
|
2014-08-03 - xxxxxxx - lavc 55.72.100 - avcodec.h
|
||||||
Add get_pixels() to AVDCT
|
Add get_pixels() to AVDCT
|
||||||
|
@ -1698,7 +1698,7 @@ typedef struct AVCodecContext {
|
|||||||
*
|
*
|
||||||
* - encoding: unused
|
* - encoding: unused
|
||||||
* - decoding: Set by decoder.
|
* - decoding: Set by decoder.
|
||||||
* @deprecated Deprecated in favour of AVSideData
|
* @deprecated Deprecated in favor of AVSideData
|
||||||
*/
|
*/
|
||||||
attribute_deprecated int dtg_active_format;
|
attribute_deprecated int dtg_active_format;
|
||||||
#define FF_DTG_AFD_SAME 8
|
#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_4_3_SP_14_9 13
|
||||||
#define FF_DTG_AFD_16_9_SP_14_9 14
|
#define FF_DTG_AFD_16_9_SP_14_9 14
|
||||||
#define FF_DTG_AFD_SP_4_3 15
|
#define FF_DTG_AFD_SP_4_3 15
|
||||||
#endif
|
#endif /* FF_API_AFD */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* maximum motion estimation search range in subpel units
|
* maximum motion estimation search range in subpel units
|
||||||
|
@ -1663,13 +1663,13 @@ static int mpeg_field_start(MpegEncContext *s, const uint8_t *buf, int buf_size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (s1->has_afd) {
|
if (s1->has_afd) {
|
||||||
AVFrameSideData *sd = av_frame_new_side_data(
|
AVFrameSideData *sd =
|
||||||
s->current_picture_ptr->f, AV_FRAME_DATA_AFD,
|
av_frame_new_side_data(s->current_picture_ptr->f,
|
||||||
1);
|
AV_FRAME_DATA_AFD, 1);
|
||||||
if (!sd)
|
if (!sd)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
*sd->data = s1->afd;
|
*sd->data = s1->afd;
|
||||||
s1->has_afd = 0;
|
s1->has_afd = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2278,7 +2278,7 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
|
|||||||
{
|
{
|
||||||
Mpeg1Context *s = avctx->priv_data;
|
Mpeg1Context *s = avctx->priv_data;
|
||||||
const uint8_t *buf_end = p + buf_size;
|
const uint8_t *buf_end = p + buf_size;
|
||||||
Mpeg1Context *s1 = avctx->priv_data;
|
Mpeg1Context *s1 = avctx->priv_data;
|
||||||
|
|
||||||
if (buf_size > 29){
|
if (buf_size > 29){
|
||||||
int i;
|
int i;
|
||||||
@ -2307,9 +2307,9 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
|
|||||||
return;
|
return;
|
||||||
#if FF_API_AFD
|
#if FF_API_AFD
|
||||||
avctx->dtg_active_format = p[0] & 0x0f;
|
avctx->dtg_active_format = p[0] & 0x0f;
|
||||||
#endif
|
#endif /* FF_API_AFD */
|
||||||
s1->has_afd = 1;
|
s1->has_afd = 1;
|
||||||
s1->afd = p[0] & 0x0f;
|
s1->afd = p[0] & 0x0f;
|
||||||
}
|
}
|
||||||
} else if (buf_end - p >= 6 &&
|
} else if (buf_end - p >= 6 &&
|
||||||
p[0] == 'J' && p[1] == 'P' && p[2] == '3' && p[3] == 'D' &&
|
p[0] == 'J' && p[1] == 'P' && p[2] == '3' && p[3] == 'D' &&
|
||||||
|
@ -148,7 +148,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
av_display_rotation_get((int32_t *)sd->data));
|
av_display_rotation_get((int32_t *)sd->data));
|
||||||
break;
|
break;
|
||||||
case AV_FRAME_DATA_AFD:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
|
av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
|
||||||
|
@ -83,21 +83,20 @@ enum AVFrameSideDataType {
|
|||||||
*/
|
*/
|
||||||
AV_FRAME_DATA_DISPLAYMATRIX,
|
AV_FRAME_DATA_DISPLAYMATRIX,
|
||||||
/**
|
/**
|
||||||
* Active Format Description data consisting of a single byte as specified in ETSI TS 101 154
|
* Active Format Description data consisting of a single byte as specified
|
||||||
* using AVActiveFormatDescription enum
|
* in ETSI TS 101 154 using AVActiveFormatDescription enum.
|
||||||
*/
|
*/
|
||||||
AV_FRAME_DATA_AFD,
|
AV_FRAME_DATA_AFD,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum AVActiveFormatDescription
|
enum AVActiveFormatDescription {
|
||||||
{
|
AV_AFD_SAME = 8,
|
||||||
AV_AFD_SAME = 8,
|
AV_AFD_4_3 = 9,
|
||||||
AV_AFD_4_3 = 9,
|
AV_AFD_16_9 = 10,
|
||||||
AV_AFD_16_9 = 10,
|
AV_AFD_14_9 = 11,
|
||||||
AV_AFD_14_9 = 11,
|
|
||||||
AV_AFD_4_3_SP_14_9 = 13,
|
AV_AFD_4_3_SP_14_9 = 13,
|
||||||
AV_AFD_16_9_SP_14_9 = 14,
|
AV_AFD_16_9_SP_14_9 = 14,
|
||||||
AV_AFD_SP_4_3 = 15
|
AV_AFD_SP_4_3 = 15,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct AVFrameSideData {
|
typedef struct AVFrameSideData {
|
||||||
|
Loading…
Reference in New Issue
Block a user