#include <stdio.h>
#include "global.h"
#include "kvazaar.h"
Go to the source code of this file.
|
int | yuv_io_read (FILE *file, unsigned input_width, unsigned input_height, unsigned from_bitdepth, unsigned to_bitdepth, kvz_picture *img_out, unsigned file_format) |
| Read a single frame from a file. More...
|
|
int | yuv_io_seek (FILE *file, unsigned frames, unsigned input_width, unsigned input_height, unsigned file_format) |
| Seek forward in a YUV file. More...
|
|
int | yuv_io_write (FILE *file, const kvz_picture *img, unsigned output_width, unsigned output_height) |
| Write a single frame to a file. More...
|
|
◆ yuv_io_read()
int yuv_io_read |
( |
FILE * |
file, |
|
|
unsigned |
in_width, |
|
|
unsigned |
out_width, |
|
|
unsigned |
in_bitdepth, |
|
|
unsigned |
out_bitdepth, |
|
|
kvz_picture * |
img_out, |
|
|
unsigned |
file_format |
|
) |
| |
Read luma and chroma values from file. Extend pixels if the image buffer is larger than the input image.
- Parameters
-
file | input file |
input_width | width of the input video in pixels |
input_height | height of the input video in pixels |
img_out | image buffer |
- Returns
- 1 on success, 0 on failure
◆ yuv_io_seek()
int yuv_io_seek |
( |
FILE * |
file, |
|
|
unsigned |
frames, |
|
|
unsigned |
input_width, |
|
|
unsigned |
input_height, |
|
|
unsigned |
file_format |
|
) |
| |
- Parameters
-
file | the input file |
frames | number of frames to seek |
input_width | width of the input video in pixels |
input_height | height of the input video in pixels |
- Returns
- 1 on success, 0 on failure
◆ yuv_io_write()
int yuv_io_write |
( |
FILE * |
file, |
|
|
const kvz_picture * |
img, |
|
|
unsigned |
output_width, |
|
|
unsigned |
output_height |
|
) |
| |
- Parameters
-
file | output file |
img | image to output |
output_width | width of the output in pixels |
output_height | height of the output in pixels |
- Returns
- 1 on success, 0 on failure