Update codec capabilities 84/304084/5
authorhjkim <backto.kim@samsung.com>
Wed, 10 Jan 2024 01:57:56 +0000 (10:57 +0900)
committerhjkim <backto.kim@samsung.com>
Fri, 12 Jan 2024 01:51:45 +0000 (10:51 +0900)
Change-Id: Ia46d4099704b11144bb583cb26b696afb75b882e

formats/ffmpeg/mm_file_format_ffmpeg.c
packaging/libmm-fileinfo.spec

index 9cd144d..f7ed16f 100644 (file)
@@ -845,14 +845,24 @@ int mmfile_format_read_frame_ffmpg(MMFileFormatContext *formatContext, unsigned
        }
 
        debug_msg(RELEASE, "flag: 0x%08X", pVideoCodec->capabilities);
-       /* debug_msg(RELEASE, "  DRAW_HORIZ_BAND : %d", pVideoCodec->capabilities & CODEC_CAP_DRAW_HORIZ_BAND ? 1 : 0); */
-       /* debug_msg(RELEASE, "  DR1             : %d", pVideoCodec->capabilities & CODEC_CAP_DR1 ? 1 : 0); */
-       /* debug_msg(RELEASE, "  PARSE_ONLY      : %d", pVideoCodec->capabilities & CODEC_CAP_PARSE_ONLY ? 1 : 0); */
-       /* debug_msg(RELEASE, "  TRUNCATED       : %d", pVideoCodec->capabilities & CODEC_CAP_TRUNCATED ? 1 : 0); */
-       /* debug_msg(RELEASE, "  HWACCEL         : %d", pVideoCodec->capabilities & CODEC_CAP_HWACCEL ? 1 : 0); */
-       /* debug_msg(RELEASE, "  DELAY           : %d", pVideoCodec->capabilities & CODEC_CAP_DELAY ? 1 : 0); */
-       /* debug_msg(RELEASE, "  SMALL_LAST_FRAME: %d", pVideoCodec->capabilities & CODEC_CAP_SMALL_LAST_FRAME ? 1 : 0); */
-       /* debug_msg(RELEASE, "  HWACCEL_VDPAU   : %d", pVideoCodec->capabilities & CODEC_CAP_HWACCEL_VDPAU ? 1 : 0); */
+
+       debug_msg(RELEASE, "  AV_CODEC_CAP_DRAW_HORIZ_BAND : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_DRAW_HORIZ_BAND));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_DR1 : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_DR1));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_DELAY : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_DELAY));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_SMALL_LAST_FRAME : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_SMALL_LAST_FRAME));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_EXPERIMENTAL : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_EXPERIMENTAL));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_CHANNEL_CONF : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_CHANNEL_CONF));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_FRAME_THREADS : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_FRAME_THREADS));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_SLICE_THREADS : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_SLICE_THREADS));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_PARAM_CHANGE : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_PARAM_CHANGE));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_OTHER_THREADS : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_OTHER_THREADS));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_VARIABLE_FRAME_SIZE : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_AVOID_PROBING : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_AVOID_PROBING));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_HARDWARE : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_HARDWARE));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_HYBRID : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_HYBRID));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_ENCODER_FLUSH : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_ENCODER_FLUSH));
+       debug_msg(RELEASE, "  AV_CODEC_CAP_ENCODER_RECON_FRAME : %d", (bool)(pVideoCodec->capabilities & AV_CODEC_CAP_ENCODER_RECON_FRAME));
 
        /*set workaround bug flag*/
        pVideoCodecCtx->workaround_bugs = FF_BUG_AUTODETECT;
index 653cf12..4bd46a9 100644 (file)
@@ -1,6 +1,6 @@
 Name:      libmm-fileinfo
 Summary:    Media Fileinfo
-Version:    1.0.22
+Version:    1.0.23
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0