Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
074c4ca7
Commit
074c4ca7
authored
21 years ago
by
Roberto Togni
Browse files
Options
Downloads
Patches
Plain Diff
Add cr codec capability and buffer hints
Originally committed as revision 2484 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
46888748
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/avcodec.h
+24
-1
24 additions, 1 deletion
libavcodec/avcodec.h
libavcodec/utils.c
+1
-0
1 addition, 0 deletions
libavcodec/utils.c
with
25 additions
and
1 deletion
libavcodec/avcodec.h
+
24
−
1
View file @
074c4ca7
...
...
@@ -16,7 +16,7 @@ extern "C" {
#define FFMPEG_VERSION_INT 0x000408
#define FFMPEG_VERSION "0.4.8"
#define LIBAVCODEC_BUILD 469
0
#define LIBAVCODEC_BUILD 469
1
#define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT
#define LIBAVCODEC_VERSION FFMPEG_VERSION
...
...
@@ -275,6 +275,10 @@ static const __attribute__((unused)) int Motion_Est_QTab[] =
used */
#define CODEC_CAP_PARSE_ONLY 0x0004
#define CODEC_CAP_TRUNCATED 0x0008
/*
* Codec can use conditional replenishment if available.
*/
#define CODEC_CAP_CR 0x0010
/**
* Pan Scan area.
...
...
@@ -460,6 +464,13 @@ typedef struct AVPanScan{
* - decoding: set by lavc (default 0)\
*/
\
int palette_has_changed;\
\
/**\
* Codec suggestion on buffer type if != 0\
* - encoding: unused\
* - decoding: set by lavc (before get_buffer() call))\
*/
\
int buffer_hints;\
#define FF_QSCALE_TYPE_MPEG1 0
#define FF_QSCALE_TYPE_MPEG2 1
...
...
@@ -477,6 +488,11 @@ typedef struct AVPanScan{
#define FF_SI_TYPE 5
#define FF_SP_TYPE 6
#define FF_BUFFER_HINTS_VALID 0x01 // Buffer hints value is meaningful (if 0 ignore)
#define FF_BUFFER_HINTS_READABLE 0x02 // Codec will read from buffer
#define FF_BUFFER_HINTS_PRESERVE 0x04 // User must not alter buffer content
#define FF_BUFFER_HINTS_REUSABLE 0x08 // Codec will reuse the buffer (update)
/**
* Audio Video Frame.
*/
...
...
@@ -1366,6 +1382,13 @@ typedef struct AVCodecContext {
*/
int
noise_reduction
;
/**
* Conditional replenishment support
* - encoding: unused
* - decoding: set by user, if 1 user can allocate reusable buffers
*/
int
cr_available
;
}
AVCodecContext
;
...
...
This diff is collapsed.
Click to expand it.
libavcodec/utils.c
+
1
−
0
View file @
074c4ca7
...
...
@@ -326,6 +326,7 @@ void avcodec_get_context_defaults(AVCodecContext *s){
s
->
intra_quant_bias
=
FF_DEFAULT_QUANT_BIAS
;
s
->
inter_quant_bias
=
FF_DEFAULT_QUANT_BIAS
;
s
->
palctrl
=
NULL
;
s
->
cr_available
=
0
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment