Home
last modified time | relevance | path

Searched refs:pixdesc (Results 1 - 25 of 25) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Dnvdec_vp9.c23 #include "libavutil/pixdesc.h"
34 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt); in nvdec_vp9_start_frame() local
71 .subSamplingX = pixdesc->log2_chroma_w, in nvdec_vp9_start_frame()
72 .subSamplingY = pixdesc->log2_chroma_h, in nvdec_vp9_start_frame()
77 .bitDepthMinus8Luma = pixdesc->comp[0].depth - 8, in nvdec_vp9_start_frame()
78 .bitDepthMinus8Chroma = pixdesc->comp[1].depth - 8, in nvdec_vp9_start_frame()
H A Dvdpau_vp9.c24 #include "libavutil/pixdesc.h"
42 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt); in vdpau_vp9_start_frame() local
43 if (!pixdesc) { in vdpau_vp9_start_frame()
71 info->subSamplingX = pixdesc->log2_chroma_w; in vdpau_vp9_start_frame()
72 info->subSamplingY = pixdesc->log2_chroma_h; in vdpau_vp9_start_frame()
78 info->bitDepthMinus8Luma = pixdesc->comp[0].depth - 8; in vdpau_vp9_start_frame()
79 info->bitDepthMinus8Chroma = pixdesc->comp[1].depth - 8; in vdpau_vp9_start_frame()
H A Ddxva2_vp9.c26 #include "libavutil/pixdesc.h"
49 const AVPixFmtDescriptor * pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt); in fill_picture_parameters() local
51 if (!pixdesc) in fill_picture_parameters()
62 (pixdesc->log2_chroma_w << 3) | /* subsampling_x */ in fill_picture_parameters()
63 (pixdesc->log2_chroma_h << 4) | /* subsampling_y */ in fill_picture_parameters()
75 pp->BitDepthMinus8Luma = pixdesc->comp[0].depth - 8; in fill_picture_parameters()
76 pp->BitDepthMinus8Chroma = pixdesc->comp[1].depth - 8; in fill_picture_parameters()
H A Dvaapi_vp9.c23 #include "libavutil/pixdesc.h"
44 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt); in vaapi_vp9_start_frame() local
54 .subsampling_x = pixdesc->log2_chroma_w, in vaapi_vp9_start_frame()
55 .subsampling_y = pixdesc->log2_chroma_h, in vaapi_vp9_start_frame()
H A Dencode.c413 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->pix_fmt); in encode_preinit_video() local
436 || (avctx->bits_per_raw_sample > 8 && pixdesc->comp[0].depth <= 8)) { in encode_preinit_video()
438 avctx->bits_per_raw_sample, pixdesc->comp[0].depth); in encode_preinit_video()
439 avctx->bits_per_raw_sample = pixdesc->comp[0].depth; in encode_preinit_video()
H A Dcuviddec.c34 #include "libavutil/pixdesc.h"
496 const AVPixFmtDescriptor *pixdesc; in cuvid_output_frame() local
524 pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt); in cuvid_output_frame()
526 for (i = 0; i < pixdesc->nb_components; i++) { in cuvid_output_frame()
527 int height = avctx->height >> (i ? pixdesc->log2_chroma_h : 0); in cuvid_output_frame()
559 pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt); in cuvid_output_frame()
577 for (i = 0; i < pixdesc->nb_components; i++) { in cuvid_output_frame()
580 offset += pitch * (avctx->height >> (i ? pixdesc->log2_chroma_h : 0)); in cuvid_output_frame()
H A Dvdpau_av1.c24 #include "libavutil/pixdesc.h"
58 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt); in vdpau_av1_start_frame() local
59 if (!pixdesc) { in vdpau_av1_start_frame()
H A Djpeg2000dec.c36 #include "libavutil/pixdesc.h"
2025 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(s->avctx->pix_fmt); \
2026 int planar = !!(pixdesc->flags & AV_PIX_FMT_FLAG_PLANAR); \
2027 int pixelsize = planar ? 1 : pixdesc->nb_components; \
/third_party/ffmpeg/libavfilter/
H A Dvf_fade.c33 #include "libavutil/pixdesc.h"
408 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(inlink->format); in config_input() local
410 s->hsub = pixdesc->log2_chroma_w; in config_input()
411 s->vsub = pixdesc->log2_chroma_h; in config_input()
415 s->depth = pixdesc->comp[0].depth; in config_input()
416 s->bpp = pixdesc->flags & AV_PIX_FMT_FLAG_PLANAR ? in config_input()
418 av_get_bits_per_pixel(pixdesc) >> 3; in config_input()
419 s->alpha &= !!(pixdesc->flags & AV_PIX_FMT_FLAG_ALPHA); in config_input()
420 s->is_planar = pixdesc->flags & AV_PIX_FMT_FLAG_PLANAR; in config_input()
421 s->is_rgb = pixdesc in config_input()
[all...]
H A Dvsrc_testsrc.c1422 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(picref->format); in pal75bars_fill_picture() local
1427 r_w = FFALIGN((test->w + 7) / 8, 1 << pixdesc->log2_chroma_w); in pal75bars_fill_picture()
1468 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(picref->format); in pal100bars_fill_picture() local
1473 r_w = FFALIGN((test->w + 7) / 8, 1 << pixdesc->log2_chroma_w); in pal100bars_fill_picture()
1514 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(picref->format); in smptebars_fill_picture() local
1518 r_w = FFALIGN((test->w + 6) / 7, 1 << pixdesc->log2_chroma_w); in smptebars_fill_picture()
1519 r_h = FFALIGN(test->h * 2 / 3, 1 << pixdesc->log2_chroma_h); in smptebars_fill_picture()
1520 w_h = FFALIGN(test->h * 3 / 4 - r_h, 1 << pixdesc->log2_chroma_h); in smptebars_fill_picture()
1521 p_w = FFALIGN(r_w * 5 / 4, 1 << pixdesc->log2_chroma_w); in smptebars_fill_picture()
1536 tmp = FFALIGN(5 * r_w - x, 1 << pixdesc in smptebars_fill_picture()
1579 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(picref->format); smptehdbars_fill_picture() local
[all...]
H A Dvf_lenscorrection.c32 #include "libavutil/pixdesc.h"
244 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(inlink->format); in config_output() local
245 int is_rgb = !!(pixdesc->flags & AV_PIX_FMT_FLAG_RGB); in config_output()
250 rect->depth = pixdesc->comp[0].depth; in config_output()
252 rect->planeheight[1] = rect->planeheight[2] = AV_CEIL_RSHIFT(inlink->h, pixdesc->log2_chroma_h); in config_output()
254 rect->planewidth[1] = rect->planewidth[2] = AV_CEIL_RSHIFT(inlink->w, pixdesc->log2_chroma_w); in config_output()
H A Dvf_rotate.c32 #include "libavutil/pixdesc.h"
286 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(inlink->format); in config_props() local
296 rot->hsub = pixdesc->log2_chroma_w; in config_props()
297 rot->vsub = pixdesc->log2_chroma_h; in config_props()
299 if (pixdesc->comp[0].depth == 8) in config_props()
/third_party/ffmpeg/tests/fate/
H A Dlibswscale.mak1 FATE_LIBSWSCALE += fate-sws-pixdesc-query
2 fate-sws-pixdesc-query: libswscale/tests/pixdesc_query$(EXESUF)
3 fate-sws-pixdesc-query: CMD = run libswscale/tests/pixdesc_query$(EXESUF)
H A Dfilter-video.mak530 RUNNING_PIXFMTS_TESTS := $(filter check fate fate-list fate-filter fate-vfilter fate-filter-pixdesc%,$(MAKECMDGOALS))
536 FATE_FILTER_PIXDESC-$(call VIDEO_FILTER, SCALE FORMAT PIXDESCTEST) += $(addprefix fate-filter-pixdesc-, $(PIXFMTS))
537 fate-filter-pixdesc-%: CMD = video_filter "scale,format=$(@:fate-filter-pixdesc-%=%),pixdesctest" -pix_fmt $(@:fate-filter-pixdesc-%=%)
539 fate-filter-pixdesc: $(FATE_FILTER_PIXDESC-yes)
/third_party/ffmpeg/libavutil/
H A Dpixdesc.c29 #include "pixdesc.h"
2614 int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc) in av_get_bits_per_pixel() argument
2617 int log2_pixels = pixdesc->log2_chroma_w + pixdesc->log2_chroma_h; in av_get_bits_per_pixel()
2619 for (c = 0; c < pixdesc->nb_components; c++) { in av_get_bits_per_pixel()
2621 bits += pixdesc->comp[c].depth << s; in av_get_bits_per_pixel()
2627 int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc) in av_get_padded_bits_per_pixel() argument
2630 int log2_pixels = pixdesc->log2_chroma_w + pixdesc->log2_chroma_h; in av_get_padded_bits_per_pixel()
2633 for (c = 0; c < pixdesc in av_get_padded_bits_per_pixel()
2654 const AVPixFmtDescriptor *pixdesc = &av_pix_fmt_descriptors[pix_fmt]; av_get_pix_fmt_string() local
[all...]
H A Dpixdesc.h162 * described by pixdesc. Note that this is not the same as the number
169 int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc);
173 * described by pixdesc, including any padding or unused bits.
175 int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc);
H A DMakefile67 pixdesc.h \
156 pixdesc.o \
259 pixdesc \
H A Dimgutils.h32 #include "pixdesc.h"
38 * format described by pixdesc.
53 const AVPixFmtDescriptor *pixdesc);
H A Dimgutils.c32 #include "pixdesc.h"
36 const AVPixFmtDescriptor *pixdesc) in av_image_fill_max_pixsteps()
44 const AVComponentDescriptor *comp = &(pixdesc->comp[i]); in av_image_fill_max_pixsteps()
35 av_image_fill_max_pixsteps(int max_pixsteps[4], int max_pixstep_comps[4], const AVPixFmtDescriptor *pixdesc) av_image_fill_max_pixsteps() argument
/third_party/ffmpeg/libavformat/
H A Dflacenc.c25 #include "libavutil/pixdesc.h"
85 const AVPixFmtDescriptor *pixdesc; in flac_write_picture() local
156 if ((pixdesc = av_pix_fmt_desc_get(st->codecpar->format))) in flac_write_picture()
157 avio_wb32(pb, av_get_bits_per_pixel(pixdesc)); in flac_write_picture()
H A Dmovenc.c55 #include "libavutil/pixdesc.h"
3212 const AVPixFmtDescriptor *pixdesc = in mov_write_pixi_tag() local
3217 avio_w8(pb, pixdesc->nb_components); /* num_channels */ in mov_write_pixi_tag()
3218 for (int i = 0; i < pixdesc->nb_components; ++i) { in mov_write_pixi_tag()
3219 avio_w8(pb, pixdesc->comp[i].depth); /* bits_per_channel */ in mov_write_pixi_tag()
7470 const AVPixFmtDescriptor *pixdesc = local
7472 if (pixdesc->nb_components != 1) {
/third_party/ffmpeg/doc/examples/
H A Dhw_decode.c39 #include <libavutil/pixdesc.h>
H A Dvaapi_encode.c38 #include <libavutil/pixdesc.h>
H A Dtranscoding.c37 #include <libavutil/pixdesc.h>
/third_party/ffmpeg/fftools/
H A Dffprobe.c46 #include "libavutil/pixdesc.h"
3545 print_int(name, !!(pixdesc->flags & AV_PIX_FMT_FLAG_##flagname)); \
3550 const AVPixFmtDescriptor *pixdesc = NULL; in ffprobe_show_pixel_formats() local
3554 while (pixdesc = av_pix_fmt_desc_next(pixdesc)) { in ffprobe_show_pixel_formats()
3556 print_str("name", pixdesc->name); in ffprobe_show_pixel_formats()
3557 print_int("nb_components", pixdesc->nb_components); in ffprobe_show_pixel_formats()
3558 if ((pixdesc->nb_components >= 3) && !(pixdesc->flags & AV_PIX_FMT_FLAG_RGB)) { in ffprobe_show_pixel_formats()
3559 print_int ("log2_chroma_w", pixdesc in ffprobe_show_pixel_formats()
[all...]

Completed in 40 milliseconds