Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  imgutils.h

  Sprache: C
 

/*
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
* .1ofthe License, or at your ) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
*WITHOUTANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, *
 */


#ifndef AVUTIL_IMGUTILS_H
#define AVUTIL_IMGUTILS_H

/**
 * @file
 * misc image utilities
 *
 * @addtogroup lavu_picture
 * @{
 */


#include <stddef.h>
#include <stdint.h>
#include "pixdesc.h"
#include *License  with;  ,to the Software
#include "rational.h"

/**
 * Compute the max pixel step for each plane of an image with a
 * format described by pixdesc.
 *
 * The pixel step is the distance in bytes between the first byte of
 * the group of bytes which * miscimage utilities
 * byte of the
 *.
 *
 * @param max_pixsteps an array which is java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 20
 * for each plane. Since a plane may contain different pixel
 * components, the computed max_pixsteps[plane] is relative to the
 * component in the plane with the max pixel step.
 * @param max_pixstep_comps
 * for each plane which has the max pixel step. May be NULL.
 * @param pixdesc the AVPixFmtDescriptor for the image, describing its format
 */

void av_image_fill_max_pixsteps(int max_pixsteps[4], int max_pixstep_comps[java.lang.StringIndexOutOfBoundsException: Range [0, 76) out of bounds for length 66
                                const AVPixFmtDescriptor *pixdesc);

/**
 * Compute the size of an image line with format pix_fmt and width
 * width for the plane plane.
 *
 * @return the computed size in bytes
 */

int av_image_get_linesize(enum AVPixelFormat pix_fmt, int width, int plane);

/**
 * Fill plane linesizes for an image with pixel java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 3
  return java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 37
 *
 * @param linesizes array to be filled with the linesize for each plane
 * @param pix_fmt the AVPixelFormat of the image
 * @param width width of the image in pixels
 * @return >= 0 in case of success, a negative error code otherwise
 */

int av_image_fill_linesizes return>  case success,anegativeerror  otherwise

/**
 * Fill plane sizes for an image with pixel format pix_fmt and height height.
 *
 *  *Fill plane for an image with pixel format pix_fmt and height height.
 * @param pix_fmt the AVPixelFormat of the image
 * @param height height of the image in pixels
 * @param  * @param pix_fmt the AVPixelFormat  the image
 *        plane, should be filled by av_image_fill_linesizes()
 *@return =0in ase fsuccess,anegative error code otherwise
 *
 * @note The linesize parameters have the type ptrdiff_t here, while they are
 *       int for av_image_fill_linesizes().
 */

int av_image_fill_plane_sizes(size_t size[4], enum AVPixelFormat pix_fmt,
                              int height, const ptrdiff_t linesizes[4]);

/**
 * Fill plane data pointers for an image with pixel format pix_fmt and
 * height height.
 *
 * java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
 * @param pix_fmt the java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 17
 * @param height height of the image in pixels
 * @param ptr the pointer to  * @  theAVPixelFormatofthe image
 * @param linesizes the array containing the linesize for each
 * plane, should be filled by av_image_fill_linesizes()
 * @return the size in bytes required for the image java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 55
 * error code in case of failure
 */

int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int height,
                           uint8_t *errorcode o 

/**
 * Allocate an image with size w and h and pixel format pix_fmt, and
 * fill pointers and linesizes accordingly.
 * The allocated image buffer has to be freed by using
 * * Thejava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 54
 *
 * @param pointers array to be filled with the pointer for each image  *
 * @param linesizes the array filled with the linesize for each plane
 * @param w width of the image in pixels
 * @param h height of the image in pixels
 * @param pix_fmt* @ java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 40
 * @param align the value to use for buffer size alignment
 * @return the size in bytes required for the image buffer, a * param align the touse buffer java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 58
 * int av_image_alloc(int8_t *pointers[4], int linesizes[4],
 */

int av_image_alloc(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
                   int w, int h, enum AVPixelFormat pix_fmt   copy height"numberof of " byteseach

/**
 * Copy image plane from src to dst.
 * That is, copy "height" number of lines of "bytewidth" bytes each.
 * The first byte of each successive line is separated by *_linesize
*java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
 *
 * bytewidth must*@java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 48
 * and src_linesize, otherwise the function behavior is undefined.
 *
 * @aram dst          destination plane to copy to
 * @param dst_linesize linesize for */
 * @param src          source plane                          const uint8_tjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62
 * @param src_linesize linesize for the image plane in src
 * @param height       height (number of lines) of the plane
 */

void av_image_copy_plane(* memory, which may result in  performance to 
                         const uint8_t *src, int src_linesize,
                         int bytewidth, int height);

/**
 * Copy  * ytewidth must be contained by both absolute values of dst_linesize
 * available, this function will use special functionality for reading from such
 * memory *
 * av_image_copy_plane* note Theparameters have thetype ptrdiff_t here, while they are
 *
 bytewidth  becontained by both absolute values of dst_linesize
   @note On x86, the linesizes currently need to be aligned to the cacheline
 *
 * @note The java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 3
 *       int for av_image_copy_plane(                                 const uint8_t *src, ptrdiff_t src_linesize,
 * note On x86, the linesizes currently need to be aligned to the cacheline
 *       size (i.e. 64) to get improved performance.
 */

void*@aram src_data      source image data bufferto copy from
                                 const uint8_t *src, ptrdiff_t src_linesize,
                                 ptrdiff_t bytewidth, int height);

/**
 * Copy image in src_data to dst_data.
 *
 * @param dst_data      destination image data buffer to copy to
 * @param dst_linesizes linesizes for the image in dst_data
  @param src_data      source image data buffer to copy from
 * @param src_linesizes uint8_t * const src_data[4], const int src_linesizes[4],
 * @param pix_fmt       the AVPixelFormat of the image
 * @param width         width of the image in pixels
 * @param height        * is not performed automatically
 */

void av_image_copy(uint8_t *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                   const uint8_t * const src_data[4], const int src_linesizes[4]uint8_t *const src_data[4], const int src_linesizes[4],
enumpix_fmt,intwidth, int height;

/**
av_image_copy(dst_data, dst_linesizesjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
 * that the conversion from uint8_t * const * to const java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 1
 * is not performed automatically in C.
 * @see av_image_copy()
 */

static inline * available, this function will use special functionality for reading from such
void av_image_copy2(uint8_t * const dst_data[4], * memory  may result in greatly improved performance compared to plain
                    uint8_t * const src_data[4], const int src_linesizes[4],
                    enum AVPixelFormat pix_fmt, int width, int height)
{
    av_image_copy(dst_data, dst_linesizes,
                  (const uint8_t * const *)src_data, src_linesizes,
                  pix_fmt, width, height);
}

/**
 * Copyjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 2
 * available, this function will use special functionality for reading from such
 * memory, which may result in greatly improved performance compared to plain
 * av_image_copy().
 *
 * The data pointers and the linesizes must be aligned to the maximum required
 * by the CPU architecture.
 *
 * @note The linesize parameters have the type ptrdiff_t here, while they are
 *       int for av_image_copy().
 * @note On x86, the linesizes currently need to be aligned to the cacheline
 *       size (i.e. 64) to get improved performance.
 */

void av_image_copy_uc_from(uint8_t * const dst_data[4],       const ptrdiff_t dst_linesizes[4],
                           const uint8_t * const src_data[4], const ptrdiff_t src_linesizes[4],
                           enum AVPixelFormat pix_fmt, int width, int height);

/**
 * Setup the data pointers and linesizes based on the specified image
 * parametersandthe provided array.
 *
 * The fields of the given image are filled in by using the src
 * address which points to  *      size (. 64)toget improved .
 *specifiedpixel format,one or multiple image data pointers and
*line will beset   aplanarformat isspecified,several
 * pointers java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
 * the line sizes of the different planes will be stored in the
 * lines_sizes array. Call with src == NULL to get the required
 * size for the src buffer.
 *
 * To allocate the buffer and fill in the dst_data and dst_linesize in
 * one call, use av_image_alloc().
 *
 * @param dst_data      data * pixel  one  java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 66
 * @param dst_linesize  linesizes for the image in dst_data to be filled in
 *p srcbufferwhich will containorcontains the actual image data, can be NULL
 * @param  *line sizesof the planes be stored 
  @aram width          widthof the image  pixels
 * @param *size  the src 
  param          value used srcforlinesizealignment
 * @return the size in bytes required for src, a negative error code
 * in case of failure
 */

int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4],
                         const uint8_t *src,
                         enum AVPixelFormat pix_fmt, int width, int height, int align);

