History

avcodec: add a Film Grain codec property flag

James Almer committed 5 years ago

Commit 590a7e01 parent 6dd714919 files · +31 −15Browse files

Showing the changes to libavcodec (3 of 19 files). Show all

Unified · Split

3 files
  1. libavcodec/avcodec.c +2 −0
  2. libavcodec/avcodec.h +1 −0
  3. libavcodec/version.h +2 −2
libavcodec/avcodec.c+2−0
@@ -658,6 +658,8 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) · 657 unmodified lines
658658 } else {
659659 if (enc->properties & FF_CODEC_PROPERTY_CLOSED_CAPTIONS)
660660 av_bprintf(&bprint, ", Closed Captions");
661+ if (enc->properties & FF_CODEC_PROPERTY_FILM_GRAIN)
662+ av_bprintf(&bprint, ", Film Grain");
661663 if (enc->properties & FF_CODEC_PROPERTY_LOSSLESS)
662664 av_bprintf(&bprint, ", lossless");
663665 }
libavcodec/avcodec.h+1−0
@@ -1818,6 +1818,7 @@ typedef struct AVCodecContext { · 1817 unmodified lines
18181818 unsigned properties;
18191819 #define FF_CODEC_PROPERTY_LOSSLESS 0x00000001
18201820 #define FF_CODEC_PROPERTY_CLOSED_CAPTIONS 0x00000002
1821+#define FF_CODEC_PROPERTY_FILM_GRAIN 0x00000004
18211822
18221823 /**
18231824 * Additional data associated with the entire coded stream.
libavcodec/version.h+2−2
@@ -28,8 +28,8 @@ · 27 unmodified lines
2828 #include "libavutil/version.h"
2929
3030 #define LIBAVCODEC_VERSION_MAJOR 59
31−#define LIBAVCODEC_VERSION_MINOR 5
32−#define LIBAVCODEC_VERSION_MICRO 101
31+#define LIBAVCODEC_VERSION_MINOR 6
32+#define LIBAVCODEC_VERSION_MICRO 100
3333
3434 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
3535 LIBAVCODEC_VERSION_MINOR, \

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