Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6aadfbda
Commit
6aadfbda
authored
Apr 08, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc doxy: add AVPicture functions to a doxy group.
parent
56512ce1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
23 deletions
+44
-23
avcodec.h
libavcodec/avcodec.h
+44
-23
No files found.
libavcodec/avcodec.h
View file @
6aadfbda
...
...
@@ -3005,6 +3005,13 @@ typedef struct AVHWAccel {
int
priv_data_size
;
}
AVHWAccel
;
/**
* @defgroup lavc_picture AVPicture
*
* Functions for working with AVPicture
* @{
*/
/**
* four components are given, that's all.
* the last component is alpha
...
...
@@ -3014,6 +3021,10 @@ typedef struct AVPicture {
int
linesize
[
AV_NUM_DATA_POINTERS
];
///< number of bytes per line
}
AVPicture
;
/**
* @}
*/
#define AVPALETTE_SIZE 1024
#define AVPALETTE_COUNT 256
...
...
@@ -4005,6 +4016,11 @@ void av_resample_close(struct AVResampleContext *c);
* @}
*/
/**
* @addtogroup lavc_picture
* @{
*/
/**
* Allocate memory for a picture. Call avpicture_free() to free it.
*
...
...
@@ -4081,6 +4097,34 @@ int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width,
* @return Image data size in bytes or -1 on error (e.g. too large dimensions).
*/
int
avpicture_get_size
(
enum
PixelFormat
pix_fmt
,
int
width
,
int
height
);
/**
* deinterlace - if not supported return -1
*/
int
avpicture_deinterlace
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
enum
PixelFormat
pix_fmt
,
int
width
,
int
height
);
/**
* Copy image src to dst. Wraps av_picture_data_copy() above.
*/
void
av_picture_copy
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
enum
PixelFormat
pix_fmt
,
int
width
,
int
height
);
/**
* Crop image top and left side.
*/
int
av_picture_crop
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
enum
PixelFormat
pix_fmt
,
int
top_band
,
int
left_band
);
/**
* Pad image.
*/
int
av_picture_pad
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
int
height
,
int
width
,
enum
PixelFormat
pix_fmt
,
int
padtop
,
int
padbottom
,
int
padleft
,
int
padright
,
int
*
color
);
/**
* @}
*/
void
avcodec_get_chroma_sub_sample
(
enum
PixelFormat
pix_fmt
,
int
*
h_shift
,
int
*
v_shift
);
void
avcodec_set_dimensions
(
AVCodecContext
*
s
,
int
width
,
int
height
);
...
...
@@ -4153,11 +4197,6 @@ int avcodec_get_pix_fmt_loss(enum PixelFormat dst_pix_fmt, enum PixelFormat src_
enum
PixelFormat
avcodec_find_best_pix_fmt
(
int64_t
pix_fmt_mask
,
enum
PixelFormat
src_pix_fmt
,
int
has_alpha
,
int
*
loss_ptr
);
/* deinterlace a picture */
/* deinterlace - if not supported return -1 */
int
avpicture_deinterlace
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
enum
PixelFormat
pix_fmt
,
int
width
,
int
height
);
/* external high level API */
void
avcodec_string
(
char
*
buf
,
int
buf_size
,
AVCodecContext
*
enc
,
int
encode
);
...
...
@@ -4296,24 +4335,6 @@ void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size);
*/
void
av_fast_padded_malloc
(
void
*
ptr
,
unsigned
int
*
size
,
size_t
min_size
);
/**
* Copy image src to dst. Wraps av_picture_data_copy() above.
*/
void
av_picture_copy
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
enum
PixelFormat
pix_fmt
,
int
width
,
int
height
);
/**
* Crop image top and left side.
*/
int
av_picture_crop
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
enum
PixelFormat
pix_fmt
,
int
top_band
,
int
left_band
);
/**
* Pad image.
*/
int
av_picture_pad
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
int
height
,
int
width
,
enum
PixelFormat
pix_fmt
,
int
padtop
,
int
padbottom
,
int
padleft
,
int
padright
,
int
*
color
);
/**
* Encode extradata length to a buffer. Used by xiph codecs.
*
...
...
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