History

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

Michael Niedermayer committed 12 years ago

Commit 71d008e2 parents 2a3c36e 1ef9e835 files · +21 −22Browse files

Unified · Split

5 files
  1. doc/APIchanges +3 −3
  2. libavcodec/avcodec.h +2 −2
  3. libavcodec/mpeg12dec.c +7 −7
  4. libavfilter/vf_showinfo.c +1 −1
  5. libavutil/frame.h +8 −9
doc/APIchanges+3−3
@@ -15,9 +15,9 @@ libavutil: 2012-10-22 · 14 unmodified lines
1515
1616 API changes, most recent first:
1717
18−2014-08-04 - xxxxxxx - lavc 55.72.101 - avcodec.h
19−2014-08-04 - xxxxxxx - lavu 52.95.100 - frame.h
20− Deprecate AVCodecContext.dtg_active_format and use side-data instead
18+2014-08-04 - xxxxxxx - lavc 55.72.101 / 55.57.2 - avcodec.h
19+2014-08-04 - xxxxxxx - lavu 52.95.100 / 53.20.0 - frame.h
20+ Deprecate AVCodecContext.dtg_active_format and use side-data instead.
2121
2222 2014-08-03 - xxxxxxx - lavc 55.72.100 - avcodec.h
2323 Add get_pixels() to AVDCT
libavcodec/avcodec.h+2−2
@@ -1698,7 +1698,7 @@ typedef struct AVCodecContext { · 1697 unmodified lines
16981698 *
16991699 * - encoding: unused
17001700 * - decoding: Set by decoder.
1701− * @deprecated Deprecated in favour of AVSideData
1701+ * @deprecated Deprecated in favor of AVSideData
17021702 */
17031703 attribute_deprecated int dtg_active_format;
17041704 #define FF_DTG_AFD_SAME 8
@@ -1708,7 +1708,7 @@ typedef struct AVCodecContext { · 3 unmodified lines
17081708 #define FF_DTG_AFD_4_3_SP_14_9 13
17091709 #define FF_DTG_AFD_16_9_SP_14_9 14
17101710 #define FF_DTG_AFD_SP_4_3 15
1711−#endif
1711+#endif /* FF_API_AFD */
17121712
17131713 /**
17141714 * maximum motion estimation search range in subpel units
libavcodec/mpeg12dec.c+7−7
@@ -1663,13 +1663,13 @@ static int mpeg_field_start(MpegEncContext *s, const uint8_t *buf, int buf_size) · 1662 unmodified lines
16631663 }
16641664
16651665 if (s1->has_afd) {
1666− AVFrameSideData *sd = av_frame_new_side_data(
1667− s->current_picture_ptr->f, AV_FRAME_DATA_AFD,
1668− 1);
1666+ AVFrameSideData *sd =
1667+ av_frame_new_side_data(s->current_picture_ptr->f,
1668+ AV_FRAME_DATA_AFD, 1);
16691669 if (!sd)
16701670 return AVERROR(ENOMEM);
16711671
1672− *sd->data = s1->afd;
1672+ *sd->data = s1->afd;
16731673 s1->has_afd = 0;
16741674 }
16751675
@@ -2278,7 +2278,7 @@ static void mpeg_decode_user_data(AVCodecContext *avctx, · 602 unmodified lines
22782278 {
22792279 Mpeg1Context *s = avctx->priv_data;
22802280 const uint8_t *buf_end = p + buf_size;
2281− Mpeg1Context *s1 = avctx->priv_data;
2281+ Mpeg1Context *s1 = avctx->priv_data;
22822282
22832283 if (buf_size > 29){
22842284 int i;
@@ -2307,9 +2307,9 @@ static void mpeg_decode_user_data(AVCodecContext *avctx, · 22 unmodified lines
23072307 return;
23082308 #if FF_API_AFD
23092309 avctx->dtg_active_format = p[0] & 0x0f;
2310−#endif
2310+#endif /* FF_API_AFD */
23112311 s1->has_afd = 1;
2312− s1->afd = p[0] & 0x0f;
2312+ s1->afd = p[0] & 0x0f;
23132313 }
23142314 } else if (buf_end - p >= 6 &&
23152315 p[0] == 'J' && p[1] == 'P' && p[2] == '3' && p[3] == 'D' &&
libavfilter/vf_showinfo.c+1−1
@@ -148,7 +148,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 147 unmodified lines
148148 av_display_rotation_get((int32_t *)sd->data));
149149 break;
150150 case AV_FRAME_DATA_AFD:
151− av_log(ctx, AV_LOG_INFO, "afd: value of %u", sd->data[0]);
151+ av_log(ctx, AV_LOG_INFO, "afd: value of %"PRIu8, sd->data[0]);
152152 break;
153153 default:
154154 av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
libavutil/frame.h+8−9
@@ -83,21 +83,20 @@ enum AVFrameSideDataType { · 82 unmodified lines
8383 */
8484 AV_FRAME_DATA_DISPLAYMATRIX,
8585 /**
86− * Active Format Description data consisting of a single byte as specified in ETSI TS 101 154
87− * using AVActiveFormatDescription enum
86+ * Active Format Description data consisting of a single byte as specified
87+ * in ETSI TS 101 154 using AVActiveFormatDescription enum.
8888 */
8989 AV_FRAME_DATA_AFD,
9090 };
9191
92−enum AVActiveFormatDescription
93−{
94− AV_AFD_SAME = 8,
95− AV_AFD_4_3 = 9,
96− AV_AFD_16_9 = 10,
97− AV_AFD_14_9 = 11,
92+enum AVActiveFormatDescription {
93+ AV_AFD_SAME = 8,
94+ AV_AFD_4_3 = 9,
95+ AV_AFD_16_9 = 10,
96+ AV_AFD_14_9 = 11,
9897 AV_AFD_4_3_SP_14_9 = 13,
9998 AV_AFD_16_9_SP_14_9 = 14,
100− AV_AFD_SP_4_3 = 15
99+ AV_AFD_SP_4_3 = 15,
101100 };
102101
103102 typedef struct AVFrameSideData {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t