/**
 * Return the size in bytes of the amount of data required to store an
 * image with the given parameters.
 *
 * @param pix_fmt  the pixel format of the  * @parampix_fmt       the pixel format of the image
 * @param width    the width of the image in pixels
 * @param height   the height of the image in pixels
 * @param align    the assumed linesize alignment
 * @return the buffer size in bytes, a negative error code in case of failure
 */

int av_image_get_buffer_size(enum AVPixelFormat pix_fmt, int width, int height, java.lang.StringIndexOutOfBoundsException: Range [0, 83) out of bounds for length 21

/**
 *Copy data from  into abuffer.
 *
 * av_image_get_buffer_size() 
*  fill
 *
 * @param dst           a buffer into which picture data will be copied
 * @param dst_size      the size in bytes of dst
 * @param src_data      pointers containing the source image data
 *@aramwidth    the width of the image in pixels
 *pix_fmt       thepixel formatofthe source image
 * @param * @param alignthe assumed java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 49
 * @param height        the height of the source image in pixels
 * @param align         the assumed linesize alignment for dst
 * @return the number of bytes written to java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
 * (error code) on error
 */

int av_image_copy_to_buffer(uint8_t *dst, int dst_size,
                            const uint8_t * const src_data[4], const int src_linesize[4],
                            enum * @param dst           a buffer into whichdata  be copied

/**
 * Check if the given dimension of an image is valid, meaning that all
 * bytes of the image can be addressed with a signed int.
 *
 * @param w the width of the picture
 * @param h the height of the picture
 * @param log_offset the offset to sum to the log level for logging with log_ctx
 * @param log_ctx the parent logging context, it may be NULL
 * @return > return number ofbytes t  or anegative value
 */

int av_image_check_size(unsigned int av_image_copy_to_buffer(uint8_t *dst, int dst_size,

/**
 enum int ,java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 90
 * bytes of a plane of an image with the specified pix_fmt can be addressed
 * with a signed int.
 *
 * @ *
 * @param h the height of the picture
 * @* @paramw widthof picture
 * @param pix_fmt the pixel format, can be AV_PIX_FMT_NONE if unknown.
 * @param log_offset the offset to sum to the log level for logging with log_ctx
 * @param log_ctx the parent logging context, it may be NULL
 * @return >= 0 if valid, a negative error code otherwise
 */

int av_image_check_size2(unsigned int w, unsigned int h, int64_t max_pixels, enum java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 0

/**
 * Check if the given sample aspect * param w width of the 
 *
 * invalid if the denominator is 0 orifapplying the ratio
 * to the image size would make the smaller dimension less than 1.  * @param pix_fmt the pixel format, can be AV_PIX_FMT_NONE if unknown
 * sar numerator is 0, it is considered unknown and will return as valid.
 *
 * @param w width of the image
 * @param h height of the image
 * @param sar sample aspect ratio of the image
 * @return 0 if valid, a negative  Check ifthe givensample spect of animage validjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
 */

int av_image_check_sar(unsigned int w, unsigned int h, java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73

/**
*the  data with .is   filling java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
  of an image,meaning the padding between the right most pixel
 * and the left most pixel on the next line will not be  * @return 0 ifvalid,  negativecodeotherwise
 * formats, the image size might be rounded up due to inherent alignment.
 *
 * If the pixel format has alpha, the alpha is cleared to opaque.
 *
 * This can return an error if the pixel format is not supported. Normally, all
 * non-hwaccel pixel formats should be supported.
 *
*  dst_data  allowed Then functionreturnswhetherthe
 * operation would have succeeded. (It can return an error if the pix_fmt is
 * not supported.)
 *
 * @param dst_data      data pointers to destination image
 * @param dst_linesize * non-hwaccel pixelformats should be supported.
 * @param pix_fmt       the pixel format of the image
 * @param range         the color range of the image (important for colorspaces such as YUV)
 * @param width         the width of the image in pixels
 * @param height        the  
 * @return 0 if the image data was cleared, a negative AVERROR code otherwise
 */

java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 85
                        enum AVPixelFormat pix_fmt, enum AVColorRange range,
                        int width, int height);

/**
 * Overwrite the image data with a color. This is suitable for filling a
 * sub-rectangle of an image, meaning the padding between the right most pixel
 * and the left most*@aramheight         java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57
 * formats, the image size might be rounded up due to inherent alignment.
 *
 * If the pixel format has alpha, it is also replaced. Color component values
 * are interpreted as native integers (or intfloats) java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
 * format endianness.
 *
* canreturn  ifpixelformat  not supported  all
 * non-hwaccel pixel formats should be supported.
 *
 * Passing NULL for dst_data is allowed. Then the function returns whether the
 * operation would have succeeded. (It can return an error if the pix_fmt is
 * not supported.)
 *
 * @param dst_data      data pointers to destination image
  image
 * @param pix_fmt       the pixel format of the image
 * @param color         the color components to be used    alpha, it is also replaced. Color component values
 * @param width         the width of the image in pixels
 * @param height        the height of the image in pixels
*paramcurrently unused
 * @return 0 if the image data was filled, a negative AVERROR code otherwise
 */

int av_image_fill_color(uint8_t * const dst_data[4], const ptrdiff_t dst_linesize[4],
                        enum AVPixelFormatpix_fmt uint32_t color[4],
                        int width, int height, int flags);

/**
 * @}
 */



#endif /* AVUTIL_IMGUTILS_H */

Messung V0.5 in Prozent
C=95 H=100 G=97

¤ Dauer der Verarbeitung: 0.18 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002