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
160df979
Commit
160df979
authored
Jul 10, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/tiffenc: apply misc doxy fixes
parent
6c3b3cfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
tiffenc.c
libavcodec/tiffenc.c
+19
-17
No files found.
libavcodec/tiffenc.c
View file @
160df979
...
...
@@ -79,7 +79,8 @@ typedef struct TiffEncoderContext {
/**
* Check free space in buffer
* Check free space in buffer.
*
* @param s Tiff context
* @param need Needed bytes
* @return 0 - ok, 1 - no free space
...
...
@@ -95,13 +96,13 @@ static inline int check_size(TiffEncoderContext * s, uint64_t need)
}
/**
* Put n values to buffer
* Put n values to buffer
.
*
* @param p
P
ointer to pointer to output buffer
* @param n
N
umber of values
* @param val
P
ointer to values
* @param type
T
ype of values
* @param flip =0 - normal copy, >0 - flip
* @param p
p
ointer to pointer to output buffer
* @param n
n
umber of values
* @param val
p
ointer to values
* @param type
t
ype of values
* @param flip =
0 - normal copy, >0 - flip
*/
static
void
tnput
(
uint8_t
**
p
,
int
n
,
const
uint8_t
*
val
,
enum
TiffTypes
type
,
int
flip
)
...
...
@@ -116,11 +117,12 @@ static void tnput(uint8_t ** p, int n, const uint8_t * val, enum TiffTypes type,
/**
* Add entry to directory in tiff header.
*
* @param s Tiff context
* @param tag
T
ag that identifies the entry
* @param type
E
ntry type
* @param count
T
he number of values
* @param ptr_val
P
ointer to values
* @param tag
t
ag that identifies the entry
* @param type
e
ntry type
* @param count
t
he number of values
* @param ptr_val
p
ointer to values
*/
static
void
add_entry
(
TiffEncoderContext
*
s
,
enum
TiffTags
tag
,
enum
TiffTypes
type
,
int
count
,
...
...
@@ -153,14 +155,14 @@ static void add_entry1(TiffEncoderContext * s,
}
/**
* Encode one strip in tiff file
* Encode one strip in tiff file
.
*
* @param s Tiff context
* @param src
I
nput buffer
* @param dst
O
utput buffer
* @param n
S
ize of input buffer
* @param compr
C
ompression method
* @return
Number of output bytes. If an output error is encountered, -1
returned
* @param src
i
nput buffer
* @param dst
o
utput buffer
* @param n
s
ize of input buffer
* @param compr
c
ompression method
* @return
number of output bytes. If an output error is encountered, -1 is
returned
*/
static
int
encode_strip
(
TiffEncoderContext
*
s
,
const
int8_t
*
src
,
uint8_t
*
dst
,
int
n
,
int
compr
)
...
...
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