History

avcodec: Add discard_sample_percentage

Michael Niedermayer committed 7 years ago

Commit 5bcefce1 parent b860f226 files · +17 −1Browse files

Unified · Split

6 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +8 −0
  3. libavcodec/options_table.h +1 −0
  4. libavcodec/version.h +1 −1
  5. tests/ref/fate/api-mjpeg-codec-param +2 −0
  6. tests/ref/fate/api-png-codec-param +2 −0
doc/APIchanges+3−0
@@ -15,6 +15,9 @@ libavutil: 2017-10-21 · 14 unmodified lines
15 15
16API changes, most recent first:16API changes, most recent first:
17 17
182019-01-27 - XXXXXXXXXX - lavc 58.46.100 - avcodec.h
19 Add discard_damaged_percentage
20
182019-01-08 - xxxxxxxxxx - lavu 56.26.100 - frame.h212019-01-08 - xxxxxxxxxx - lavu 56.26.100 - frame.h
19 Add AV_FRAME_DATA_REGIONS_OF_INTEREST22 Add AV_FRAME_DATA_REGIONS_OF_INTEREST
20 23
libavcodec/avcodec.h+8−0
@@ -3345,6 +3345,14 @@ typedef struct AVCodecContext { · 3344 unmodified lines
3345 * used as reference pictures).3345 * used as reference pictures).
3346 */3346 */
3347 int extra_hw_frames;3347 int extra_hw_frames;
3348
3349 /**
3350 * The percentage of damaged samples to discard a frame.
3351 *
3352 * - decoding: set by user
3353 * - encoding: unused
3354 */
3355 int discard_damaged_percentage;
3348} AVCodecContext;3356} AVCodecContext;
3349 3357
3350#if FF_API_CODEC_GET_SET3358#if FF_API_CODEC_GET_SET
libavcodec/options_table.h+1−0
@@ -479,6 +479,7 @@ static const AVOption avcodec_options[] = { · 478 unmodified lines
479{"allow_high_depth", "allow to output YUV pixel formats with a different chroma sampling than 4:2:0 and/or other than 8 bits per component", 0, AV_OPT_TYPE_CONST, {.i64 = AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH }, INT_MIN, INT_MAX, V | D, "hwaccel_flags"},479{"allow_high_depth", "allow to output YUV pixel formats with a different chroma sampling than 4:2:0 and/or other than 8 bits per component", 0, AV_OPT_TYPE_CONST, {.i64 = AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH }, INT_MIN, INT_MAX, V | D, "hwaccel_flags"},
480{"allow_profile_mismatch", "attempt to decode anyway if HW accelerated decoder's supported profiles do not exactly match the stream", 0, AV_OPT_TYPE_CONST, {.i64 = AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH }, INT_MIN, INT_MAX, V | D, "hwaccel_flags"},480{"allow_profile_mismatch", "attempt to decode anyway if HW accelerated decoder's supported profiles do not exactly match the stream", 0, AV_OPT_TYPE_CONST, {.i64 = AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH }, INT_MIN, INT_MAX, V | D, "hwaccel_flags"},
481{"extra_hw_frames", "Number of extra hardware frames to allocate for the user", OFFSET(extra_hw_frames), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, V|D },481{"extra_hw_frames", "Number of extra hardware frames to allocate for the user", OFFSET(extra_hw_frames), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, V|D },
482{"discard_damaged_percentage", "Percentage of damaged samples to discard a frame", OFFSET(discard_damaged_percentage), AV_OPT_TYPE_INT, {.i64 = 95 }, 0, 100, V|D },
482{NULL},483{NULL},
483};484};
484 485
libavcodec/version.h+1−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
28#include "libavutil/version.h"28#include "libavutil/version.h"
29 29
30#define LIBAVCODEC_VERSION_MAJOR 5830#define LIBAVCODEC_VERSION_MAJOR 58
31#define LIBAVCODEC_VERSION_MINOR 4531#define LIBAVCODEC_VERSION_MINOR 46
32#define LIBAVCODEC_VERSION_MICRO 10032#define LIBAVCODEC_VERSION_MICRO 100
33 33
34#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \34#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
tests/ref/fate/api-mjpeg-codec-param+2−0
@@ -138,6 +138,7 @@ stream=0, decode=0 · 137 unmodified lines
138 max_pixels=2147483647138 max_pixels=2147483647
139 hwaccel_flags=0x00000001139 hwaccel_flags=0x00000001
140 extra_hw_frames=-1140 extra_hw_frames=-1
141 discard_damaged_percentage=95
141stream=0, decode=1142stream=0, decode=1
142 b=0143 b=0
143 ab=0144 ab=0
@@ -278,3 +279,4 @@ stream=0, decode=1 · 134 unmodified lines
278 max_pixels=2147483647279 max_pixels=2147483647
279 hwaccel_flags=0x00000001280 hwaccel_flags=0x00000001
280 extra_hw_frames=-1281 extra_hw_frames=-1
282 discard_damaged_percentage=95
tests/ref/fate/api-png-codec-param+2−0
@@ -138,6 +138,7 @@ stream=0, decode=0 · 137 unmodified lines
138 max_pixels=2147483647138 max_pixels=2147483647
139 hwaccel_flags=0x00000001139 hwaccel_flags=0x00000001
140 extra_hw_frames=-1140 extra_hw_frames=-1
141 discard_damaged_percentage=95
141stream=0, decode=1142stream=0, decode=1
142 b=0143 b=0
143 ab=0144 ab=0
@@ -278,3 +279,4 @@ stream=0, decode=1 · 134 unmodified lines
278 max_pixels=2147483647279 max_pixels=2147483647
279 hwaccel_flags=0x00000001280 hwaccel_flags=0x00000001
280 extra_hw_frames=-1281 extra_hw_frames=-1
282 discard_damaged_percentage=95

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