Skip to content

Commit 1a72aa2

Browse files
authored
fix: minor typo cleanup (#120)
Signed-off-by: Brad Hards <[email protected]>
1 parent 8d1a758 commit 1a72aa2

File tree

11 files changed

+23
-23
lines changed

11 files changed

+23
-23
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The OpenAPV supports the following features:
1717
## APV codec
1818
The APV codec is a professional video codec, which was developed in response to the need for professional level high quality video recording and post production. The primary purpose of the APV codec is for use in professional video recording and editing workflows for various types of content.
1919

20-
APV codec utilizes technologies known to be over 20 years to achieve a royalty free codec. APV builds a video codec using only conventional coding technologies, which consist of traditional methods published between the early 1980s and the end of the 1990s.
20+
APV codec utilizes technologies known to be over 20 years old to achieve a royalty free codec. APV builds a video codec using only conventional coding technologies, which consist of traditional methods published between the early 1980s and the end of the 1990s.
2121

2222
The APV codec standard has the following features:
2323

@@ -28,7 +28,7 @@ The APV codec standard has the following features:
2828
- Support for various chroma sampling formats from 4:2:2 to 4:4:4, and bit-depths from 10 to 16
2929
- Support for multiple decoding and re-encoding without severe visual quality degradation
3030
- Support multi-view video and auxiliary video like depth, alpha, and preview
31-
- Support various metadata including HDR10/10+ and user-definded format
31+
- Support various metadata including HDR10/10+ and user-defined format
3232

3333
### Related specification
3434
- APV Codec (bitstream): [https://datatracker.ietf.org/doc/draft-lim-apv/](https://datatracker.ietf.org/doc/draft-lim-apv/)
@@ -74,7 +74,7 @@ The APV codec standard has the following features:
7474
## How to use applications
7575
### Encoder
7676

77-
Encoder as input require raw YCbCr file (422, 444), 10-bit or more.
77+
Encoder requires raw YCbCr file (422, 444), 10-bit or more, as input.
7878

7979
Displaying help:
8080

@@ -119,8 +119,8 @@ For generating package ready for distribution (default deb) execute in build dir
119119

120120
## Versioning
121121

122-
This project is using folowing versioning scheme ``API-SET.MAJOR.MINOR.PATCH``. It's mostly based on Semantic Versioning with addition of ``API-SET`` on first place.
123-
Project and library is following one common version number.
122+
This project is using the following versioning scheme ``API-SET.MAJOR.MINOR.PATCH``. It's mostly based on Semantic Versioning with addition of ``API-SET`` on first place.
123+
Project and library share a common version number.
124124

125125
## License
126126

app/oapv_app_dec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static const args_opt_t dec_args_opts[] = {
7070
},
7171
{
7272
'm', "threads", ARGS_VAL_TYPE_STRING, 0, NULL,
73-
"force to use a specific number of threads"
73+
"force use of a specific number of threads\n"
7474
" - 'auto' means that the value is internally determined"
7575
},
7676
{

app/oapv_app_enc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ static const args_opt_t enc_args_opts[] = {
8686
},
8787
{
8888
'z', "fps", ARGS_VAL_TYPE_STRING, 0, NULL,
89-
"frame rate (frame per second))"
89+
"frame rate (frames per second)"
9090
},
9191
{
9292
'm', "threads", ARGS_VAL_TYPE_STRING, 0, NULL,
93-
"force to use a specific number of threads\n"
93+
"force use of a specific number of threads\n"
9494
" - 'auto' means that the value is internally determined"
9595
},
9696
{

app/oapv_app_util.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static __inline oapv_clk_t oapv_clk_sec(oapv_clk_t clk)
235235
#define CLIP_VAL(n, min, max) (((n) > (max)) ? (max) : (((n) < (min)) ? (min) : (n)))
236236
#define ALIGN_VAL(val, align) ((((val) + (align) - 1) / (align)) * (align))
237237

238-
/* Function for atomic increament:
238+
/* Function for atomic increment:
239239
This function might need to modify according to O/S or CPU platform
240240
*/
241241
static int atomic_inc(volatile int *pcnt)
@@ -421,7 +421,7 @@ static int imgb_read(FILE *fp, oapv_imgb_t *img, int width, int height, int is_y
421421
f_h = height;
422422
}
423423
else {
424-
logerr("not supported bit-depth (%d)\n", bit_depth);
424+
logerr("unsupported bit-depth (%d)\n", bit_depth);
425425
return -1;
426426
}
427427

@@ -734,7 +734,7 @@ static int write_data(char *fname, unsigned char *data, int size)
734734

735735
fp = fopen(fname, "ab");
736736
if(fp == NULL) {
737-
logerr("cannot open an writing file=%s\n", fname);
737+
logerr("cannot open the output file=%s\n", fname);
738738
return -1;
739739
}
740740
fwrite(data, 1, size, fp);

app/oapv_app_y4m.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static int y4m_parse_tags(y4m_params_t *y4m, char *tags)
123123
}
124124

125125
if(!(found_w == 1 && found_h == 1)) {
126-
logerr("Mandatory arugments are not found in y4m header");
126+
logerr("Mandatory width and height values were not found in y4m header");
127127
return OAPV_ERR;
128128
}
129129

@@ -266,7 +266,7 @@ static int write_y4m_header(char *fname, oapv_imgb_t *imgb)
266266
}
267267

268268
if(strlen(c_buf) == 0) {
269-
logerr("Color format is not suuported by y4m\n");
269+
logerr("Color format is not supported by y4m\n");
270270
return -1;
271271
}
272272

@@ -307,7 +307,7 @@ static int write_y4m_frame_header(char *fname)
307307
// return
308308
// - positive value : file name has y4m format name
309309
// - zero : YUV format name
310-
// - nogative value : unknown format name
310+
// - negative value : unknown format name
311311
static int check_file_name_type(char * fname)
312312
{
313313
char fext[16];

inc/oapv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ struct oapv_imgb {
328328
/* time-stamps */
329329
oapv_mtime_t ts[4];
330330

331-
int ndata[4]; /* arbitrary data, if needs */
332-
void *pdata[4]; /* arbitrary adedress if needs */
331+
int ndata[4]; /* arbitrary data, if needed */
332+
void *pdata[4]; /* arbitrary address if needed */
333333

334334
/* aligned width (in unit of pixel) */
335335
int aw[OAPV_MAX_CC];
@@ -569,7 +569,7 @@ struct oapve_param {
569569
unsigned char q_matrix[OAPV_MAX_CC][OAPV_BLK_D]; // raster-scan order
570570
/* NOTE: tile_w and tile_h value can be changed internally,
571571
if the values are not set properly.
572-
the min and max values are defeind in APV specification */
572+
the min and max values are defined in APV specification */
573573
int tile_w; // width of tile MUST be N * MB width
574574
int tile_h; // height of tile MUST be N * MB height
575575

src/oapv_bs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ should set zero in that case. */
104104
/*! Is bitstream byte aligned? */
105105
#define BSR_IS_BYTE_ALIGN(bs) ((((bs)->leftbits & 0x7) == 0)? 1: 0)
106106

107-
/*! Is last byte of bitsteam? */
107+
/*! Is last byte of bitstream? */
108108
#define BSR_IS_LAST_BYTE(bs) \
109109
(((bs)->cur >= (bs)->end && bs->leftbits > 0 && (bs)->leftbits <= 8)? 1: 0)
110110

src/oapv_def.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ struct oapv_fh {
124124
int matrix_coefficients; /* u( 8) */
125125
int full_range_flag; /* u( 1) */
126126
int use_q_matrix; /* u( 1) */
127-
/* (start) quantization_matix */
127+
/* (start) quantization_matrix */
128128
int q_matrix[N_C][OAPV_BLK_H][OAPV_BLK_W]; /* u( 8) */
129-
/* ( end ) quantization_matix */
129+
/* ( end ) quantization_matrix */
130130
/* (start) tile_info */
131131
int tile_width_in_mbs; /* u(20) */
132132
int tile_height_in_mbs; /* u(20) */

src/oapv_metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct oapv_md_t35 {
7474
u8 *itu_t_t35_payload;
7575
};
7676

77-
/* Mastering display colour volum metadata*/
77+
/* Mastering display colour volume metadata*/
7878
typedef struct oapv_md_mdcv oapv_md_mdcv_t;
7979
struct oapv_md_mdcv {
8080
u16 primary_chromaticity_x[3]; /* u(16) */

test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| 7 | qp_B | Tile QP variation in a frame | 422-10 | 4.1 | 2 | 60 fps | 3840x2160 | 3 | c7cac366f29dc6571bc814923cadeb4b |
1515
| 8 | qp_C | Set all the QPs in a frame equal to min. QP (=0) | 422-10 | 6 | 2 | 60 fps | 3840x2160 | 3 | 6e2928f315e1670b6842955b0e7b4ad8 |
1616
| 9 | qp_D | Set all the QPs in a frame equal to max. QP (=51) | 422-10 | 4.1 | 2 | 60 fps | 3840x2160 | 3 | c7a3e5d7f1c987a064a7bdb08944901f |
17-
| 10 | qp_E | Set different QP betwee luma and chroma | 422-10 | 4.1 | 2 | 60 fps | 3840x2160 | 3 | 7d626cea95f8d7a4b3f1f6e3d10e923c |
17+
| 10 | qp_E | Set different QP between luma and chroma | 422-10 | 4.1 | 2 | 60 fps | 3840x2160 | 3 | 7d626cea95f8d7a4b3f1f6e3d10e923c |
1818
| 11 | syn_A | Exercise a synthetic image with QP = 0 and QP = 51 | 422-10 | 4.1 | 2 | 60 fps | 1920x1080 | 2 | 7b0cc8fdffdfca860dcee9b69b051053 |
1919
| 12 | syn_B | Exercise a synthetic image with Tile QP variation in Frame | 422-10 | 4.1 | 2 | 60 fps | 1920x1080 | 2 | b87a59443b009e9241393e6e1a927d61 |
2020

0 commit comments

Comments
 (0)