History

lavc/avcodec: Add HEVC Screen Content Coding Extensions profile

Described in HEVC spec A.3.7. Bump minor version and add APIchanges entry for new added profile.

Linjie Fu committed 3 years ago

Commit f4593771 parent b09f31a5 files · +8 −1Browse files

Unified · Split

5 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +1 −0
  3. libavcodec/hevc_ps.c +2 −0
  4. libavcodec/profiles.c +1 −0
  5. libavcodec/version.h +1 −1
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2023-02-25 - xxxxxxxxxx - lavc 60.5.100 - avcodec.h
6+ Add FF_PROFILE_HEVC_SCC.
7+
58 -------- 8< --------- FFmpeg 6.0 was cut here -------- 8< ---------
69
710 2023-02-16 - 927042b409 - lavf 60.2.100 - avformat.h
libavcodec/avcodec.h+1−0
@@ -1654,6 +1654,7 @@ typedef struct AVCodecContext { · 1653 unmodified lines
16541654 #define FF_PROFILE_HEVC_MAIN_10 2
16551655 #define FF_PROFILE_HEVC_MAIN_STILL_PICTURE 3
16561656 #define FF_PROFILE_HEVC_REXT 4
1657+#define FF_PROFILE_HEVC_SCC 9
16571658
16581659 #define FF_PROFILE_VVC_MAIN_10 1
16591660 #define FF_PROFILE_VVC_MAIN_10_444 33
libavcodec/hevc_ps.c+2−0
@@ -259,6 +259,8 @@ static int decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx, · 258 unmodified lines
259259 av_log(avctx, AV_LOG_DEBUG, "Main Still Picture profile bitstream\n");
260260 else if (ptl->profile_idc == FF_PROFILE_HEVC_REXT)
261261 av_log(avctx, AV_LOG_DEBUG, "Range Extension profile bitstream\n");
262+ else if (ptl->profile_idc == FF_PROFILE_HEVC_SCC)
263+ av_log(avctx, AV_LOG_DEBUG, "Screen Content Coding Extension profile bitstream\n");
262264 else
263265 av_log(avctx, AV_LOG_WARNING, "Unknown HEVC profile: %d\n", ptl->profile_idc);
264266
libavcodec/profiles.c+1−0
@@ -85,6 +85,7 @@ const AVProfile ff_hevc_profiles[] = { · 84 unmodified lines
8585 { FF_PROFILE_HEVC_MAIN_10, "Main 10" },
8686 { FF_PROFILE_HEVC_MAIN_STILL_PICTURE, "Main Still Picture" },
8787 { FF_PROFILE_HEVC_REXT, "Rext" },
88+ { FF_PROFILE_HEVC_SCC, "Scc" },
8889 { FF_PROFILE_UNKNOWN },
8990 };
9091
libavcodec/version.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929
3030 #include "version_major.h"
3131
32−#define LIBAVCODEC_VERSION_MINOR 4
32+#define LIBAVCODEC_VERSION_MINOR 5
3333 #define LIBAVCODEC_VERSION_MICRO 100
3434
3535 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \

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