History

avcodec: make the avcodec_get_chroma_sub_sample deprecation effective

James Almer committed 9 years ago

Commit 2c800eb1 parent add7b3b2 files · +7 −15Browse files

Showing the changes to libavcodec/avcodec.h (1 of 2 files). Show all

Unified · Split

libavcodec/avcodec.h+4−12
@@ -5665,22 +5665,14 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, · 5664 unmodified lines
56655665 * @{
56665666 */
56675667
5668+#if FF_API_GETCHROMA
56685669 /**
5669− * Utility function to access log2_chroma_w log2_chroma_h from
5670− * the pixel format AVPixFmtDescriptor.
5671− *
5672− * This function asserts that pix_fmt is valid. See av_pix_fmt_get_chroma_sub_sample
5673− * for one that returns a failure code and continues in case of invalid
5674− * pix_fmts.
5675− *
5676− * @param[in] pix_fmt the pixel format
5677− * @param[out] h_shift store log2_chroma_w
5678− * @param[out] v_shift store log2_chroma_h
5679− *
5680− * @see av_pix_fmt_get_chroma_sub_sample
5670+ * @deprecated Use av_pix_fmt_get_chroma_sub_sample
56815671 */
56825672
5673+attribute_deprecated
56835674 void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift);
5675+#endif
56845676
56855677 /**
56865678 * Return a value representing the fourCC code associated to the

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t