Home
last modified time | relevance | path

Searched refs:input_ctx (Results 1 – 11 of 11) sorted by relevance

/external/libaom/libaom/common/
Dvideo_reader.c24 struct AvxInputContext input_ctx; member
44 reader->input_ctx.filename = filename; in aom_video_reader_open()
45 reader->input_ctx.file = file; in aom_video_reader_open()
46 reader->obu_ctx.avx_ctx = &reader->input_ctx; in aom_video_reader_open()
49 if (file_is_ivf(&reader->input_ctx)) { in aom_video_reader_open()
50 reader->input_ctx.file_type = FILE_TYPE_IVF; in aom_video_reader_open()
51 reader->info.codec_fourcc = reader->input_ctx.fourcc; in aom_video_reader_open()
52 reader->info.frame_width = reader->input_ctx.width; in aom_video_reader_open()
53 reader->info.frame_height = reader->input_ctx.height; in aom_video_reader_open()
55 } else if (file_is_webm(&reader->webm_ctx, &reader->input_ctx)) { in aom_video_reader_open()
[all …]
Divfdec.c31 int file_is_ivf(struct AvxInputContext *input_ctx) { in file_is_ivf() argument
35 if (fread(raw_hdr, 1, 32, input_ctx->file) == 32) { in file_is_ivf()
45 input_ctx->fourcc = mem_get_le32(raw_hdr + 8); in file_is_ivf()
46 input_ctx->width = mem_get_le16(raw_hdr + 12); in file_is_ivf()
47 input_ctx->height = mem_get_le16(raw_hdr + 14); in file_is_ivf()
48 input_ctx->framerate.numerator = mem_get_le32(raw_hdr + 16); in file_is_ivf()
49 input_ctx->framerate.denominator = mem_get_le32(raw_hdr + 20); in file_is_ivf()
50 fix_framerate(&input_ctx->framerate.numerator, in file_is_ivf()
51 &input_ctx->framerate.denominator); in file_is_ivf()
56 rewind(input_ctx->file); in file_is_ivf()
[all …]
Dtools_common.c78 int read_yuv_frame(struct AvxInputContext *input_ctx, aom_image_t *yuv_frame) { in read_yuv_frame() argument
79 FILE *f = input_ctx->file; in read_yuv_frame()
80 struct FileTypeDetectionBuffer *detect = &input_ctx->detect; in read_yuv_frame()
Dtools_common.h145 int read_yuv_frame(struct AvxInputContext *input_ctx, aom_image_t *yuv_frame);
/external/libvpx/libvpx/
Divfdec.c40 int file_is_ivf(struct VpxInputContext *input_ctx) { in file_is_ivf() argument
44 if (fread(raw_hdr, 1, 32, input_ctx->file) == 32) { in file_is_ivf()
54 input_ctx->fourcc = mem_get_le32(raw_hdr + 8); in file_is_ivf()
55 input_ctx->width = mem_get_le16(raw_hdr + 12); in file_is_ivf()
56 input_ctx->height = mem_get_le16(raw_hdr + 14); in file_is_ivf()
57 input_ctx->framerate.numerator = mem_get_le32(raw_hdr + 16); in file_is_ivf()
58 input_ctx->framerate.denominator = mem_get_le32(raw_hdr + 20); in file_is_ivf()
59 fix_framerate(&input_ctx->framerate.numerator, in file_is_ivf()
60 &input_ctx->framerate.denominator); in file_is_ivf()
65 rewind(input_ctx->file); in file_is_ivf()
[all …]
Dtools_common.c77 int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame) { in read_yuv_frame() argument
78 FILE *f = input_ctx->file; in read_yuv_frame()
79 struct FileTypeDetectionBuffer *detect = &input_ctx->detect; in read_yuv_frame()
Dtools_common.h131 int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame);
Dvpxenc.c98 static int read_frame(struct VpxInputContext *input_ctx, vpx_image_t *img) { in read_frame() argument
99 FILE *f = input_ctx->file; in read_frame()
100 y4m_input *y4m = &input_ctx->y4m; in read_frame()
103 if (input_ctx->file_type == FILE_TYPE_Y4M) { in read_frame()
106 shortread = read_yuv_frame(input_ctx, img); in read_frame()
/external/libaom/libaom/tools/
Ddump_obu.cc120 InputContext input_ctx; in main() local
121 input_ctx.avx_ctx = &avx_ctx; in main()
123 input_ctx.obu_ctx = &obu_ctx; in main()
126 input_ctx.webm_ctx = &webm_ctx; in main()
129 input_ctx.Init(); in main()
131 avx_ctx.file_type = GetFileType(&input_ctx); in main()
136 input_ctx.unit_buffer = in main()
138 if (!input_ctx.unit_buffer) { in main()
142 input_ctx.unit_buffer_size = kInitialBufferSize; in main()
147 while (ReadTemporalUnit(&input_ctx, &unit_size)) { in main()
[all …]
/external/libaom/libaom/apps/
Daomenc.c98 static int read_frame(struct AvxInputContext *input_ctx, aom_image_t *img) { in read_frame() argument
99 FILE *f = input_ctx->file; in read_frame()
100 y4m_input *y4m = &input_ctx->y4m; in read_frame()
103 if (input_ctx->file_type == FILE_TYPE_Y4M) { in read_frame()
106 shortread = read_yuv_frame(input_ctx, img); in read_frame()
/external/libvpx/libvpx/examples/
Dvp9_spatial_svc_encoder.c168 struct VpxInputContext input_ctx; member