Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
7d42fd6b
Commit
7d42fd6b
authored
Feb 23, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: remove disabled FF_API_FIND_BEST_PIX_FMT cruft
parent
84501710
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
51 deletions
+0
-51
avcodec.h
libavcodec/avcodec.h
+0
-30
imgconvert.c
libavcodec/imgconvert.c
+0
-18
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/avcodec.h
View file @
7d42fd6b
...
@@ -3978,36 +3978,6 @@ unsigned int avcodec_pix_fmt_to_codec_tag(enum AVPixelFormat pix_fmt);
...
@@ -3978,36 +3978,6 @@ unsigned int avcodec_pix_fmt_to_codec_tag(enum AVPixelFormat pix_fmt);
int
avcodec_get_pix_fmt_loss
(
enum
AVPixelFormat
dst_pix_fmt
,
enum
AVPixelFormat
src_pix_fmt
,
int
avcodec_get_pix_fmt_loss
(
enum
AVPixelFormat
dst_pix_fmt
,
enum
AVPixelFormat
src_pix_fmt
,
int
has_alpha
);
int
has_alpha
);
#if FF_API_FIND_BEST_PIX_FMT
/**
* @deprecated use avcodec_find_best_pix_fmt2() instead.
*
* Find the best pixel format to convert to given a certain source pixel
* format. When converting from one pixel format to another, information loss
* may occur. For example, when converting from RGB24 to GRAY, the color
* information will be lost. Similarly, other losses occur when converting from
* some formats to other formats. avcodec_find_best_pix_fmt() searches which of
* the given pixel formats should be used to suffer the least amount of loss.
* The pixel formats from which it chooses one, are determined by the
* pix_fmt_mask parameter.
*
* @code
* src_pix_fmt = AV_PIX_FMT_YUV420P;
* pix_fmt_mask = (1 << AV_PIX_FMT_YUV422P) || (1 << AV_PIX_FMT_RGB24);
* dst_pix_fmt = avcodec_find_best_pix_fmt(pix_fmt_mask, src_pix_fmt, alpha, &loss);
* @endcode
*
* @param[in] pix_fmt_mask bitmask determining which pixel format to choose from
* @param[in] src_pix_fmt source pixel format
* @param[in] has_alpha Whether the source pixel format alpha channel is used.
* @param[out] loss_ptr Combination of flags informing you what kind of losses will occur.
* @return The best pixel format to convert to or -1 if none was found.
*/
attribute_deprecated
enum
AVPixelFormat
avcodec_find_best_pix_fmt
(
int64_t
pix_fmt_mask
,
enum
AVPixelFormat
src_pix_fmt
,
int
has_alpha
,
int
*
loss_ptr
);
#endif
/* FF_API_FIND_BEST_PIX_FMT */
/**
/**
* Find the best pixel format to convert to given a certain source pixel
* Find the best pixel format to convert to given a certain source pixel
* format. When converting from one pixel format to another, information loss
* format. When converting from one pixel format to another, information loss
...
...
libavcodec/imgconvert.c
View file @
7d42fd6b
...
@@ -137,24 +137,6 @@ static enum AVPixelFormat avcodec_find_best_pix_fmt1(enum AVPixelFormat *pix_fmt
...
@@ -137,24 +137,6 @@ static enum AVPixelFormat avcodec_find_best_pix_fmt1(enum AVPixelFormat *pix_fmt
return
dst_pix_fmt
;
return
dst_pix_fmt
;
}
}
#if FF_API_FIND_BEST_PIX_FMT
enum
AVPixelFormat
avcodec_find_best_pix_fmt
(
int64_t
pix_fmt_mask
,
enum
AVPixelFormat
src_pix_fmt
,
int
has_alpha
,
int
*
loss_ptr
)
{
enum
AVPixelFormat
list
[
64
];
int
i
,
j
=
0
;
// test only the first 64 pixel formats to avoid undefined behaviour
for
(
i
=
0
;
i
<
64
;
i
++
)
{
if
(
pix_fmt_mask
&
(
1ULL
<<
i
))
list
[
j
++
]
=
i
;
}
list
[
j
]
=
AV_PIX_FMT_NONE
;
return
avcodec_find_best_pix_fmt2
(
list
,
src_pix_fmt
,
has_alpha
,
loss_ptr
);
}
#endif
/* FF_API_FIND_BEST_PIX_FMT */
enum
AVPixelFormat
avcodec_find_best_pix_fmt2
(
enum
AVPixelFormat
*
pix_fmt_list
,
enum
AVPixelFormat
avcodec_find_best_pix_fmt2
(
enum
AVPixelFormat
*
pix_fmt_list
,
enum
AVPixelFormat
src_pix_fmt
,
enum
AVPixelFormat
src_pix_fmt
,
int
has_alpha
,
int
*
loss_ptr
)
int
has_alpha
,
int
*
loss_ptr
)
...
...
libavcodec/version.h
View file @
7d42fd6b
...
@@ -49,9 +49,6 @@
...
@@ -49,9 +49,6 @@
#ifndef FF_API_REQUEST_CHANNELS
#ifndef FF_API_REQUEST_CHANNELS
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 56)
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 56)
#endif
#endif
#ifndef FF_API_FIND_BEST_PIX_FMT
#define FF_API_FIND_BEST_PIX_FMT (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#ifndef FF_API_CODEC_ID
#ifndef FF_API_CODEC_ID
#define FF_API_CODEC_ID (LIBAVCODEC_VERSION_MAJOR < 55)
#define FF_API_CODEC_ID (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment